Completed
Push — develop ( a73e2c...030f10 )
by Carsten
28:43 queued 13:31
created
module/Core/src/Controller/Plugin/PaginationBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         }
79 79
 
80 80
         if (!is_array($stack)) {
81
-            throw new \InvalidArgumentException('Expected argument to be of type array, but received ' . gettype($stack));
81
+            throw new \InvalidArgumentException('Expected argument to be of type array, but received '.gettype($stack));
82 82
         }
83 83
 
84 84
         $stack = array_intersect_key($stack, ['params' => true, 'form' => true, 'paginator' => true]);
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      *
148 148
      * @return self
149 149
      */
150
-    public function params($namespace, $defaults = [ 'page' => 1 ])
150
+    public function params($namespace, $defaults = ['page' => 1])
151 151
     {
152 152
         $this->stack['params'] = [$namespace, $defaults];
153 153
         return $this;
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
                         $queryArray[$match['name']][$v] = 1;
243 243
                     }
244 244
                 } else {
245
-                    $queryArray[ $match[ 'name' ] ] = $value;
245
+                    $queryArray[$match['name']] = $value;
246 246
                 }
247 247
                 unset($queryArray[$key]);
248 248
             }
Please login to merge, or discard this patch.
module/Core/src/Controller/Plugin/Notification.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     const NAMESPACE_INFO = 'info';
22 22
     const NAMESPACE_WARNING = 'warning';
23 23
     const NAMESPACE_DANGER  = 'danger';
24
-    const NAMESPACE_SUCCESS  = 'success';
24
+    const NAMESPACE_SUCCESS = 'success';
25 25
 
26 26
     protected $namespace2priority = array(
27 27
         self::NAMESPACE_INFO => NotificationEntity::INFO,
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function setListener($listener)
61 61
     {
62
-        $listener->getSharedManager()->attach('*', NotificationEvent::EVENT_NOTIFICATION_HTML, array($this,'createOutput'), 1);
62
+        $listener->getSharedManager()->attach('*', NotificationEvent::EVENT_NOTIFICATION_HTML, array($this, 'createOutput'), 1);
63 63
         $this->notificationListener = $listener;
64 64
     }
65 65
     
Please login to merge, or discard this patch.
module/Core/src/Controller/Plugin/EntitySnapshot.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
                 $target->__invoke($data);
150 150
                 $className = get_class($this->entity);
151 151
                 // @TODO, have to be abstract
152
-                $snapShotMetaClassName = '\\' . $className . 'SnapshotMeta';
152
+                $snapShotMetaClassName = '\\'.$className.'SnapshotMeta';
153 153
                 $meta = new $snapShotMetaClassName;
154 154
                 $meta->setEntity($target);
155 155
                 $meta->setSourceId($this->entity->id);
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
             if (empty($dataHead) || empty($targetClass)) {
178 178
                 return null;
179 179
             }
180
-            $repositorySnapshotMeta = $this->getRepositories()->getRepository($targetClass . "Meta");
180
+            $repositorySnapshotMeta = $this->getRepositories()->getRepository($targetClass."Meta");
181 181
             $snapshot = $repositorySnapshotMeta->findSnapshot($this->entity);
182 182
             // an snapshot has to be so simple that there is no need for a special hydrator
183 183
             $hydrator = new EntityHydrator();
@@ -247,8 +247,8 @@  discard block
 block discarded – undo
247 247
             // the snapshotgenerator is a service defined by the name of the entity
248 248
             // this is the highest means, all subsequent means just add what is not set
249 249
             $className = get_class($this->entity);
250
-            if ($serviceLocator->has('snapshotgenerator' . $className)) {
251
-                $generator = $this->serviceLocator->get('snapshotgenerator' . $className);
250
+            if ($serviceLocator->has('snapshotgenerator'.$className)) {
251
+                $generator = $this->serviceLocator->get('snapshotgenerator'.$className);
252 252
                 if (is_array($generator)) {
253 253
                     $this->options = ArrayUtils::merge($generator, $this->options);
254 254
                     $generator = null;
@@ -348,13 +348,13 @@  discard block
 block discarded – undo
348 348
                         }
349 349
                     } else {
350 350
                         if ($array1[$key] != $array2[$key]) {
351
-                            $result[$key] = array( $array1[$key], $array2[$key]);
351
+                            $result[$key] = array($array1[$key], $array2[$key]);
352 352
                         }
353 353
                     }
354 354
                     if (!empty($subResult)) {
355 355
                         foreach ($subResult as $subKey => $subValue) {
356 356
                             if (!empty($subKey) && is_string($subKey)) {
357
-                                $result[$key . '.' . $subKey] = $subValue;
357
+                                $result[$key.'.'.$subKey] = $subValue;
358 358
                             }
359 359
                         }
360 360
                     }
Please login to merge, or discard this patch.
module/Core/src/Controller/Plugin/CreatePaginatorService.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
 
82 82
         $adapter->setParams($params);
83 83
         $paginator->setCurrentPageNumber($params->get('page', 1))
84
-                  ->setItemCountPerPage($params->get('count', 10));
84
+                    ->setItemCountPerPage($params->get('count', 10));
85 85
 
86 86
         return $paginator;
87 87
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,11 +61,11 @@
 block discarded – undo
61 61
         $paginatorManager = $this->serviceManager->get('Core/PaginatorService');
62 62
         $paginator = $paginatorManager->get($paginatorName);
63 63
         if (!isset($paginator) || !$paginator instanceof ZendPaginator) {
64
-            throw new \RuntimeException('Could not create paginator ' . $paginatorName);
64
+            throw new \RuntimeException('Could not create paginator '.$paginatorName);
65 65
         }
66 66
         $adapter = $paginator->getAdapter();
67 67
         if (!isset($adapter) || !$adapter instanceof AdapterInterface) {
68
-            throw new \RuntimeException('Paginator ' . $paginatorName . ' has no Adapter');
68
+            throw new \RuntimeException('Paginator '.$paginatorName.' has no Adapter');
69 69
         }
70 70
 
71 71
         $params     = $usePostParams
Please login to merge, or discard this patch.
module/Core/src/Controller/Plugin/ContentCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
                 $response = new ViewModel(array('target' => $target));
87 87
                 $response->setTemplate($template);
88 88
             }
89
-            $viewModel->addChild($response, $this->_captureTo . $i);
89
+            $viewModel->addChild($response, $this->_captureTo.$i);
90 90
         }
91 91
                 
92 92
         return $viewModel;
Please login to merge, or discard this patch.
module/Core/src/Controller/Plugin/CreatePaginator.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,8 +121,8 @@
 block discarded – undo
121 121
             $paginator = $paginators->get($paginatorName, $params);
122 122
         }
123 123
         $paginator->setCurrentPageNumber(isset($params['page']) ? $params['page'] : 1)
124
-                  ->setItemCountPerPage(isset($params['count']) ? $params['count'] : 10)
125
-                  ->setPageRange(isset($params['range']) ? $params['range'] : 5);
124
+                    ->setItemCountPerPage(isset($params['count']) ? $params['count'] : 10)
125
+                    ->setPageRange(isset($params['range']) ? $params['range'] : 5);
126 126
 
127 127
         return $paginator;
128 128
     }
Please login to merge, or discard this patch.
module/Core/src/Controller/Plugin/Service/NotificationFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $translator = $container->get('translator');
39 39
         
40 40
         $notificationListener = $container->get('Core/Listener/Notification');
41
-        $notification   = new Notification($flashMessenger);
41
+        $notification = new Notification($flashMessenger);
42 42
         $notification->setListener($notificationListener);
43 43
         $notification->setTranslator($translator);
44 44
         
Please login to merge, or discard this patch.
module/Core/src/Paginator/PaginatorServiceFactory.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
  */
26 26
 class PaginatorServiceFactory implements FactoryInterface
27 27
 {
28
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
29
-	{
30
-		$configArray = $container->get('Config');
31
-		$configArray = isset($configArray['paginator_manager']) ? $configArray['paginator_manager'] : array();
32
-		$config      = new PaginatorServiceConfig($configArray);
33
-		$service   = new PaginatorService($container,$config->toArray());
28
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
29
+    {
30
+        $configArray = $container->get('Config');
31
+        $configArray = isset($configArray['paginator_manager']) ? $configArray['paginator_manager'] : array();
32
+        $config      = new PaginatorServiceConfig($configArray);
33
+        $service   = new PaginatorService($container,$config->toArray());
34 34
 		
35
-		return $service;
36
-	}
35
+        return $service;
36
+    }
37 37
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@
 block discarded – undo
25 25
  */
26 26
 class PaginatorServiceFactory implements FactoryInterface
27 27
 {
28
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
28
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
29 29
 	{
30 30
 		$configArray = $container->get('Config');
31 31
 		$configArray = isset($configArray['paginator_manager']) ? $configArray['paginator_manager'] : array();
32 32
 		$config      = new PaginatorServiceConfig($configArray);
33
-		$service   = new PaginatorService($container,$config->toArray());
33
+		$service = new PaginatorService($container, $config->toArray());
34 34
 		
35 35
 		return $service;
36 36
 	}
Please login to merge, or discard this patch.
module/Core/src/Service/SnapshotGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
         }
90 90
 
91 91
         if (!$target) {
92
-            $target = get_class($source) . 'Snapshot';
92
+            $target = get_class($source).'Snapshot';
93 93
             $target = new $target($source);
94 94
         }
95 95
 
Please login to merge, or discard this patch.