Completed
Push — master ( d0e652...48ccfd )
by Андрей
9s
created
src/Loader/ClassLoaderFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     {
32 32
         $creationOptions = $this->getCreationOptions();
33 33
 
34
-        $classList = array_key_exists('classList', $creationOptions) ? $creationOptions['classList'] : [];
34
+        $classList = array_key_exists('classList', $creationOptions) ? $creationOptions[ 'classList' ] : [ ];
35 35
 
36 36
         return new ClassLoader($classList);
37 37
     }
Please login to merge, or discard this patch.
src/Loader/FixtureLoaderAbstractFactory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      *
36 36
      * @var array
37 37
      */
38
-    protected $fixtureLoaderConfig = [];
38
+    protected $fixtureLoaderConfig = [ ];
39 39
 
40 40
     /**
41 41
      * Инициализация фабрики
@@ -90,9 +90,9 @@  discard block
 block discarded – undo
90 90
         /** @var FixtureLoaderManagerInterface  $serviceLocator*/
91 91
 
92 92
 
93
-        $loadersConfigs = $this->fixtureLoaderConfig[$requestedName];
93
+        $loadersConfigs = $this->fixtureLoaderConfig[ $requestedName ];
94 94
 
95
-        $chains = [];
95
+        $chains = [ ];
96 96
         foreach ($loadersConfigs as $index => $item) {
97 97
             if (!is_array($item)) {
98 98
                 $errMsg = sprintf(
@@ -113,18 +113,18 @@  discard block
 block discarded – undo
113 113
                 throw new Exception\RuntimeException($errMsg);
114 114
             }
115 115
 
116
-            if (!is_string($item['name'])) {
116
+            if (!is_string($item[ 'name' ])) {
117 117
                 $errMsg = sprintf(
118 118
                     'Parameter [%s][fixtures][%s][\'name\'] of type %s is invalid. Must string',
119 119
                     Module::CONFIG_KEY,
120 120
                     $index,
121
-                    (is_object($item['name']) ? get_class($item['name']) : gettype($item['name']))
121
+                    (is_object($item[ 'name' ]) ? get_class($item[ 'name' ]) : gettype($item[ 'name' ]))
122 122
                 );
123 123
                 throw new Exception\RuntimeException($errMsg);
124 124
             }
125 125
 
126
-            $name = $item['name'];
127
-            $options = array_key_exists('options', $item) ? $item['options'] : [];
126
+            $name = $item[ 'name' ];
127
+            $options = array_key_exists('options', $item) ? $item[ 'options' ] : [ ];
128 128
             if (!is_array($options)) {
129 129
                 $errMsg = sprintf(
130 130
                     'Parameter [%s][fixtures][%s][\'options\'] of type %s is invalid. Must array',
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                 throw new Exception\RuntimeException($errMsg);
136 136
             }
137 137
 
138
-            $chains[] = $serviceLocator->get($name, $options);
138
+            $chains[ ] = $serviceLocator->get($name, $options);
139 139
         }
140 140
 
141 141
         return $serviceLocator->get(ChainLoader::class, [
Please login to merge, or discard this patch.
src/Loader/ChainLoaderFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     {
32 32
         $creationOptions = $this->getCreationOptions();
33 33
 
34
-        $loaderList = array_key_exists('loaderList', $creationOptions) ? $creationOptions['loaderList'] : [];
34
+        $loaderList = array_key_exists('loaderList', $creationOptions) ? $creationOptions[ 'loaderList' ] : [ ];
35 35
 
36 36
         return new ChainLoader($loaderList);
37 37
     }
Please login to merge, or discard this patch.
src/Loader/RecursiveDirectoryLoaderFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     {
33 33
         $creationOptions = $this->getCreationOptions();
34 34
 
35
-        $directory = array_key_exists('directory', $creationOptions) ? $creationOptions['directory'] : null;
35
+        $directory = array_key_exists('directory', $creationOptions) ? $creationOptions[ 'directory' ] : null;
36 36
 
37 37
         return new RecursiveDirectoryLoader($directory);
38 38
     }
Please login to merge, or discard this patch.
src/Executor/AbstractExecutorFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,9 +84,9 @@
 block discarded – undo
84 84
 
85 85
         $executors = $this->moduleOptions->getExecutors();
86 86
 
87
-        $creationOptions = $executors[$requestedName];
87
+        $creationOptions = $executors[ $requestedName ];
88 88
 
89
-        $creationOptions['name'] = $requestedName;
89
+        $creationOptions[ 'name' ] = $requestedName;
90 90
 
91 91
         /** @var FixtureExecutorManagerInterface  $serviceLocator*/
92 92
         return $serviceLocator->get(Executor::class, $creationOptions);
Please login to merge, or discard this patch.
src/Filter/GroupedFilterFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
     {
34 34
         $creationOptions = $this->getCreationOptions();
35 35
 
36
-        $allowedGroupList = array_key_exists('allowedGroupList', $creationOptions) ? $creationOptions['allowedGroupList'] : [];
37
-        $onlyImplementors = array_key_exists('onlyImplementors', $creationOptions) ? (bool)$creationOptions['onlyImplementors'] : false;
36
+        $allowedGroupList = array_key_exists('allowedGroupList', $creationOptions) ? $creationOptions[ 'allowedGroupList' ] : [ ];
37
+        $onlyImplementors = array_key_exists('onlyImplementors', $creationOptions) ? (bool)$creationOptions[ 'onlyImplementors' ] : false;
38 38
 
39 39
         return new GroupedFilter($allowedGroupList, $onlyImplementors);
40 40
     }
Please login to merge, or discard this patch.
src/Filter/FixtureFilterAbstractFactory.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      *
40 40
      * @var array
41 41
      */
42
-    protected $fixtureFilterConfig = [];
42
+    protected $fixtureFilterConfig = [ ];
43 43
 
44 44
     /**
45 45
      * Инициализация фабрики
@@ -94,12 +94,12 @@  discard block
 block discarded – undo
94 94
         /** @var FixtureFilterManagerInterface  $serviceLocator*/
95 95
 
96 96
 
97
-        $filtersConfigs = $this->fixtureFilterConfig[$requestedName];
97
+        $filtersConfigs = $this->fixtureFilterConfig[ $requestedName ];
98 98
 
99 99
         $creationOptions = $this->getCreationOptions();
100
-        $contextExecutor = array_key_exists('contextExecutor', $creationOptions) ? $creationOptions['contextExecutor'] : null;
100
+        $contextExecutor = array_key_exists('contextExecutor', $creationOptions) ? $creationOptions[ 'contextExecutor' ] : null;
101 101
 
102
-        $chains = [];
102
+        $chains = [ ];
103 103
         foreach ($filtersConfigs as $index => $item) {
104 104
             if (!is_array($item)) {
105 105
                 $errMsg = sprintf(
@@ -120,18 +120,18 @@  discard block
 block discarded – undo
120 120
                 throw new Exception\RuntimeException($errMsg);
121 121
             }
122 122
 
123
-            if (!is_string($item['name'])) {
123
+            if (!is_string($item[ 'name' ])) {
124 124
                 $errMsg = sprintf(
125 125
                     'Parameter [%s][filters][%s][\'name\'] of type %s is invalid. Must string',
126 126
                     Module::CONFIG_KEY,
127 127
                     $index,
128
-                    (is_object($item['name']) ? get_class($item['name']) : gettype($item['name']))
128
+                    (is_object($item[ 'name' ]) ? get_class($item[ 'name' ]) : gettype($item[ 'name' ]))
129 129
                 );
130 130
                 throw new Exception\RuntimeException($errMsg);
131 131
             }
132 132
 
133
-            $name = $item['name'];
134
-            $options = array_key_exists('options', $item) ? $item['options'] : [];
133
+            $name = $item[ 'name' ];
134
+            $options = array_key_exists('options', $item) ? $item[ 'options' ] : [ ];
135 135
             if (!is_array($options)) {
136 136
                 $errMsg = sprintf(
137 137
                     'Parameter [%s][filters][%s][\'options\'] of type %s is invalid. Must array',
@@ -142,17 +142,17 @@  discard block
 block discarded – undo
142 142
                 throw new Exception\RuntimeException($errMsg);
143 143
             }
144 144
             if (null !== $contextExecutor) {
145
-                $options['contextExecutor'] = $contextExecutor;
145
+                $options[ 'contextExecutor' ] = $contextExecutor;
146 146
             }
147 147
 
148
-            $chains[] = $serviceLocator->get($name, $options);
148
+            $chains[ ] = $serviceLocator->get($name, $options);
149 149
         }
150 150
 
151 151
         $chainFilterOptions = [
152 152
             'filterList' => $chains
153 153
         ];
154 154
         if (null !== $contextExecutor) {
155
-            $chainFilterOptions['contextExecutor'] = $contextExecutor;
155
+            $chainFilterOptions[ 'contextExecutor' ] = $contextExecutor;
156 156
         }
157 157
 
158 158
         return $serviceLocator->get(ChainFilter::class, $chainFilterOptions);
Please login to merge, or discard this patch.
src/Filter/ChainFilterFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     {
34 34
         $creationOptions = $this->getCreationOptions();
35 35
 
36
-        $filterList = array_key_exists('filterList', $creationOptions) ? $creationOptions['filterList'] : [];
36
+        $filterList = array_key_exists('filterList', $creationOptions) ? $creationOptions[ 'filterList' ] : [ ];
37 37
 
38 38
         return new ChainFilter($filterList);
39 39
     }
Please login to merge, or discard this patch.
src/FilterUsedFixtureService/FilterUsedFixtureService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
 
116 116
         $executorName = $executor->getName();
117
-        $fixtureClassName =  get_class($fixture);
117
+        $fixtureClassName = get_class($fixture);
118 118
 
119 119
         $markers = $objectManager->getRepository(UsedFixture::class)->findBy([
120 120
             'executorName' => $executorName,
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         $objectManager = $this->getManagerRegistry()->getManager();
149 149
 
150 150
         $executorName = $executor->getName();
151
-        $fixtureClassName =  get_class($fixture);
151
+        $fixtureClassName = get_class($fixture);
152 152
 
153 153
         $markers = $objectManager->getRepository(UsedFixture::class)->findBy([
154 154
             'executorName' => $executorName,
Please login to merge, or discard this patch.