@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/nnx-framework/doctrine |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/nnx-framework/doctrine |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace Nnx\Doctrine; |
7 | 7 | |
8 | 8 | use Nnx\Doctrine\ObjectManager\DoctrineObjectManager; |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/nnx-framework/doctrine |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/nnx-framework/doctrine |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace Nnx\Doctrine; |
7 | 7 | |
8 | 8 | use Nnx\Doctrine\ObjectManager\DoctrineObjectManager; |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/nnx-framework/doctrine |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/nnx-framework/doctrine |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace Nnx\Doctrine; |
7 | 7 | |
8 | 8 | use Nnx\Doctrine\ObjectManager\DoctrineObjectManager; |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/nnx-framework/doctrine |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/nnx-framework/doctrine |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace Nnx\Doctrine; |
7 | 7 | |
8 | 8 | use Nnx\Doctrine\ObjectManager\DoctrineObjectManager; |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/nnx-framework/doctrine |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/nnx-framework/doctrine |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace Nnx\Doctrine; |
7 | 7 | |
8 | 8 | use Nnx\Doctrine\ObjectManager\DoctrineObjectManager; |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/nnx-framework/doctrine |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/nnx-framework/doctrine |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace Nnx\Doctrine; |
7 | 7 | |
8 | 8 | use Nnx\Doctrine\ObjectManager\DoctrineObjectManager; |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/nnx-framework/doctrine |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/nnx-framework/doctrine |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace Nnx\Doctrine; |
7 | 7 | |
8 | 8 | use Nnx\Doctrine\ObjectManager\DoctrineObjectManager; |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/nnx-framework/doctrine |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/nnx-framework/doctrine |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace Nnx\Doctrine; |
7 | 7 | |
8 | 8 | use Nnx\Doctrine\ObjectManager\DoctrineObjectManager; |
@@ -77,12 +77,12 @@ discard block |
||
77 | 77 | |
78 | 78 | $listEntityInterfaces = $this->buildListEntityInterfaces($entityClassNames); |
79 | 79 | |
80 | - $map = []; |
|
80 | + $map = [ ]; |
|
81 | 81 | |
82 | 82 | $entityManager = $this->getEntityManager(); |
83 | 83 | foreach ($listEntityInterfaces as $currentInterface) { |
84 | 84 | if ($entityManager->hasEntityClassByInterface($currentInterface)) { |
85 | - $map[$currentInterface] = $entityManager->getEntityClassByInterface($currentInterface); |
|
85 | + $map[ $currentInterface ] = $entityManager->getEntityClassByInterface($currentInterface); |
|
86 | 86 | } |
87 | 87 | } |
88 | 88 | |
@@ -96,9 +96,9 @@ discard block |
||
96 | 96 | * |
97 | 97 | * @return array |
98 | 98 | */ |
99 | - public function buildListEntityInterfaces(array $entityClassNames = []) |
|
99 | + public function buildListEntityInterfaces(array $entityClassNames = [ ]) |
|
100 | 100 | { |
101 | - $listEntityInterfaces = []; |
|
101 | + $listEntityInterfaces = [ ]; |
|
102 | 102 | |
103 | 103 | $moduleOptionsManager = $this->getModuleOptionsPluginManager(); |
104 | 104 | $allowedModules = $this->getAllowedModules($entityClassNames); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | if ($moduleOptionsManager->hasModuleNameByClassName($currentInterface)) { |
111 | 111 | $moduleNameByInterface = $moduleOptionsManager->getModuleNameByClassName($currentInterface); |
112 | 112 | if (array_key_exists($moduleNameByInterface, $allowedModules)) { |
113 | - $listEntityInterfaces[$currentInterface] = $currentInterface; |
|
113 | + $listEntityInterfaces[ $currentInterface ] = $currentInterface; |
|
114 | 114 | } |
115 | 115 | } |
116 | 116 | } |
@@ -126,14 +126,14 @@ discard block |
||
126 | 126 | * |
127 | 127 | * @return array |
128 | 128 | */ |
129 | - public function getAllowedModules(array $entityClassNames = []) |
|
129 | + public function getAllowedModules(array $entityClassNames = [ ]) |
|
130 | 130 | { |
131 | 131 | $moduleOptionsManager = $this->getModuleOptionsPluginManager(); |
132 | - $allowedModules = []; |
|
132 | + $allowedModules = [ ]; |
|
133 | 133 | foreach ($entityClassNames as $entityClassName) { |
134 | 134 | if ($moduleOptionsManager->hasModuleNameByClassName($entityClassName)) { |
135 | 135 | $moduleName = $moduleOptionsManager->getModuleNameByClassName($entityClassName); |
136 | - $allowedModules[$moduleName] = $moduleName; |
|
136 | + $allowedModules[ $moduleName ] = $moduleName; |
|
137 | 137 | } |
138 | 138 | } |
139 | 139 | |
@@ -157,11 +157,11 @@ discard block |
||
157 | 157 | |
158 | 158 | $allMetadata = $objectManager->getMetadataFactory()->getAllMetadata(); |
159 | 159 | |
160 | - $entityClassNames = []; |
|
160 | + $entityClassNames = [ ]; |
|
161 | 161 | foreach ($allMetadata as $classMetadata) { |
162 | 162 | if ($classMetadata instanceof ClassMetadata) { |
163 | 163 | $entityClassName = $classMetadata->getName(); |
164 | - $entityClassNames[$entityClassName] = $entityClassName; |
|
164 | + $entityClassNames[ $entityClassName ] = $entityClassName; |
|
165 | 165 | } |
166 | 166 | } |
167 | 167 |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/nnx-framework/doctrine |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/nnx-framework/doctrine |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace Nnx\Doctrine; |
7 | 7 | |
8 | 8 | use Nnx\Doctrine\ObjectManager\DoctrineObjectManager; |