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 501dd4a commit c7e1920
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ Basic example
Translate Behavior as they have been known to conflict with each
other.

.. code:: sql
.. code-block:: sql
CREATE table users (
id int(10) unsigned NOT NULL auto_increment,
username varchar(20) NOT NULL,
photo varchar(255)
);
.. code:: php
.. code-block:: php
<?php
/*
Expand Down Expand Up @@ -49,7 +49,7 @@ Basic example
}
?>
.. code:: php
.. code-block:: php
<?php
/*
Expand All @@ -67,7 +67,7 @@ Basic example
the users table, you will need to remove the default scalar validation
for the photos field.
.. code:: php
.. code-block:: php
public function validationDefault(Validator $validator): void
{
$validator
Expand Down Expand Up @@ -95,7 +95,7 @@ over time, and files cannot be deleted anymore at a later point.

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

.. code:: sql
.. code-block:: sql
CREATE table users (
`id` int(10) unsigned NOT NULL auto_increment,
Expand All @@ -105,7 +105,7 @@ In order to prevent such situations, a field must be added to store the director
PRIMARY KEY (`id`)
);
.. code:: php
.. code-block:: php
<?php
/*
Expand Down Expand Up @@ -140,7 +140,7 @@ In order to prevent such situations, a field must be added to store the director
}
?>
.. code:: php
.. code-block:: php
<?php
/*
Expand Down Expand Up @@ -170,11 +170,11 @@ In this example we'll cover:

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

.. code::
.. code-block::
composer require imagine/imagine
.. code:: sql
.. code-block:: sql
CREATE table users (
id int(10) unsigned NOT NULL auto_increment,
Expand All @@ -185,7 +185,7 @@ This example uses the Imagine library. It can be installed through composer:
photo_type varchar(255)
);
.. code:: php
.. code-block:: php
<?php
/*
Expand Down Expand Up @@ -252,7 +252,7 @@ This example uses the Imagine library. It can be installed through composer:
}
?>
.. code:: php
.. code-block:: php
<?php
/*
Expand All @@ -274,7 +274,7 @@ by specifying the path and using the file information from the database.

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

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

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

0 comments on commit c7e1920

Please sign in to comment.