Completed
Pull Request — develop (#349)
by ANTHONIUS
06:14
created
module/Core/src/Core/EventManager/ListenerAggregateTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
             $method = $spec[1];
91 91
             $priority = isset($spec[2]) ? $spec[2] : 0;
92 92
 
93
-            $this->listeners[] = $events->attach($event, [ $this, $method ], $priority);
93
+            $this->listeners[] = $events->attach($event, [$this, $method], $priority);
94 94
         }
95 95
 
96 96
         return $this;
Please login to merge, or discard this patch.
module/Auth/src/Auth/Controller/UsersController.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,9 +84,9 @@
 block discarded – undo
84 84
         $imageStrategy = $infoContainer->getForm('info.image')
85 85
             ->getHydrator()
86 86
             ->getStrategy('image');
87
-		$fileEntity = $imageStrategy->getFileEntity();
88
-		$fileEntity->setUser($user);
89
-		$imageStrategy->setFileEntity($fileEntity);
87
+        $fileEntity = $imageStrategy->getFileEntity();
88
+        $fileEntity->setUser($user);
89
+        $imageStrategy->setFileEntity($fileEntity);
90 90
         
91 91
         if ($this->request->isPost()) {
92 92
             $formName = $params->fromQuery('form');
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     /**
41 41
      * List users
42 42
      *
43
-     * @return \Zend\Http\Response|ViewModel
43
+     * @return \Core\Controller\Plugin\CreatePaginator
44 44
      */
45 45
     public function listAction()
46 46
     {
Please login to merge, or discard this patch.
module/Core/src/Core/Listener/LanguageRouteListener.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -215,8 +215,8 @@
 block discarded – undo
215 215
     }
216 216
 
217 217
     /**
218
-     * @param $response
219
-     * @param $uri
218
+     * @param \Zend\Stdlib\ResponseInterface $response
219
+     * @param string $uri
220 220
      *
221 221
      * @return mixed
222 222
      */
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,10 +97,10 @@  discard block
 block discarded – undo
97 97
         }
98 98
         
99 99
         $router = $e->getRouter();
100
-        $basePath=$router->getBaseUrl();
100
+        $basePath = $router->getBaseUrl();
101 101
         $match = [];
102 102
         
103
-        if (preg_match('~^' . $basePath . '/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) {
103
+        if (preg_match('~^'.$basePath.'/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) {
104 104
             /* It seems we have already a language in the URI
105 105
              * Now there are two possibilities:
106 106
              *
@@ -182,8 +182,8 @@  discard block
 block discarded – undo
182 182
         setlocale(
183 183
             LC_ALL,
184 184
             array(
185
-            $locale . ".utf8",
186
-            $locale . ".iso88591",
185
+            $locale.".utf8",
186
+            $locale.".iso88591",
187 187
             $locale,
188 188
             substr($locale, 0, 2),
189 189
             'de_DE.utf8',
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/Service/NotificationFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $notificationListener = $serviceLocator->getServiceLocator()->get('Core/Listener/Notification');
25 25
         $translator = $services->get('translator');
26 26
 
27
-        $notification   = new Notification($flashMessenger);
27
+        $notification = new Notification($flashMessenger);
28 28
         $notification->setListener($notificationListener);
29 29
         $notification->setTranslator($translator);
30 30
 
Please login to merge, or discard this patch.
module/Applications/src/Applications/Listener/EventApplicationCreated.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                         [
77 77
                             'job' => $job,
78 78
                             'user' => $employee->getUser(),
79
-                            'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null,
79
+                            'bcc' => $adminSettings->getMailBCC() ? [$admin] : null,
80 80
                         ]
81 81
                     );
82 82
                 }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                 [
95 95
                     'job'   => $this->application->getJob(),
96 96
                     'user'  => $recruiter,
97
-                    'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null,
97
+                    'bcc' => $adminSettings->getMailBCC() ? [$admin] : null,
98 98
                 ]
99 99
             );
100 100
         }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                     [
112 112
                         'application' => $this->application,
113 113
                         'body'        => $ackBody,
114
-                        'bcc'         => $adminSettings->getMailBCC() ? [ $admin ] : null,
114
+                        'bcc'         => $adminSettings->getMailBCC() ? [$admin] : null,
115 115
                     ]
116 116
                 );
117 117
 
Please login to merge, or discard this patch.
Settings/src/Settings/Form/DisableElementsCapableFormSettingsFieldset.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
     
110 110
     /**
111 111
      * @param ServiceLocatorInterface $formManager
112
-     * @return AbstractSettingsForm
112
+     * @return DisableElementsCapableFormSettingsFieldset
113 113
      */
114 114
     public static function factory(ServiceLocatorInterface $formManager)
115 115
     {
Please login to merge, or discard this patch.
module/Core/src/Core/Mail/MailServiceFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
         $config = new MailServiceConfig($configArray);
41 41
 
42
-        $service   = new MailService($serviceLocator, $config);
42
+        $service = new MailService($serviceLocator, $config);
43 43
 
44 44
         return $service;
45 45
 
Please login to merge, or discard this patch.
module/Core/src/Core/Mail/MailService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $self = $this;
88 88
 
89 89
         $this->addInitializer(
90
-            function ($instance) use ($self) {
90
+            function($instance) use ($self) {
91 91
                 if ($instance instanceof TranslatorAwareInterface) {
92 92
                     $translator = $self->getServiceLocator()->get('translator');
93 93
                     $instance->setTranslator($translator);
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             false
101 101
         );
102 102
         $this->addInitializer(
103
-            function ($instance) {
103
+            function($instance) {
104 104
                 if (method_exists($instance, 'setServiceLocator')) {
105 105
                     $instance->setServiceLocator($this);
106 106
                 }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             false
109 109
         );
110 110
         $this->addInitializer(
111
-            function ($instance) {
111
+            function($instance) {
112 112
                 if (method_exists($instance, 'init')) {
113 113
                     $instance->init();
114 114
                 }
@@ -199,11 +199,11 @@  discard block
 block discarded – undo
199 199
         if ($this->overrideRecipient instanceof AddressList) {
200 200
             $originalRecipient = $headers->get('to')->toString();
201 201
             if ($headers->has('cc')) {
202
-                $originalRecipient .= '; ' . $headers->get('cc')->toString();
202
+                $originalRecipient .= '; '.$headers->get('cc')->toString();
203 203
                 $headers->removeHeader('cc');
204 204
             }
205 205
             if ($headers->has('bcc')) {
206
-                $originalRecipient .= '; ' . $headers->get('bcc')->toString();
206
+                $originalRecipient .= '; '.$headers->get('bcc')->toString();
207 207
                 $headers->removeHeader('bcc');
208 208
             }
209 209
             $headers->addHeaderLine('X-Original-Recipients', $originalRecipient);
Please login to merge, or discard this patch.
module/Core/src/Core/Mail/HTMLTemplateMessage.php 3 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
         }
230 230
 
231 231
         /* @var \Zend\Mvc\View\Http\ViewManager $viewManager */
232
-        $viewManager  = $this->serviceManager->get('viewManager');
232
+        $viewManager = $this->serviceManager->get('viewManager');
233 233
         $resolver = $this->serviceManager->get('viewResolver');
234 234
 
235 235
         /* @var \Zend\Mvc\MvcEvent $event */
@@ -237,13 +237,13 @@  discard block
 block discarded – undo
237 237
         $lang = $event->getRouteMatch()->getParam('lang');
238 238
 
239 239
 
240
-        if ($resolver->resolve($this->getTemplate() . '.' . $lang)) {
241
-            $viewModel->setTemplate($this->getTemplate() . '.' . $lang);
242
-        }else{
240
+        if ($resolver->resolve($this->getTemplate().'.'.$lang)) {
241
+            $viewModel->setTemplate($this->getTemplate().'.'.$lang);
242
+        } else {
243 243
             $viewModel->setTemplate($this->getTemplate());
244 244
         }
245 245
 
246
-        $view         = $viewManager->getView();
246
+        $view = $viewManager->getView();
247 247
 
248 248
         $viewModel->setVariables($this->getVariables());
249 249
         $view->setResponse($response);
Please login to merge, or discard this patch.
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      *
125 125
      * @param  string $name
126 126
      * @param  mixed $value
127
-     * @return ViewModel
127
+     * @return HTMLTemplateMessage
128 128
      */
129 129
     public function setVariable($name, $value)
130 130
     {
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      *
186 186
      * Resets the internal variable container to an empty container.
187 187
      *
188
-     * @return ViewModel
188
+     * @return HTMLTemplateMessage
189 189
      */
190 190
     public function clearVariables()
191 191
     {
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 
196 196
     /**
197 197
      *
198
-     * @param $template
198
+     * @param string $template
199 199
      *
200 200
      * @return self
201 201
      */
@@ -205,6 +205,9 @@  discard block
 block discarded – undo
205 205
         return $this;
206 206
     }
207 207
 
208
+    /**
209
+     * @return string
210
+     */
208 211
     public function getTemplate()
209 212
     {
210 213
         return $this->template;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@
 block discarded – undo
235 235
 
236 236
         if ($resolver->resolve($this->getTemplate() . '.' . $lang)) {
237 237
             $viewModel->setTemplate($this->getTemplate() . '.' . $lang);
238
-        }else{
238
+        } else{
239 239
             $viewModel->setTemplate($this->getTemplate());
240 240
         }
241 241
 
Please login to merge, or discard this patch.