@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM; |
6 | 6 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Reflection; |
7 | 7 | |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | */ |
20 | 20 | public function getParentClasses(string $className) : array |
21 | 21 | { |
22 | - if (! class_exists($className)) { |
|
22 | + if ( ! class_exists($className)) { |
|
23 | 23 | throw MappingException::nonExistingClass($className); |
24 | 24 | } |
25 | 25 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * {@inheritdoc} |
51 | 51 | */ |
52 | - public function getClass(string $className) : ?\ReflectionClass |
|
52 | + public function getClass(string $className) : ? \ReflectionClass |
|
53 | 53 | { |
54 | 54 | return new \ReflectionClass($className); |
55 | 55 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | /** |
58 | 58 | * {@inheritdoc} |
59 | 59 | */ |
60 | - public function getAccessibleProperty(string $className, string $propertyName) : ?\ReflectionProperty |
|
60 | + public function getAccessibleProperty(string $className, string $propertyName) : ? \ReflectionProperty |
|
61 | 61 | { |
62 | 62 | $reflectionProperty = new \ReflectionProperty($className, $propertyName); |
63 | 63 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Reflection; |
7 | 7 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | public function getClassShortName(string $className) : string |
27 | 27 | { |
28 | 28 | if (strpos($className, '\\') !== false) { |
29 | - $className = substr($className, strrpos($className, "\\")+1); |
|
29 | + $className = substr($className, strrpos($className, "\\") + 1); |
|
30 | 30 | } |
31 | 31 | return $className; |
32 | 32 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $namespace = ''; |
40 | 40 | |
41 | 41 | if (strpos($className, '\\') !== false) { |
42 | - $namespace = strrev(substr( strrev($className), strpos(strrev($className), '\\')+1 )); |
|
42 | + $namespace = strrev(substr(strrev($className), strpos(strrev($className), '\\') + 1)); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | return $namespace; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | /** |
49 | 49 | * {@inheritDoc} |
50 | 50 | */ |
51 | - public function getClass(string $className) : ?\ReflectionClass |
|
51 | + public function getClass(string $className) : ? \ReflectionClass |
|
52 | 52 | { |
53 | 53 | return null; |
54 | 54 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | /** |
57 | 57 | * {@inheritDoc} |
58 | 58 | */ |
59 | - public function getAccessibleProperty(string $className, string $propertyName) : ?\ReflectionProperty |
|
59 | + public function getAccessibleProperty(string $className, string $propertyName) : ? \ReflectionProperty |
|
60 | 60 | { |
61 | 61 | return null; |
62 | 62 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Reflection; |
6 | 6 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Reflection; |
7 | 7 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * |
50 | 50 | * @return \ReflectionClass|null |
51 | 51 | */ |
52 | - public function getClass(string $className) : ?\ReflectionClass; |
|
52 | + public function getClass(string $className) : ? \ReflectionClass; |
|
53 | 53 | |
54 | 54 | /** |
55 | 55 | * Returns an accessible property (setAccessible(true)) or null. |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @return \ReflectionProperty|null |
61 | 61 | */ |
62 | - public function getAccessibleProperty(string $className, string $propertyName) : ?\ReflectionProperty; |
|
62 | + public function getAccessibleProperty(string $className, string $propertyName) : ? \ReflectionProperty; |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * Checks if the class have a public method with the given name. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Event; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Event; |
6 | 6 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Doctrine\ORM\Event; |
5 | 5 |