@@ -33,7 +33,7 @@ |
||
| 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 | } |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | public function init(ModuleManagerInterface $manager) |
| 86 | 86 | { |
| 87 | 87 | if (!$manager instanceof ModuleManager) { |
| 88 | - $errMsg =sprintf('Module manager not implement %s', ModuleManager::class); |
|
| 88 | + $errMsg = sprintf('Module manager not implement %s', ModuleManager::class); |
|
| 89 | 89 | throw new Exception\InvalidArgumentException($errMsg); |
| 90 | 90 | } |
| 91 | 91 | |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | public function onBootstrap(EventInterface $e) |
| 139 | 139 | { |
| 140 | 140 | if (!$e instanceof MvcEvent) { |
| 141 | - $errMsg =sprintf('Event not implement %s', MvcEvent::class); |
|
| 141 | + $errMsg = sprintf('Event not implement %s', MvcEvent::class); |
|
| 142 | 142 | throw new Exception\InvalidArgumentException($errMsg); |
| 143 | 143 | } |
| 144 | 144 | |
@@ -114,7 +114,7 @@ discard block |
||
| 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 |
||
| 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, |
@@ -41,7 +41,7 @@ |
||
| 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 | |
@@ -41,7 +41,7 @@ |
||
| 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 | |
@@ -60,9 +60,9 @@ discard block |
||
| 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 |
||
| 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 | /** |
@@ -45,6 +45,6 @@ |
||
| 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 | } |
@@ -32,7 +32,7 @@ |
||
| 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 | } |
@@ -32,7 +32,7 @@ |
||
| 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 | } |