@@ -55,7 +55,7 @@ |
||
| 55 | 55 | /** |
| 56 | 56 | * Список EntityManager'ов, для которых никогда не нужно собирать кеш entityMap в автоматическом режими |
| 57 | 57 | */ |
| 58 | - 'excludeEntityManagerForAutoBuildEntityMap' => [], |
|
| 58 | + 'excludeEntityManagerForAutoBuildEntityMap' => [ ], |
|
| 59 | 59 | |
| 60 | 60 | |
| 61 | 61 | /** |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | * |
| 94 | 94 | * @var array |
| 95 | 95 | */ |
| 96 | - protected $excludeEntityManagerForAutoBuildEntityMap = []; |
|
| 96 | + protected $excludeEntityManagerForAutoBuildEntityMap = [ ]; |
|
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | 99 | * Флаг позволяет отключить использования кеширования при работе с entityMap |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | * |
| 315 | 315 | * @return $this |
| 316 | 316 | */ |
| 317 | - public function setExcludeEntityManagerForAutoBuildEntityMap(array $excludeEntityManagerForAutoBuildEntityMap = []) |
|
| 317 | + public function setExcludeEntityManagerForAutoBuildEntityMap(array $excludeEntityManagerForAutoBuildEntityMap = [ ]) |
|
| 318 | 318 | { |
| 319 | 319 | $this->excludeEntityManagerForAutoBuildEntityMap = $excludeEntityManagerForAutoBuildEntityMap; |
| 320 | 320 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | * |
| 42 | 42 | * @var array |
| 43 | 43 | */ |
| 44 | - protected $cacheKeys = []; |
|
| 44 | + protected $cacheKeys = [ ]; |
|
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * EntityMapCache constructor. |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public function saveEntityMap($objectManagerName) |
| 71 | 71 | { |
| 72 | - $moduleOptions = $this->getModuleOptions(); |
|
| 72 | + $moduleOptions = $this->getModuleOptions(); |
|
| 73 | 73 | $originalFlag = $this->getModuleOptions()->getFlagDisableUseEntityMapDoctrineCache(); |
| 74 | 74 | $moduleOptions->setFlagDisableUseEntityMapDoctrineCache(true); |
| 75 | 75 | |
@@ -144,15 +144,15 @@ discard block |
||
| 144 | 144 | public function getCacheKeyForObjectManagerName($objectManagerName) |
| 145 | 145 | { |
| 146 | 146 | if (array_key_exists($objectManagerName, $this->cacheKeys)) { |
| 147 | - return $this->cacheKeys[$objectManagerName]; |
|
| 147 | + return $this->cacheKeys[ $objectManagerName ]; |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | $preffix = $this->getModuleOptions()->getEntityMapDoctrineCachePrefix(); |
| 151 | 151 | $key = $preffix . '_' . $objectManagerName; |
| 152 | 152 | |
| 153 | - $this->cacheKeys[$objectManagerName] = $key; |
|
| 153 | + $this->cacheKeys[ $objectManagerName ] = $key; |
|
| 154 | 154 | |
| 155 | - return $this->cacheKeys[$objectManagerName]; |
|
| 155 | + return $this->cacheKeys[ $objectManagerName ]; |
|
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | /** |