Completed
Push — master ( 811327...4aef6e )
by Carsten
14:04 queued 19s
created
module/Core/src/Factory/Form/Tree/SelectFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
         $strategy = new TreeSelectStrategy();
97 97
         $strategy->setTreeRoot($root);
98
-        $strategy->setAllowSelectMultipleItems(function () use ($select) {
98
+        $strategy->setAllowSelectMultipleItems(function() use ($select) {
99 99
             return $select->isMultiple();
100 100
         });
101 101
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      *
145 145
      * @return array
146 146
      */
147
-    protected function createValueOptions(NodeInterface $node, $allowSelectNodes = false, $isRoot=true)
147
+    protected function createValueOptions(NodeInterface $node, $allowSelectNodes = false, $isRoot = true)
148 148
     {
149 149
         $key    = $isRoot ? $node->getValue() : $node->getValueWithParents();
150 150
         $name   = $node->getName();
Please login to merge, or discard this patch.
module/Core/src/Factory/Form/View/Helper/FormEditorLightFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@
 block discarded – undo
57 57
         $helper->setOption('theme', 'modern');
58 58
         $helper->setOption('selector', 'div.tinymce_light');
59 59
     
60
-        if (in_array($lang, [ 'de', 'fr', 'it', 'es', 'hi', 'ar', 'ru', 'zh', 'tr' ])) {
60
+        if (in_array($lang, ['de', 'fr', 'it', 'es', 'hi', 'ar', 'ru', 'zh', 'tr'])) {
61 61
             $helper->setOption('language', $lang);
62
-            $helper->setOption('language_url', $basePath('modules/Core/js/tinymce-lang/') . $lang . '.js');
62
+            $helper->setOption('language_url', $basePath('modules/Core/js/tinymce-lang/').$lang.'.js');
63 63
         }
64 64
     
65 65
         return $helper;
Please login to merge, or discard this patch.
module/Core/src/Factory/Controller/LazyControllerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
                     try {
73 73
                         $constructorArgs[] = $container->get($serviceName);
74 74
                     } catch (\Exception $x) {
75
-                        echo __CLASS__ . " couldn't create an instance of {$p->getName()} to satisfy the constructor for $requestedName.";
75
+                        echo __CLASS__." couldn't create an instance of {$p->getName()} to satisfy the constructor for $requestedName.";
76 76
                         exit;
77 77
                     }
78 78
                 }
Please login to merge, or discard this patch.
module/Core/src/Factory/Controller/FileControllerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
26 26
         $repositories = $container->get('repositories');
27 27
         $coreFileEvents = $container->get('Core/File/Events');
28 28
 
29
-        return new FileController($repositories,$coreFileEvents);
29
+        return new FileController($repositories, $coreFileEvents);
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
module/Core/src/Factory/Paginator/RepositoryAbstractFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
76 76
         $queryBuilder->find($this->getEntityClassName($requestedName));
77 77
 
78 78
         $filterManager = $container->get('FilterManager');
79
-        $filterName    = 'PaginationQuery/' . $requestedName;
79
+        $filterName    = 'PaginationQuery/'.$requestedName;
80 80
 
81 81
         if ($filterManager->has($filterName)) {
82
-            $filter       = $filterManager->get('PaginationQuery/' . $requestedName);
82
+            $filter       = $filterManager->get('PaginationQuery/'.$requestedName);
83 83
             $queryBuilder = $filter->filter($options, $queryBuilder);
84 84
         }
85 85
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      * @param array|null            $options
99 99
      * @return bool
100 100
      */
101
-    public function canCreate(ContainerInterface $container, $requestedName, array $options=null)
101
+    public function canCreate(ContainerInterface $container, $requestedName, array $options = null)
102 102
     {
103 103
         $class = $this->getEntityClassName($requestedName);
104 104
 
Please login to merge, or discard this patch.
module/Core/src/Factory/Service/ImagineFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             case ImagineOptions::LIB_GD:
47 47
             case ImagineOptions::LIB_IMAGICK:
48 48
             case ImagineOptions::LIB_GMAGICK:
49
-                $imagineClass = '\Imagine\\' . $lib . '\Imagine';
49
+                $imagineClass = '\Imagine\\'.$lib.'\Imagine';
50 50
                 $imagine = new $imagineClass;
51 51
                 break;
52 52
         }
Please login to merge, or discard this patch.
module/Core/src/Factory/EventManager/EventManagerAbstractFactory.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -278,7 +278,7 @@
 block discarded – undo
278 278
             /* @var \Core\Listener\DeferredListenerAggregate $aggregate */
279 279
             $aggregate = $services->get('Core/Listener/DeferredListenerAggregate');
280 280
             $aggregate->setListeners($lazyListeners)
281
-                      ->attach($eventManager);
281
+                        ->attach($eventManager);
282 282
         }
283 283
     }
284 284
 
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         $defaults = [
183 183
             'service' => 'EventManager',
184 184
             'configure' => true,
185
-            'identifiers' => [ $name ],
185
+            'identifiers' => [$name],
186 186
             'event' => '\Laminas\EventManager\Event',
187 187
             'listeners' => [],
188 188
         ];
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
             }
298 298
 
299 299
             foreach ($options['attach'] as $spec) {
300
-                $callback = $spec['method'] ? [ $listener, $spec['method'] ] : $listener;
300
+                $callback = $spec['method'] ? [$listener, $spec['method']] : $listener;
301 301
                 $eventManager->attach($spec['event'], $callback, $spec['priority']);
302 302
             }
303 303
         }
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
 
367 367
         if (is_string($options)) {
368 368
             /* Only an event name is provided in config */
369
-            $normalized['attach'] = [ [ 'event' => $options, 'method' => null, 'priority' => 1 ] ];
369
+            $normalized['attach'] = [['event' => $options, 'method' => null, 'priority' => 1]];
370 370
             return $normalized;
371 371
         }
372 372
 
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
             } elseif (is_string($opt)) {
392 392
                 if (null === $event) {
393 393
                     /* first string found is assumed to be the event name */
394
-                    $event = [ $opt ];
394
+                    $event = [$opt];
395 395
                 } else {
396 396
                     /* second string found must be a method name. */
397 397
                     $method = $opt;
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
         }
407 407
 
408 408
         foreach ($event as &$eventSpec) {
409
-            $eventSpec = [ 'event' => $eventSpec, 'method' => $method, 'priority' => $priority ];
409
+            $eventSpec = ['event' => $eventSpec, 'method' => $method, 'priority' => $priority];
410 410
         }
411 411
 
412 412
         $normalized['attach'] = $event;
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
     protected function normalizeEventsSpec($options)
419 419
     {
420 420
         $listenerPriority = isset($options['priority']) ? $options['priority'] : 1;
421
-        $listenerMethod   = isset($options['method'])   ? $options['method']   : '__none__';
421
+        $listenerMethod   = isset($options['method']) ? $options['method'] : '__none__';
422 422
         $events = [];
423 423
 
424 424
         foreach ($options['events'] as $event => $spec) {
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
             } elseif (is_array($spec)) {
434 434
                 if (isset($spec['method'])) {
435 435
                     if (!is_array($spec['method'])) {
436
-                        $spec['method'] = [ $spec['method'] ];
436
+                        $spec['method'] = [$spec['method']];
437 437
                     }
438 438
 
439 439
                     foreach ($spec['method'] as $method => $methodPriority) {
Please login to merge, or discard this patch.
module/Core/src/Filter/File/Entity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
     public function getFileEntity()
94 94
     {
95
-        if (! $this->fileEntity instanceof FileInterface) {
95
+        if (!$this->fileEntity instanceof FileInterface) {
96 96
             throw new \RuntimeException('No file entity set or it does not implement \Core\Entity\FileInterface.');
97 97
         }
98 98
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
     public function filter($value)
103 103
     {
104
-        if (! is_array($value) || ! isset($value['tmp_name']) || ((isset($value['error']) && UPLOAD_ERR_NO_FILE == $value['error']))) {
104
+        if (!is_array($value) || !isset($value['tmp_name']) || ((isset($value['error']) && UPLOAD_ERR_NO_FILE == $value['error']))) {
105 105
             return null;
106 106
         }
107 107
 
Please login to merge, or discard this patch.
module/Core/src/Entity/FileInterface.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 
16 16
 /**
17 17
  *
18
-
19 18
  */
20 19
 interface FileInterface extends
21 20
     IdentifiableEntityInterface,
Please login to merge, or discard this patch.