Skip to content

Commit b951bda

Browse files
committed
Merge branch '4.3'
* 4.3: use ordered use statements for php code examples
2 parents a334076 + 3e0f67a commit b951bda

File tree

9 files changed

+10
-11
lines changed

9 files changed

+10
-11
lines changed

components/http_client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ including concurrent requests, HTTP/2 is only supported when using cURL.
5252
is enabled and falls back to PHP streams otherwise. If you prefer to select
5353
the transport explicitly, use the following classes to create the client::
5454

55-
use Symfony\Component\HttpClient\NativeHttpClient;
5655
use Symfony\Component\HttpClient\CurlHttpClient;
56+
use Symfony\Component\HttpClient\NativeHttpClient;
5757

5858
// uses native PHP streams
5959
$httpClient = new NativeHttpClient();

reference/constraints/Json.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ The ``Json`` constraint can be applied to a property or a "getter" method:
6969
// src/Entity/Book.php
7070
namespace App\Entity;
7171
72-
use Symfony\Component\Validator\Mapping\ClassMetadata;
7372
use Symfony\Component\Validator\Constraints as Assert;
73+
use Symfony\Component\Validator\Mapping\ClassMetadata;
7474
7575
class Book
7676
{

reference/constraints/Negative.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ The following constraint ensures that the ``withdraw`` of a bank account
6969
// src/Entity/TransferItem.php
7070
namespace App\Entity;
7171
72-
use Symfony\Component\Validator\Mapping\ClassMetadata;
7372
use Symfony\Component\Validator\Constraints as Assert;
73+
use Symfony\Component\Validator\Mapping\ClassMetadata;
7474
7575
class TransferItem
7676
{

reference/constraints/NegativeOrZero.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ is a negative number or equal to zero:
6868
// src/Entity/UnderGroundGarage.php
6969
namespace App\Entity;
7070
71-
use Symfony\Component\Validator\Mapping\ClassMetadata;
7271
use Symfony\Component\Validator\Constraints as Assert;
72+
use Symfony\Component\Validator\Mapping\ClassMetadata;
7373
7474
class UnderGroundGarage
7575
{

reference/constraints/NotCompromisedPassword.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ The following constraint ensures that the ``rawPassword`` property of the
3636
3737
class User
3838
{
39-
// ...
40-
4139
/**
4240
* @Assert\NotCompromisedPassword
4341
*/
@@ -72,8 +70,8 @@ The following constraint ensures that the ``rawPassword`` property of the
7270
// src/Entity/User.php
7371
namespace App\Entity;
7472
75-
use Symfony\Component\Validator\Mapping\ClassMetadata;
7673
use Symfony\Component\Validator\Constraints as Assert;
74+
use Symfony\Component\Validator\Mapping\ClassMetadata;
7775
7876
class User
7977
{

reference/constraints/Positive.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ positive number (greater than zero):
6969
// src/Entity/Employee.php
7070
namespace App\Entity;
7171
72-
use Symfony\Component\Validator\Mapping\ClassMetadata;
7372
use Symfony\Component\Validator\Constraints as Assert;
73+
use Symfony\Component\Validator\Mapping\ClassMetadata;
74+
7475
7576
class Employee
7677
{

reference/constraints/PositiveOrZero.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ is positive or zero:
6868
// src/Entity/Person.php
6969
namespace App\Entity;
7070
71-
use Symfony\Component\Validator\Mapping\ClassMetadata;
7271
use Symfony\Component\Validator\Constraints as Assert;
72+
use Symfony\Component\Validator\Mapping\ClassMetadata;
7373
7474
class Person
7575
{

reference/constraints/Timezone.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ string meant to contain a timezone identifier (e.g. ``America/New_York``):
6969
// src/Entity/UserSettings.php
7070
namespace App\Entity;
7171
72-
use Symfony\Component\Validator\Mapping\ClassMetadata;
7372
use Symfony\Component\Validator\Constraints as Assert;
73+
use Symfony\Component\Validator\Mapping\ClassMetadata;
7474
7575
class UserSettings
7676
{

reference/constraints/Unique.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ strings:
7878
// src/Entity/Person.php
7979
namespace App\Entity;
8080
81-
use Symfony\Component\Validator\Mapping\ClassMetadata;
8281
use Symfony\Component\Validator\Constraints as Assert;
82+
use Symfony\Component\Validator\Mapping\ClassMetadata;
8383
8484
class Person
8585
{

0 commit comments

Comments
 (0)