Completed
Pull Request — develop (#501)
by ANTHONIUS
10:57
created
module/Core/src/View/Helper/Snippet.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $snippets = ArrayUtils::merge($this->fromConfig($name), $this->fromEvent($name, $values));
62 62
 
63
-        uasort($snippets, function ($a, $b) {
63
+        uasort($snippets, function($a, $b) {
64 64
             $prioA = is_array($a) && isset($a['priority']) ? $a['priority'] : 0;
65 65
             $prioB = is_array($b) && isset($b['priority']) ? $b['priority'] : 0;
66 66
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
     private function fromEvent($name, $values)
90 90
     {
91
-        $event  = $this->events->getEvent($name, $this, $values);
91
+        $event = $this->events->getEvent($name, $this, $values);
92 92
         $results = $this->events->triggerEvent($event);
93 93
 
94 94
         $snippets = [];
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             $content = $item['content'];
138 138
 
139 139
             foreach ($values as $key => $val) {
140
-                $content = str_replace('%' . $key . '%', $val, $content);
140
+                $content = str_replace('%'.$key.'%', $val, $content);
141 141
             }
142 142
 
143 143
             return $content;
Please login to merge, or discard this patch.
module/Core/src/View/Helper/Service/HeadScriptFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
             }
54 54
             
55 55
             if (is_string($specs)) {
56
-                $helper->appendScript('// if you are missing the script ' . $specs . ' look up your config and enclose it in an array');
56
+                $helper->appendScript('// if you are missing the script '.$specs.' look up your config and enclose it in an array');
57 57
                 continue;
58 58
             }
59 59
             
Please login to merge, or discard this patch.
module/Core/src/Listener/DeferredListenerAggregate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     public function __call($method, $args)
215 215
     {
216 216
         if (0 !== strpos($method, 'do')) {
217
-            throw new \BadMethodCallException('Unknown method "' . $method . '"');
217
+            throw new \BadMethodCallException('Unknown method "'.$method.'"');
218 218
         }
219 219
 
220 220
         $name = substr($method, 2);
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
         }
247 247
 
248 248
         if ($method && method_exists($listener, $method)) {
249
-            return call_user_func_array([ $listener, $method ], $args);
249
+            return call_user_func_array([$listener, $method], $args);
250 250
         }
251 251
 
252 252
         if (is_callable($listener)) {
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
         throw new \UnexpectedValueException(sprintf(
257 257
             'Deferred listener %s%s is not callable.',
258 258
             get_class($listener),
259
-            $method ? ' has no method "' . $method . '" and ' : ''
259
+            $method ? ' has no method "'.$method.'" and ' : ''
260 260
         ));
261 261
     }
262 262
     
Please login to merge, or discard this patch.
module/Core/src/Listener/EnforceJsonResponseListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
             
93 93
             $view = $e->getApplication()->getServiceManager()->get('ViewManager')->getView();
94 94
             $view->addRenderingStrategy(array($strategy, 'selectRenderer'), 10);
95
-            $view->addResponseStrategy(array($strategy,  'injectResponse'), 10);
95
+            $view->addResponseStrategy(array($strategy, 'injectResponse'), 10);
96 96
         }
97 97
     }
98 98
 }
Please login to merge, or discard this patch.
module/Core/src/Listener/StringListener.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 class StringListener implements ListenerAggregateInterface
10 10
 {
11
-      protected $listeners = array();
11
+        protected $listeners = array();
12 12
 
13 13
     /**
14 14
      * Attach to an event manager
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         if (!empty($capture)) {
52 52
             if ($viewModel->isAppend()) {
53 53
                 $oldResult = $viewModel->{$capture};
54
-                $viewModel->setVariable($capture, $oldResult . $result);
54
+                $viewModel->setVariable($capture, $oldResult.$result);
55 55
             } else {
56 56
                 $viewModel->setVariable($capture, $result);
57 57
             }
Please login to merge, or discard this patch.
module/Core/src/Listener/NotificationListener.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,12 +40,12 @@
 block discarded – undo
40 40
      */
41 41
     public function attachShared(SharedEventManagerInterface $events)
42 42
     {
43
-        $events->attach('*', NotificationEvent::EVENT_NOTIFICATION_ADD, array($this,'add'), 1);
44
-        $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this,'renderJSON'), -240);
45
-        $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this,'renderHTML'), -250);
43
+        $events->attach('*', NotificationEvent::EVENT_NOTIFICATION_ADD, array($this, 'add'), 1);
44
+        $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this, 'renderJSON'), -240);
45
+        $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this, 'renderHTML'), -250);
46 46
         // Sometimes the Dispatch-Event is not reached, for instance with a route-direct
47 47
         // but also for Events, that are happening after the Dispatch
48
-        $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_FINISH, array($this,'renderHTML'), -250);
48
+        $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_FINISH, array($this, 'renderHTML'), -250);
49 49
         return $this;
50 50
     }
51 51
 
Please login to merge, or discard this patch.
module/Core/src/Listener/ErrorHandlerListener.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      *
32 32
      * @param  EventManagerInterface $events
33 33
      * @param  integer $priority
34
-    */
34
+     */
35 35
     public function attach(EventManagerInterface $events, $priority = 1)
36 36
     {
37 37
         $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, array($this, 'handleError'), $priority);
Please login to merge, or discard this patch.
module/Core/src/Listener/NotificationAjaxHandler.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
                 $notifications = $event->getTarget()->getNotifications();
42 42
                 if (is_array($notifications) && !empty($notifications)) {
43 43
                     foreach ($notifications as $notification) {
44
-                        $headScript->appendScript('/* ' . $notification->getNotification() . ' */');
44
+                        $headScript->appendScript('/* '.$notification->getNotification().' */');
45 45
                     }
46 46
                 }
47 47
             }
Please login to merge, or discard this patch.
module/Core/src/Listener/XmlRenderListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,8 @@
 block discarded – undo
101 101
             }
102 102
             $resolver = $e->getApplication()->getServiceManager()->get('ViewResolver');
103 103
 
104
-            $templateDefault = $viewModel->getTemplate() . '.xml.phtml';
105
-            $templateChannel = $viewModel->getTemplate() . '.' . $channel . '.xml.phtml';
104
+            $templateDefault = $viewModel->getTemplate().'.xml.phtml';
105
+            $templateChannel = $viewModel->getTemplate().'.'.$channel.'.xml.phtml';
106 106
 
107 107
 
108 108
             if ($channel != 'default' && $resolver->resolve($templateChannel)) {
Please login to merge, or discard this patch.