Completed
Push — master ( e28961...6d17d3 )
by Андрей
20:19 queued 17:56
created
config/module.config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         /**
56 56
          * Список EntityManager'ов, для которых никогда не нужно собирать кеш entityMap  в автоматическом режими
57 57
          */
58
-        'excludeEntityManagerForAutoBuildEntityMap' => [],
58
+        'excludeEntityManagerForAutoBuildEntityMap' => [ ],
59 59
 
60 60
 
61 61
         /**
Please login to merge, or discard this patch.
src/Options/ModuleOptions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Utils/EntityMapCache.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.