Skip to content

Commit aad2668

Browse files
committed
Fixed spacing issues
1 parent 72a6d59 commit aad2668

File tree

9 files changed

+62
-64
lines changed

9 files changed

+62
-64
lines changed

reference/constraints/Choice.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,4 +280,4 @@ strict
280280

281281
If true, the validator will also check the type of the input value. Specifically,
282282
this value is passed to as the third argument to the PHP :phpfunction:`in_array` method
283-
when checking to see if a value is in the valid choices array.
283+
when checking to see if a value is in the valid choices array.

reference/constraints/Country.rst

+10-12
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,16 @@ Basic Usage
2828
2929
.. code-block:: php-annotations
3030
31-
// src/Acme/UserBundle/Entity/User.php
32-
namespace Acme\UserBundle\Entity;
33-
34-
use Symfony\Component\Validator\Constraints as Assert;
35-
36-
class User
37-
{
38-
/**
39-
* @Assert\Country
40-
*/
41-
protected $country;
42-
}
31+
// src/Acme/UserBundle/Entity/User.php
32+
use Symfony\Component\Validator\Constraints as Assert;
33+
34+
class User
35+
{
36+
/**
37+
* @Assert\Country
38+
*/
39+
protected $country;
40+
}
4341
4442
.. code-block:: xml
4543

reference/constraints/Email.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ checkMX
102102
If true, then the `checkdnsrr`_ PHP function will be used to check the validity
103103
of the MX record of the host of the given email.
104104

105-
.. _`checkdnsrr`: http://www.php.net/manual/en/function.checkdnsrr.php
105+
.. _`checkdnsrr`: http://www.php.net/manual/en/function.checkdnsrr.php

reference/constraints/Ip.rst

+12-12
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ Basic Usage
3131
3232
.. code-block:: php-annotations
3333
34-
// src/Acme/BlogBundle/Entity/Author.php
35-
namespace Acme\BlogBundle\Entity;
36-
37-
use Symfony\Component\Validator\Constraints as Assert;
38-
39-
class Author
40-
{
41-
/**
42-
* @Assert\Ip
43-
*/
44-
protected $ipAddress;
45-
}
34+
// src/Acme/BlogBundle/Entity/Author.php
35+
namespace Acme\BlogBundle\Entity;
36+
37+
use Symfony\Component\Validator\Constraints as Assert;
38+
39+
class Author
40+
{
41+
/**
42+
* @Assert\Ip
43+
*/
44+
protected $ipAddress;
45+
}
4646
4747
.. code-block:: xml
4848

reference/constraints/Language.rst

+12-12
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ Basic Usage
2828
2929
.. code-block:: php-annotations
3030
31-
// src/Acme/UserBundle/Entity/User.php
32-
namespace Acme\UserBundle\Entity;
33-
34-
use Symfony\Component\Validator\Constraints as Assert;
35-
36-
class User
37-
{
38-
/**
39-
* @Assert\Language
40-
*/
41-
protected $preferredLanguage;
42-
}
31+
// src/Acme/UserBundle/Entity/User.php
32+
namespace Acme\UserBundle\Entity;
33+
34+
use Symfony\Component\Validator\Constraints as Assert;
35+
36+
class User
37+
{
38+
/**
39+
* @Assert\Language
40+
*/
41+
protected $preferredLanguage;
42+
}
4343
4444
.. code-block:: xml
4545

reference/constraints/Locale.rst

+12-12
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ Basic Usage
3232
3333
.. code-block:: php-annotations
3434
35-
// src/Acme/UserBundle/Entity/User.php
36-
namespace Acme\UserBundle\Entity;
37-
38-
use Symfony\Component\Validator\Constraints as Assert;
39-
40-
class User
41-
{
42-
/**
43-
* @Assert\Locale
44-
*/
45-
protected $locale;
46-
}
35+
// src/Acme/UserBundle/Entity/User.php
36+
namespace Acme\UserBundle\Entity;
37+
38+
use Symfony\Component\Validator\Constraints as Assert;
39+
40+
class User
41+
{
42+
/**
43+
* @Assert\Locale
44+
*/
45+
protected $locale;
46+
}
4747
4848
.. code-block:: xml
4949

reference/constraints/MinLength.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ charset
9999

100100
If the PHP extension "mbstring" is installed, then the PHP function :phpfunction:`mb_strlen`
101101
will be used to calculate the length of the string. The value of the ``charset``
102-
option is passed as the second argument to that function.
102+
option is passed as the second argument to that function.

reference/constraints/Regex.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,4 @@ message
156156

157157
**type**: ``string`` **default**: ``This value is not valid``
158158

159-
This is the message that will be shown if this validator fails.
159+
This is the message that will be shown if this validator fails.

reference/constraints/Url.rst

+12-12
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ Basic Usage
2929
3030
.. code-block:: php-annotations
3131
32-
// src/Acme/BlogBundle/Entity/Author.php
33-
namespace Acme\BlogBundle\Entity;
34-
35-
use Symfony\Component\Validator\Constraints as Assert;
36-
37-
class Author
38-
{
39-
/**
40-
* @Assert\Url()
41-
*/
42-
protected $bioUrl;
43-
}
32+
// src/Acme/BlogBundle/Entity/Author.php
33+
namespace Acme\BlogBundle\Entity;
34+
35+
use Symfony\Component\Validator\Constraints as Assert;
36+
37+
class Author
38+
{
39+
/**
40+
* @Assert\Url()
41+
*/
42+
protected $bioUrl;
43+
}
4444
4545
.. code-block:: xml
4646

0 commit comments

Comments
 (0)