Passed
Push — master ( 97bca0...c3d0da )
by Carsten
19:24 queued 12:32
created
module/Applications/src/Entity/Status.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@
 block discarded – undo
50 50
 
51 51
     public function __construct($status = self::INCOMING)
52 52
     {
53
-        $constant = 'self::' . strtoupper($status);
53
+        $constant = 'self::'.strtoupper($status);
54 54
         if (!defined($constant)) {
55
-            throw new \DomainException('Unknown status: ' . $status);
55
+            throw new \DomainException('Unknown status: '.$status);
56 56
         }
57
-        $this->name=constant($constant);
58
-        $this->order=$this->getOrder();
57
+        $this->name = constant($constant);
58
+        $this->order = $this->getOrder();
59 59
     }
60 60
 
61 61
     /**
Please login to merge, or discard this patch.
module/Applications/src/Entity/ApplicationInterface.php 1 patch
Indentation   -2 removed lines patch added patch discarded remove patch
@@ -241,7 +241,6 @@  discard block
 block discarded – undo
241 241
      * Gets all comments for the application.
242 242
      *
243 243
      * @return ArrayCollection;
244
-
245 244
      */
246 245
     public function getComments();
247 246
     
@@ -272,7 +271,6 @@  discard block
 block discarded – undo
272 271
      * Gets all attributes for an application.
273 272
      *
274 273
      * @return ArrayCollection;
275
-
276 274
      */
277 275
     public function getAttributes();
278 276
 
Please login to merge, or discard this patch.
module/Applications/src/Mail/Confirmation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -174,11 +174,11 @@
 block discarded – undo
174 174
             return '';
175 175
         }
176 176
 
177
-        $token = $user instanceof AnonymousUser ? '?token=' . $user->getToken() : '';
177
+        $token = $user instanceof AnonymousUser ? '?token='.$user->getToken() : '';
178 178
         $href  = $router->assemble(
179 179
                         ['id' => $this->application->getId()],
180 180
                         ['name'=>'lang/applications/detail', 'force_canonical'=>true]
181
-        ) . $token;
181
+        ).$token;
182 182
 
183 183
         return $href;
184 184
     }
Please login to merge, or discard this patch.
module/Applications/src/Mail/NewApplication.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
             'link'  => $this->router->assemble(
101 101
                             ['id' => $this->application->getId()],
102 102
                             ['name'=>'lang/applications/detail', 'force_canonical'=>true]
103
-                       ),
103
+                        ),
104 104
         ];
105 105
 
106 106
         $this->setTo($this->user->getInfo()->getEmail(), $this->user->getInfo()->getDisplayName(false));
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
      */
122 122
     public function setUser($user)
123 123
     {
124
-        $this->user=$user;
124
+        $this->user = $user;
125 125
         return $this;
126 126
     }
127 127
 }
Please login to merge, or discard this patch.
module/Applications/src/Mail/Forward.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
      *
137 137
      * @return Forward
138 138
      */
139
-    public static function factory(ContainerInterface $container, $requestedName, array $options=[])
139
+    public static function factory(ContainerInterface $container, $requestedName, array $options = [])
140 140
     {
141 141
         $ob = new self($options);
142 142
         $ob->setContainer($container);
Please login to merge, or discard this patch.
module/Applications/src/Controller/CommentController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
                         $application->getStatus(),
86 86
                         sprintf(
87 87
                                     /* @translate */ 'Application was rated by %s',
88
-                                     $this->auth()->getUser()->getInfo()->getDisplayName()
88
+                                        $this->auth()->getUser()->getInfo()->getDisplayName()
89 89
                     )
90 90
                         );
91 91
                 }
Please login to merge, or discard this patch.
module/Applications/src/Controller/ManageController.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             $application->changeStatus(
164 164
                 $application->getStatus(),
165 165
                 sprintf(/*@translate*/ 'Application was read by %s',
166
-                                       $this->auth()->getUser()->getInfo()->getDisplayName()
166
+                                        $this->auth()->getUser()->getInfo()->getDisplayName()
167 167
                 )
168 168
             );
169 169
         }
@@ -192,8 +192,8 @@  discard block
 block discarded – undo
192 192
                         $viewModel->setVariables(
193 193
                             /*array(
194 194
                             'application' => */$this->builders
195
-                                              ->get('JsonApplication')
196
-                                              ->unbuild($application)
195
+                                                ->get('JsonApplication')
196
+                                                ->unbuild($application)
197 197
                         );
198 198
                         $viewModel->setVariable('isUnread', $applicationIsUnread);
199 199
                         $return = $viewModel;
@@ -358,12 +358,12 @@  discard block
 block discarded – undo
358 358
         /* @var ApplicationEvent $event */
359 359
         $event = $events->getEvent(
360 360
             ApplicationEvent::EVENT_APPLICATION_STATUS_CHANGE,
361
-                                   $this,
362
-                                   [
363
-                                       'application' => $application,
364
-                                       'status' => $status,
365
-                                       'user' => $this->auth()->getUser(),
366
-                                   ]
361
+                                    $this,
362
+                                    [
363
+                                        'application' => $application,
364
+                                        'status' => $status,
365
+                                        'user' => $this->auth()->getUser(),
366
+                                    ]
367 367
         );
368 368
         
369 369
         $event->setIsPostRequest($request->isPost());
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
         $emailAddress = $this->params()->fromQuery('email');
413 413
         /* @var \Applications\Entity\Application $application */
414 414
         $application  = $this->repositories->get('Applications/Application')
415
-                                 ->find($this->params('id'));
415
+                                    ->find($this->params('id'));
416 416
         
417 417
         $this->acl($application, 'forward');
418 418
         
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $this->appOptions       = $appOptions;
71 71
         $this->appEvents        = $appEvents;
72 72
         $this->translator       = $translator;
73
-        $this->container         = $container;
73
+        $this->container = $container;
74 74
     }
75 75
     
76 76
     /**
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
 
172 172
         
173
-        $format=$this->params()->fromQuery('format');
173
+        $format = $this->params()->fromQuery('format');
174 174
 
175 175
         if ($application->isDraft()) {
176 176
             $list = false;
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
                    && ($network = $this->params()->fromQuery('network'))
299 299
                    && ($data    = $this->params()->fromPost('data'))
300 300
         ) {
301
-            $profileClass = '\\Auth\\Entity\\SocialProfiles\\' . $network;
301
+            $profileClass = '\\Auth\\Entity\\SocialProfiles\\'.$network;
302 302
             $profile      = new $profileClass();
303 303
             $profile->setData(\Zend\Json\Json::decode($data, \Zend\Json\Json::TYPE_ARRAY));
304 304
         } else {
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
         
417 417
         $this->acl($application, 'forward');
418 418
         
419
-        $translator   = $this->translator;
419
+        $translator = $this->translator;
420 420
          
421 421
         if (!$emailAddress) {
422 422
             throw new \InvalidArgumentException('An email address must be supplied.');
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
     public function deleteAction()
457 457
     {
458 458
         $id          = $this->params('id');
459
-        $repositories= $this->repositories;
459
+        $repositories = $this->repositories;
460 460
         $repository  = $repositories->get('Applications/Application');
461 461
         $application = $repository->find($id);
462 462
         
@@ -466,8 +466,8 @@  discard block
 block discarded – undo
466 466
 
467 467
         $this->acl($application, 'delete');
468 468
 
469
-        $events   = $this->appEvents;
470
-        $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, [ 'application' => $application ]);
469
+        $events = $this->appEvents;
470
+        $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, ['application' => $application]);
471 471
         
472 472
         $repositories->remove($application);
473 473
         
Please login to merge, or discard this patch.
module/Applications/src/Controller/MultimanageController.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,8 +137,8 @@
 block discarded – undo
137 137
             $application->changeStatus(
138 138
                 Status::REJECTED,
139 139
                 sprintf(
140
-                           /*@translate */ 'Mail was sent to %s',
141
-                                           $application->contact->email
140
+                            /*@translate */ 'Mail was sent to %s',
141
+                                            $application->contact->email
142 142
                 )
143 143
             );
144 144
             $repositoryService->store($application);
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $hidden = '';
71 71
         $displayNames = array();
72 72
         foreach ($elements as $element) {
73
-            $hidden .= '<input type="hidden" name="elements[]" value="' . $element . '">';
73
+            $hidden .= '<input type="hidden" name="elements[]" value="'.$element.'">';
74 74
             $application = $repository->find($element);
75 75
             $isAllowed = $this->acl()->test($application, 'change');
76 76
             if ($isAllowed) {
@@ -89,12 +89,12 @@  discard block
 block discarded – undo
89 89
             array(
90 90
             'ok' => true,
91 91
             'header' => $translator->translate('reject the applicants'),
92
-            'content' => '<form action="' . $actionUrl . '">' .
93
-            $hidden .
92
+            'content' => '<form action="'.$actionUrl.'">'.
93
+            $hidden.
94 94
             '<input class=" form-control " name="mail-subject" value="'
95
-                . $mailSubject . '"><br /><br />' .
95
+                . $mailSubject.'"><br /><br />'.
96 96
             '<textarea class=" form-control " id="mail-content" name="mail-content">'
97
-                . $mailText . '</textarea></form>'
97
+                . $mailText.'</textarea></form>'
98 98
             )
99 99
         );
100 100
     }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
             $repositoryService->store($application);
143 143
             unset($mail);
144 144
         }
145
-        return new JsonModel(array('ok' => true, ));
145
+        return new JsonModel(array('ok' => true,));
146 146
     }
147 147
     
148 148
     /**
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      */
153 153
     public function moveAction()
154 154
     {
155
-        $ids = (array)$this->params()->fromPost('ids');
155
+        $ids = (array) $this->params()->fromPost('ids');
156 156
         $moved = 0;
157 157
         
158 158
         if ($ids) {
Please login to merge, or discard this patch.
module/Applications/src/Controller/IndexController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@
 block discarded – undo
40 40
 
41 41
         //default sorting
42 42
         if (!isset($params['sort'])) {
43
-            $params['sort']="-date";
43
+            $params['sort'] = "-date";
44 44
         }
45 45
         $params->count = 5;
46
-        $params->pageRange=5;
46
+        $params->pageRange = 5;
47 47
 
48 48
         $this->paginationParams()->setParams('Applications\Index', $params);
49 49
 
Please login to merge, or discard this patch.