Skip to content

Commit e68c812

Browse files
committed
Try fixing formatting in rst file
1 parent 61912d0 commit e68c812

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

docs/installation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ Installation
33

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

6-
.. code::
6+
.. code-block:: shell
77
88
composer require josegonzalez/cakephp-upload
99
1010
Enable plugin
1111
-------------
1212
Use the shell command to enable the plugin. Execute the following line:
1313

14-
.. code:: shell
14+
.. code-block:: shell
1515
1616
bin/cake plugin load Josegonzalez/Upload

docs/validation.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ At this point there are 3 validation providers:
1616

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

19-
.. code:: php
19+
.. code-block:: php
2020
2121
<?php
2222
@@ -30,7 +30,7 @@ Since by default, no validation rules are loaded, you should start with that:
3030
3131
Afterwards, you can use its rules like:
3232

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

47-
.. code:: php
47+
.. code-block:: php
4848
4949
<?php
5050
@@ -68,7 +68,7 @@ UploadValidation
6868

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

71-
.. code:: php
71+
.. code-block:: php
7272
7373
<?php
7474
@@ -85,7 +85,7 @@ Check that the file does not exceed the max file size specified by PHP
8585
Check that the file does not exceed the max file size specified in the
8686
HTML Form
8787

88-
.. code:: php
88+
.. code-block:: php
8989
9090
<?php
9191
@@ -101,7 +101,7 @@ HTML Form
101101

102102
Check that the file was completely uploaded
103103

104-
.. code:: php
104+
.. code-block:: php
105105
106106
<?php
107107
@@ -117,7 +117,7 @@ Check that the file was completely uploaded
117117

118118
Check that a file was uploaded
119119

120-
.. code:: php
120+
.. code-block:: php
121121
122122
<?php
123123
@@ -133,7 +133,7 @@ Check that a file was uploaded
133133

134134
Check that the file was successfully written to the server
135135

136-
.. code:: php
136+
.. code-block:: php
137137
138138
<?php
139139
@@ -150,7 +150,7 @@ Check that the file was successfully written to the server
150150
Check that the file is below the maximum file upload size (checked in
151151
bytes)
152152

153-
.. code:: php
153+
.. code-block:: php
154154
155155
<?php
156156
@@ -167,7 +167,7 @@ bytes)
167167
Check that the file is above the minimum file upload size (checked in
168168
bytes)
169169

170-
.. code:: php
170+
.. code-block:: php
171171
172172
<?php
173173
@@ -187,7 +187,7 @@ ImageValidation
187187
Check that the file is above the minimum height requirement (checked in
188188
pixels)
189189

190-
.. code:: php
190+
.. code-block:: php
191191
192192
<?php
193193
@@ -204,7 +204,7 @@ pixels)
204204
Check that the file is below the maximum height requirement (checked in
205205
pixels)
206206

207-
.. code:: php
207+
.. code-block:: php
208208
209209
<?php
210210
@@ -221,7 +221,7 @@ pixels)
221221
Check that the file is above the minimum width requirement (checked in
222222
pixels)
223223

224-
.. code:: php
224+
.. code-block:: php
225225
226226
<?php
227227
@@ -238,7 +238,7 @@ pixels)
238238
Check that the file is below the maximum width requirement (checked in
239239
pixels)
240240

241-
.. code:: php
241+
.. code-block:: php
242242
243243
<?php
244244

0 commit comments

Comments
 (0)