Completed
Push — dev ( 1d55ed...662a5b )
by Андрей
03:01
created
src/Controller/ExecutorController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@
 block discarded – undo
180 180
      * Запуск выполнения фикстур
181 181
      *
182 182
      * @param ExecutorInterface $executor
183
-     * @param                   $method
183
+     * @param                   string|null $method
184 184
      * @param array             $contextData
185 185
      */
186 186
     protected function runFixture(ExecutorInterface $executor, $method, array $contextData = [])
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $method = $this->getExecutorMethod();
62 62
 
63
-        $contextData = [];
63
+        $contextData = [ ];
64 64
         $objectManagerName = $this->getObjectManagerName();
65 65
 
66 66
         if (null !== $objectManagerName) {
67
-            $contextData['objectManagerName'] = $objectManagerName;
67
+            $contextData[ 'objectManagerName' ] = $objectManagerName;
68 68
         }
69 69
 
70 70
         $classList = $this->getFixtureClassList();
@@ -161,10 +161,10 @@  discard block
 block discarded – undo
161 161
         $executorName = $this->getExecutorName();
162 162
         $method = $this->getObjectManagerName();
163 163
 
164
-        $contextData = [];
164
+        $contextData = [ ];
165 165
         $objectManagerName = $this->getObjectManagerName();
166 166
         if (null !== $objectManagerName) {
167
-            $contextData['objectManagerName'] = $objectManagerName;
167
+            $contextData[ 'objectManagerName' ] = $objectManagerName;
168 168
         }
169 169
 
170 170
         $executor = $this->getFixtureExecutorManager()->get($executorName);
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      * @param                   $method
184 184
      * @param array             $contextData
185 185
      */
186
-    protected function runFixture(ExecutorInterface $executor, $method, array $contextData = [])
186
+    protected function runFixture(ExecutorInterface $executor, $method, array $contextData = [ ])
187 187
     {
188 188
         $console = $this->getConsole();
189 189
         $console->writeLine(sprintf('Run fixture executor %s', $executor->getName()));
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
         $listener = $eventSharedManager->attach(
193 193
             ExecutorDispatcherInterface::class,
194 194
             ExecutorDispatcherEvent::class,
195
-            function (ExecutorDispatcherEvent $e) use ($console) {
195
+            function(ExecutorDispatcherEvent $e) use ($console) {
196 196
                 $console->writeLine(sprintf('Execute fixture: %s', get_class($e->getFixture())));
197 197
             }
198 198
         );
Please login to merge, or discard this patch.
src/Executor/ClassListFixtureExecutorFactory.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         /** @var FixtureExecutorBuilderInterface $builder */
43 43
         $builder = $appServiceLocator->get(FixtureExecutorBuilderInterface::class);
44 44
 
45
-       /** @var FixtureInitializerManagerInterface $fixtureInitializerManager */
45
+        /** @var FixtureInitializerManagerInterface $fixtureInitializerManager */
46 46
         $fixtureInitializerManager = $appServiceLocator->get(FixtureInitializerManagerInterface::class);
47 47
 
48 48
         $executor = new ClassListFixtureExecutor($configuration, $builder, $fixtureInitializerManager);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function createService(ServiceLocatorInterface $serviceLocator)
35 35
     {
36
-        $appServiceLocator = $serviceLocator instanceof AbstractPluginManager ? $serviceLocator->getServiceLocator() :$serviceLocator;
36
+        $appServiceLocator = $serviceLocator instanceof AbstractPluginManager ? $serviceLocator->getServiceLocator() : $serviceLocator;
37 37
 
38 38
         $creationOptions = $this->getCreationOptions();
39 39
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         /** @var FixtureLoaderManagerInterface $fixtureLoaderManager */
52 52
         $fixtureLoaderManager = $appServiceLocator->get(FixtureLoaderManagerInterface::class);
53 53
 
54
-        $classList = array_key_exists('classList', $creationOptions) ? $creationOptions['classList'] : [];
54
+        $classList = array_key_exists('classList', $creationOptions) ? $creationOptions[ 'classList' ] : [ ];
55 55
 
56 56
         $classLoaderCreationOptions = [
57 57
             'classList' => $classList
Please login to merge, or discard this patch.