Completed
Push — dev ( 14e4a6...854686 )
by Андрей
02:59
created
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.
src/Listener/AbstractExecutorListener.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $sharedEventManager = $events->getSharedManager();
62 62
 
63
-        $sharedEventManager->attach(PreExecuteEventSubscriberInterface::class, FixtureExecutorEvent::START_EXECUTE_FIXTURES_EVENT, [$this, 'startExecutorHandler']);
64
-        $sharedEventManager->attach(PostExecuteEventSubscriberInterface::class, FixtureExecutorEvent::END_EXECUTE_FIXTURES_EVENT, [$this, 'endExecutorHandler']);
65
-        $sharedEventManager->attach(RunFixtureEventSubscriberInterface::class, FixtureEvent::EXECUTE_FIXTURE_EVENT, [$this, 'executeFixtureHandler']);
63
+        $sharedEventManager->attach(PreExecuteEventSubscriberInterface::class, FixtureExecutorEvent::START_EXECUTE_FIXTURES_EVENT, [ $this, 'startExecutorHandler' ]);
64
+        $sharedEventManager->attach(PostExecuteEventSubscriberInterface::class, FixtureExecutorEvent::END_EXECUTE_FIXTURES_EVENT, [ $this, 'endExecutorHandler' ]);
65
+        $sharedEventManager->attach(RunFixtureEventSubscriberInterface::class, FixtureEvent::EXECUTE_FIXTURE_EVENT, [ $this, 'executeFixtureHandler' ]);
66 66
     }
67 67
 
68 68
     /**
@@ -274,10 +274,10 @@  discard block
 block discarded – undo
274 274
     {
275 275
         $eventManager = $this->getEventManager();
276 276
 
277
-        $eventManager->attach(ExecutorDispatcherEvent::RUN_EXECUTOR_EVENT, [$this, 'onRunExecutorHandler'], 100);
278
-        $eventManager->attach(ExecutorDispatcherEvent::RUN_FIXTURE_EVENT, [$this, 'onRunFixtureHandler'], 100);
279
-        $eventManager->attach(ExecutorDispatcherEvent::FINISH_FIXTURE_EVENT, [$this, 'onFinishFixtureHandler'], 100);
280
-        $eventManager->attach(ExecutorDispatcherEvent::FINISH_EXECUTOR_EVENT, [$this, 'onFinishExecutorHandler'], 100);
277
+        $eventManager->attach(ExecutorDispatcherEvent::RUN_EXECUTOR_EVENT, [ $this, 'onRunExecutorHandler' ], 100);
278
+        $eventManager->attach(ExecutorDispatcherEvent::RUN_FIXTURE_EVENT, [ $this, 'onRunFixtureHandler' ], 100);
279
+        $eventManager->attach(ExecutorDispatcherEvent::FINISH_FIXTURE_EVENT, [ $this, 'onFinishFixtureHandler' ], 100);
280
+        $eventManager->attach(ExecutorDispatcherEvent::FINISH_EXECUTOR_EVENT, [ $this, 'onFinishExecutorHandler' ], 100);
281 281
     }
282 282
 
283 283
     /**
Please login to merge, or discard this patch.
src/Filter/FilterUsedFixtureFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,6 +45,6 @@
 block discarded – undo
45 45
         $filterUsedFixtureService = $appServiceLocator->get(FilterUsedFixtureServiceInterface::class);
46 46
 
47 47
 
48
-        return new FilterUsedFixture($creationOptions['contextExecutor'], $filterUsedFixtureService);
48
+        return new FilterUsedFixture($creationOptions[ 'contextExecutor' ], $filterUsedFixtureService);
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
src/Loader/DirectoryLoaderFactory.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/Loader/GlobLoaderFactory.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.
config/doctrine.config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
         'driver' => [
8 8
             Module::MODULE_NAME => [
9 9
                 'cache' => 'array',
10
-                'paths' => [__DIR__ . '/../src/Entity'],
10
+                'paths' => [ __DIR__ . '/../src/Entity' ],
11 11
                 'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
12 12
             ],
13 13
         ],
Please login to merge, or discard this patch.
Module.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     public function init(ModuleManagerInterface $manager)
91 91
     {
92 92
         if (!$manager instanceof ModuleManager) {
93
-            $errMsg =sprintf('Module manager not implement %s', ModuleManager::class);
93
+            $errMsg = sprintf('Module manager not implement %s', ModuleManager::class);
94 94
             throw new Exception\InvalidArgumentException($errMsg);
95 95
         }
96 96
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     public function onBootstrap(EventInterface $e)
144 144
     {
145 145
         if (!$e instanceof MvcEvent) {
146
-            $errMsg =sprintf('Event not implement %s', MvcEvent::class);
146
+            $errMsg = sprintf('Event not implement %s', MvcEvent::class);
147 147
             throw new Exception\InvalidArgumentException($errMsg);
148 148
         }
149 149
 
@@ -196,9 +196,9 @@  discard block
 block discarded – undo
196 196
         return [
197 197
             'Doctrine data fixture',
198 198
             'nnx:fixture execute-fixture --fixtureClassName=' => 'Run fixture bu class name',
199
-            ['--fixtureClassName=FIXTURE_CLASS_NAME', 'Fixture class name'],
199
+            [ '--fixtureClassName=FIXTURE_CLASS_NAME', 'Fixture class name' ],
200 200
             'nnx:fixture run-executor --executorName=' => 'Run fixture executor by name',
201
-            ['--executorName==EXECUTOR_NAME', 'Executor name'],
201
+            [ '--executorName==EXECUTOR_NAME', 'Executor name' ],
202 202
         ];
203 203
     }
204 204
 
Please login to merge, or discard this patch.
src/Utils/ManagerRegistryProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     {
42 42
 
43 43
         //@see \Nnx\Doctrine\Listener\ManagerRegistryListener
44
-        $results = $this->getEventManager()->trigger('get.doctrineManagerRegistry', $this, [], function ($managerRegistry) {
44
+        $results = $this->getEventManager()->trigger('get.doctrineManagerRegistry', $this, [ ], function($managerRegistry) {
45 45
             return $managerRegistry instanceof ManagerRegistry;
46 46
         });
47 47
 
Please login to merge, or discard this patch.
src/Executor/Executor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     /**
66 66
      * @var array
67 67
      */
68
-    protected $contextFixtureInitializer = [];
68
+    protected $contextFixtureInitializer = [ ];
69 69
 
70 70
     /**
71 71
      * Executor constructor.
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      *
181 181
      * @return void
182 182
      */
183
-    public function import(array $contextData = [])
183
+    public function import(array $contextData = [ ])
184 184
     {
185 185
         $loader = $this->getLoader();
186 186
         $filter = $this->getFilter();
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      *
195 195
      * @return void
196 196
      */
197
-    public function purge(array $contextData = [])
197
+    public function purge(array $contextData = [ ])
198 198
     {
199 199
         $loader = $this->getLoader();
200 200
         $filter = $this->getFilter();
Please login to merge, or discard this patch.