Skip to content

Commit

Permalink
Try fixing formatting in rst file
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Oct 2, 2024
1 parent 61912d0 commit e68c812
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ Installation

The only officialy supported method of installing this plugin is via composer.

.. code::
.. code-block:: shell
composer require josegonzalez/cakephp-upload
Enable plugin
-------------
Use the shell command to enable the plugin. Execute the following line:

.. code:: shell
.. code-block:: shell
bin/cake plugin load Josegonzalez/Upload
28 changes: 14 additions & 14 deletions docs/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ At this point there are 3 validation providers:

Since by default, no validation rules are loaded, you should start with that:

.. code:: php
.. code-block:: php
<?php
Expand All @@ -30,7 +30,7 @@ Since by default, no validation rules are loaded, you should start with that:
Afterwards, you can use its rules like:

.. code:: php
.. code-block:: php
<?php
Expand All @@ -44,7 +44,7 @@ Afterwards, you can use its rules like:
It might come in handy to only use a validation rule when there actually is an uploaded file:

.. code:: php
.. code-block:: php
<?php
Expand All @@ -68,7 +68,7 @@ UploadValidation

Check that the file does not exceed the max file size specified by PHP

.. code:: php
.. code-block:: php
<?php
Expand All @@ -85,7 +85,7 @@ Check that the file does not exceed the max file size specified by PHP
Check that the file does not exceed the max file size specified in the
HTML Form

.. code:: php
.. code-block:: php
<?php
Expand All @@ -101,7 +101,7 @@ HTML Form

Check that the file was completely uploaded

.. code:: php
.. code-block:: php
<?php
Expand All @@ -117,7 +117,7 @@ Check that the file was completely uploaded

Check that a file was uploaded

.. code:: php
.. code-block:: php
<?php
Expand All @@ -133,7 +133,7 @@ Check that a file was uploaded

Check that the file was successfully written to the server

.. code:: php
.. code-block:: php
<?php
Expand All @@ -150,7 +150,7 @@ Check that the file was successfully written to the server
Check that the file is below the maximum file upload size (checked in
bytes)

.. code:: php
.. code-block:: php
<?php
Expand All @@ -167,7 +167,7 @@ bytes)
Check that the file is above the minimum file upload size (checked in
bytes)

.. code:: php
.. code-block:: php
<?php
Expand All @@ -187,7 +187,7 @@ ImageValidation
Check that the file is above the minimum height requirement (checked in
pixels)

.. code:: php
.. code-block:: php
<?php
Expand All @@ -204,7 +204,7 @@ pixels)
Check that the file is below the maximum height requirement (checked in
pixels)

.. code:: php
.. code-block:: php
<?php
Expand All @@ -221,7 +221,7 @@ pixels)
Check that the file is above the minimum width requirement (checked in
pixels)

.. code:: php
.. code-block:: php
<?php
Expand All @@ -238,7 +238,7 @@ pixels)
Check that the file is below the maximum width requirement (checked in
pixels)

.. code:: php
.. code-block:: php
<?php
Expand Down

0 comments on commit e68c812

Please sign in to comment.