Skip to content

Commit c7e1920

Browse files
committed
Try fixing formatting in rst file
1 parent 501dd4a commit c7e1920

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

docs/examples.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ Basic example
88
Translate Behavior as they have been known to conflict with each
99
other.
1010

11-
.. code:: sql
11+
.. code-block:: sql
1212
1313
CREATE table users (
1414
id int(10) unsigned NOT NULL auto_increment,
1515
username varchar(20) NOT NULL,
1616
photo varchar(255)
1717
);
1818
19-
.. code:: php
19+
.. code-block:: php
2020
2121
<?php
2222
/*
@@ -49,7 +49,7 @@ Basic example
4949
}
5050
?>
5151
52-
.. code:: php
52+
.. code-block:: php
5353
5454
<?php
5555
/*
@@ -67,7 +67,7 @@ Basic example
6767
the users table, you will need to remove the default scalar validation
6868
for the photos field.
6969
70-
.. code:: php
70+
.. code-block:: php
7171
public function validationDefault(Validator $validator): void
7272
{
7373
$validator
@@ -95,7 +95,7 @@ over time, and files cannot be deleted anymore at a later point.
9595

9696
In order to prevent such situations, a field must be added to store the directory of the file as follows:
9797

98-
.. code:: sql
98+
.. code-block:: sql
9999
100100
CREATE table users (
101101
`id` int(10) unsigned NOT NULL auto_increment,
@@ -105,7 +105,7 @@ In order to prevent such situations, a field must be added to store the director
105105
PRIMARY KEY (`id`)
106106
);
107107
108-
.. code:: php
108+
.. code-block:: php
109109
110110
<?php
111111
/*
@@ -140,7 +140,7 @@ In order to prevent such situations, a field must be added to store the director
140140
}
141141
?>
142142
143-
.. code:: php
143+
.. code-block:: php
144144
145145
<?php
146146
/*
@@ -170,11 +170,11 @@ In this example we'll cover:
170170

171171
This example uses the Imagine library. It can be installed through composer:
172172

173-
.. code::
173+
.. code-block::
174174
175175
composer require imagine/imagine
176176
177-
.. code:: sql
177+
.. code-block:: sql
178178
179179
CREATE table users (
180180
id int(10) unsigned NOT NULL auto_increment,
@@ -185,7 +185,7 @@ This example uses the Imagine library. It can be installed through composer:
185185
photo_type varchar(255)
186186
);
187187
188-
.. code:: php
188+
.. code-block:: php
189189
190190
<?php
191191
/*
@@ -252,7 +252,7 @@ This example uses the Imagine library. It can be installed through composer:
252252
}
253253
?>
254254
255-
.. code:: php
255+
.. code-block:: php
256256
257257
<?php
258258
/*
@@ -274,7 +274,7 @@ by specifying the path and using the file information from the database.
274274

275275
This example uses the `default behaviour configuration <configuration.html>`__ using the model ``Example``.
276276

277-
.. code:: php
277+
.. code-block:: php
278278
279279
<?php
280280
/*
@@ -298,7 +298,7 @@ This example uses the `default behaviour configuration <configuration.html>`__ u
298298
299299
For Windows systems you'll have to build a workaround as Windows systems use backslashes as directory separator which isn't useable in URLs.
300300

301-
.. code:: php
301+
.. code-block:: php
302302
303303
<?php
304304
/*

0 commit comments

Comments
 (0)