@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * |
| 30 | 30 | * @var array |
| 31 | 31 | */ |
| 32 | - protected $classNameToObjectManagerName = []; |
|
| 32 | + protected $classNameToObjectManagerName = [ ]; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Плагин менеджер для получения ObjectManager'ов Doctrine2 |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | throw new Exception\ErrorBuildObjectManagerNameException($errMsg); |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | - return $this->classNameToObjectManagerName[$realClass]; |
|
| 72 | + return $this->classNameToObjectManagerName[ $realClass ]; |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | |
@@ -86,31 +86,31 @@ discard block |
||
| 86 | 86 | $realClass = ClassUtils::getRealClass($className); |
| 87 | 87 | |
| 88 | 88 | if (array_key_exists($realClass, $this->classNameToObjectManagerName)) { |
| 89 | - return false !== $this->classNameToObjectManagerName[$realClass]; |
|
| 89 | + return false !== $this->classNameToObjectManagerName[ $realClass ]; |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - $moduleOptionsManager = $this->getModuleOptionsManager(); |
|
| 92 | + $moduleOptionsManager = $this->getModuleOptionsManager(); |
|
| 93 | 93 | if (!$moduleOptionsManager->hasOptionsByClassName($realClass)) { |
| 94 | - $this->classNameToObjectManagerName[$realClass] = false; |
|
| 94 | + $this->classNameToObjectManagerName[ $realClass ] = false; |
|
| 95 | 95 | return false; |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | $moduleOptions = $moduleOptionsManager->getOptionsByClassName($realClass); |
| 99 | 99 | |
| 100 | 100 | if (!$moduleOptions instanceof ObjectManagerNameProviderInterface) { |
| 101 | - $this->classNameToObjectManagerName[$realClass] = false; |
|
| 101 | + $this->classNameToObjectManagerName[ $realClass ] = false; |
|
| 102 | 102 | return false; |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | $objectManagerName = $moduleOptions->getObjectManagerName(); |
| 106 | 106 | |
| 107 | 107 | if (!is_string($objectManagerName)) { |
| 108 | - $this->classNameToObjectManagerName[$realClass] = false; |
|
| 108 | + $this->classNameToObjectManagerName[ $realClass ] = false; |
|
| 109 | 109 | return false; |
| 110 | 110 | } |
| 111 | - $this->classNameToObjectManagerName[$realClass] = $objectManagerName; |
|
| 111 | + $this->classNameToObjectManagerName[ $realClass ] = $objectManagerName; |
|
| 112 | 112 | |
| 113 | - return false !== $this->classNameToObjectManagerName[$realClass]; |
|
| 113 | + return false !== $this->classNameToObjectManagerName[ $realClass ]; |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | |