@@ -43,14 +43,14 @@ discard block |
||
43 | 43 | * |
44 | 44 | * @var array |
45 | 45 | */ |
46 | - protected $entityManagerAllClassNames = []; |
|
46 | + protected $entityManagerAllClassNames = [ ]; |
|
47 | 47 | |
48 | 48 | /** |
49 | 49 | * Ключем является имя класса, а значением discriminatorValue, взятое из методанных |
50 | 50 | * |
51 | 51 | * @var array |
52 | 52 | */ |
53 | - protected $discriminatorValueMap = []; |
|
53 | + protected $discriminatorValueMap = [ ]; |
|
54 | 54 | |
55 | 55 | /** |
56 | 56 | * DiscriminatorEntryListener constructor. |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | protected function init() |
87 | 87 | { |
88 | 88 | try { |
89 | - AnnotationRegistry::registerLoader(function ($class) { |
|
89 | + AnnotationRegistry::registerLoader(function($class) { |
|
90 | 90 | return (bool) class_exists($class); |
91 | 91 | }); |
92 | 92 | } catch (\Exception $e) { |
@@ -131,11 +131,11 @@ discard block |
||
131 | 131 | public function hasDiscriminatorValue($className) |
132 | 132 | { |
133 | 133 | if (array_key_exists($className, $this->discriminatorValueMap)) { |
134 | - return false !== $this->discriminatorValueMap[$className]; |
|
134 | + return false !== $this->discriminatorValueMap[ $className ]; |
|
135 | 135 | } |
136 | - $this->discriminatorValueMap[$className] = $this->buildDiscriminatorValueMap($className); |
|
136 | + $this->discriminatorValueMap[ $className ] = $this->buildDiscriminatorValueMap($className); |
|
137 | 137 | |
138 | - return $this->discriminatorValueMap[$className]; |
|
138 | + return $this->discriminatorValueMap[ $className ]; |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | /** |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | throw new Exception\DiscriminatorValueNotFoundException($errMsg); |
155 | 155 | } |
156 | 156 | |
157 | - return $this->discriminatorValueMap[$className]; |
|
157 | + return $this->discriminatorValueMap[ $className ]; |
|
158 | 158 | } |
159 | 159 | |
160 | 160 | /** |