Completed
Push — dev ( 64bfb0...f56b7a )
by Андрей
11:34
created
src/Options/ModuleOptions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @var array
44 44
      */
45
-    protected $defaultFixtureEventListeners = [];
45
+    protected $defaultFixtureEventListeners = [ ];
46 46
 
47 47
     /**
48 48
      * Возвращает конфиг фикстур
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      *
62 62
      * @return $this
63 63
      */
64
-    public function setFixturesLoaders(array $fixturesLoaders = [])
64
+    public function setFixturesLoaders(array $fixturesLoaders = [ ])
65 65
     {
66 66
         $this->fixturesLoaders = $fixturesLoaders;
67 67
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      *
86 86
      * @return $this
87 87
      */
88
-    public function setFilters(array $filters = [])
88
+    public function setFilters(array $filters = [ ])
89 89
     {
90 90
         $this->filters = $filters;
91 91
 
Please login to merge, or discard this patch.
src/Listener/ConnectionRegistryEventSubscriberFactory.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/Listener/AbstractExecutorListener.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
     {
25 25
         $sharedEventManager = $events->getSharedManager();
26 26
 
27
-        $sharedEventManager->attach(PreExecuteEventSubscriberInterface::class, FixtureExecutorEvent::START_EXECUTE_FIXTURES_EVENT, [$this, 'startExecutorHandler']);
28
-        $sharedEventManager->attach(PostExecuteEventSubscriberInterface::class, FixtureExecutorEvent::END_EXECUTE_FIXTURES_EVENT, [$this, 'endExecutorHandler']);
29
-        $sharedEventManager->attach(RunFixtureEventSubscriberInterface::class, FixtureEvent::EXECUTE_FIXTURE_EVENT, [$this, 'executeFixtureHandler']);
27
+        $sharedEventManager->attach(PreExecuteEventSubscriberInterface::class, FixtureExecutorEvent::START_EXECUTE_FIXTURES_EVENT, [ $this, 'startExecutorHandler' ]);
28
+        $sharedEventManager->attach(PostExecuteEventSubscriberInterface::class, FixtureExecutorEvent::END_EXECUTE_FIXTURES_EVENT, [ $this, 'endExecutorHandler' ]);
29
+        $sharedEventManager->attach(RunFixtureEventSubscriberInterface::class, FixtureEvent::EXECUTE_FIXTURE_EVENT, [ $this, 'executeFixtureHandler' ]);
30 30
     }
31 31
 
32 32
     /**
Please login to merge, or discard this patch.
src/Listener/ManagerRegistryEventSubscriberFactory.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/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 GlobLoader($directory);
38 38
     }
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 DirectoryLoader($directory);
38 38
     }
Please login to merge, or discard this patch.
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.