Completed
Push — develop ( 39c196...b11cac )
by Carsten
26:33
created
module/Core/src/Core/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->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/Core/Listener/AjaxRenderListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
             }
78 78
             $resolver = $e->getApplication()->getServiceManager()->get('ViewResolver');
79 79
 
80
-            $template = $viewModel->getTemplate() . '.ajax';
80
+            $template = $viewModel->getTemplate().'.ajax';
81 81
             if ($resolver->resolve($template)) {
82 82
                 $viewModel->setTemplate($template);
83 83
             } else {
Please login to merge, or discard this patch.
module/Core/src/Core/Listener/StringListener.php 1 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/Core/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/Core/Controller/Plugin/Mail.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -69,18 +69,18 @@  discard block
 block discarded – undo
69 69
         $replyTo = $this->stringFromMailHeader($this->getReplyTo());
70 70
         
71 71
         return str_pad($template, 30)
72
-                . 'to: ' . str_pad($to, 50)
73
-                . 'cc: ' . str_pad($cc, 50)
74
-                . 'bcc: ' . str_pad($bcc, 50)
75
-                . 'from: ' . str_pad($from, 50)
76
-                . 'replyTo: ' . str_pad($replyTo, 50)
72
+                . 'to: '.str_pad($to, 50)
73
+                . 'cc: '.str_pad($cc, 50)
74
+                . 'bcc: '.str_pad($bcc, 50)
75
+                . 'from: '.str_pad($from, 50)
76
+                . 'replyTo: '.str_pad($replyTo, 50)
77 77
                 //. str_pad(implode(',', ArrayUtils::iteratorToArray($this->getSender())),50)
78
-                . 'subject: ' . str_pad($this->getSubject(), 50);
78
+                . 'subject: '.str_pad($this->getSubject(), 50);
79 79
     }
80 80
     
81 81
     public function template($template)
82 82
     {
83
-        $controller =  get_class($this->controller);
83
+        $controller = get_class($this->controller);
84 84
         $services = $this->getController()->getServiceLocator();
85 85
         
86 86
         $event = new Event();
@@ -97,11 +97,11 @@  discard block
 block discarded – undo
97 97
         $controllerIdentifier = strtolower(substr($controller, 0, strpos($controller, '\\')));
98 98
         $viewResolver = $this->getController()->getServiceLocator()->get('ViewResolver');
99 99
                 
100
-        $templateHalf = 'mail/' . $template;
100
+        $templateHalf = 'mail/'.$template;
101 101
         $resource = $viewResolver->resolve($templateHalf);
102 102
         
103 103
         if (empty($resource)) {
104
-            $templateFull = $controllerIdentifier . '/mail/' . $template;
104
+            $templateFull = $controllerIdentifier.'/mail/'.$template;
105 105
             $resource = $viewResolver->resolve($templateFull);
106 106
         }
107 107
         
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                     unset($__vars[$key]);
129 129
                 }
130 130
             }
131
-            unset($__vars['content'],$__vars['controllerIdentifier'],$__vars['controller'],$__vars['resource'],$__vars['template'],$__vars['viewResolver']);
131
+            unset($__vars['content'], $__vars['controllerIdentifier'], $__vars['controller'], $__vars['resource'], $__vars['template'], $__vars['viewResolver']);
132 132
             $this->config = $__vars;
133 133
         }
134 134
     }
@@ -153,20 +153,20 @@  discard block
 block discarded – undo
153 153
         if (isset($this->config['from'])) {
154 154
             $from = $this->config['from'];
155 155
         } else {
156
-            $log->err('A from email address must be provided (Variable $from) in Template: ' . $template);
157
-              throw new \InvalidArgumentException('A from email address must be provided (Variable $from) in Template: ' . $template);
156
+            $log->err('A from email address must be provided (Variable $from) in Template: '.$template);
157
+              throw new \InvalidArgumentException('A from email address must be provided (Variable $from) in Template: '.$template);
158 158
         }
159 159
         if (isset($this->config['fromName'])) {
160 160
             $fromName = $this->config['fromName'];
161 161
         } else {
162
-            $log->err('A from name must be provided (Variable $fromName) in Template: ' . $template);
163
-              throw new \InvalidArgumentException('A from name must be provided (Variable $fromName) in Template: ' . $template);
162
+            $log->err('A from name must be provided (Variable $fromName) in Template: '.$template);
163
+              throw new \InvalidArgumentException('A from name must be provided (Variable $fromName) in Template: '.$template);
164 164
         }
165 165
         if (isset($this->config['subject'])) {
166 166
             $subject = $this->config['subject'];
167 167
         } else {
168
-            $log->err('A subject must be provided (Variable $subject) in Template: ' . $template);
169
-              throw new \InvalidArgumentException('A subject must be provided (Variable $subject) in Template: ' . $template);
168
+            $log->err('A subject must be provided (Variable $subject) in Template: '.$template);
169
+              throw new \InvalidArgumentException('A subject must be provided (Variable $subject) in Template: '.$template);
170 170
         }
171 171
         $this->setFrom($from, $fromName);
172 172
         $this->setSubject($subject);
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             $erg = true;
189 189
             $log->info($this);
190 190
         } catch (Exception $e) {
191
-            $log->err('Mail failure ' . $e->getMessage());
191
+            $log->err('Mail failure '.$e->getMessage());
192 192
             //$this->getController()->getServiceLocator()->get('Core/Log')->warn('Mail failure ' . $e->getMessage());
193 193
         }
194 194
         //}
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/ContentCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
                       $response = new ViewModel(array('target' => $target));
55 55
                       $response->setTemplate($template);
56 56
             }
57
-                    $viewModel->addChild($response, $this->_captureTo . $i);
57
+                    $viewModel->addChild($response, $this->_captureTo.$i);
58 58
         }
59 59
                 
60 60
         return $viewModel;
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/ContentController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public function indexAction()
29 29
     {
30 30
         $view = $this->params('view');
31
-        $view = 'content/' . $view;
31
+        $view = 'content/'.$view;
32 32
 
33 33
         $viewModel = new ViewModel();
34 34
         $viewModel->setTemplate($view);
Please login to merge, or discard this patch.
module/Core/src/Core/Factory/Form/View/Helper/FormEditorLightFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -42,16 +42,16 @@
 block discarded – undo
42 42
         $lang = $event->getRouteMatch()->getParam('lang');
43 43
 
44 44
         $helper = new FormEditorLight();
45
-        if(isset($config['view_helper_config']['form_editor']['light']) && is_array($config['view_helper_config']['form_editor']['light'])){
45
+        if (isset($config['view_helper_config']['form_editor']['light']) && is_array($config['view_helper_config']['form_editor']['light'])) {
46 46
               $helper->setOptions($config['view_helper_config']['form_editor']['light']);
47 47
         }
48 48
 
49
-        $helper->setOption('theme' ,  'modern');
50
-        $helper->setOption('selector' ,  'div.tinymce_light');
49
+        $helper->setOption('theme', 'modern');
50
+        $helper->setOption('selector', 'div.tinymce_light');
51 51
 
52
-        if (in_array($lang,['de','fr','it','es','hi','ar','ru','zh','tr'])) {
52
+        if (in_array($lang, ['de', 'fr', 'it', 'es', 'hi', 'ar', 'ru', 'zh', 'tr'])) {
53 53
             $helper->setOption('language', $lang);
54
-            $helper->setOption('language_url', $basepath('/js/tinymce-lang/') . $lang .'.js');
54
+            $helper->setOption('language_url', $basepath('/js/tinymce-lang/').$lang.'.js');
55 55
         }
56 56
         return $helper;
57 57
     }
Please login to merge, or discard this patch.
module/Core/src/Core/Factory/Paginator/RepositoryAbstractFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,10 +93,10 @@
 block discarded – undo
93 93
         $queryBuilder->find($this->getEntityClassName($requestedName));
94 94
 
95 95
         $filterManager = $services->get('FilterManager');
96
-        $filterName    = 'PaginationQuery/' . $requestedName;
96
+        $filterName    = 'PaginationQuery/'.$requestedName;
97 97
 
98 98
         if ($filterManager->has($filterName)) {
99
-            $filter       = $filterManager->get('PaginationQuery/' . $requestedName);
99
+            $filter       = $filterManager->get('PaginationQuery/'.$requestedName);
100 100
             $queryBuilder = $filter->filter($this->options, $queryBuilder);
101 101
         }
102 102
 
Please login to merge, or discard this patch.