Completed
Push — develop ( b559a4...dfd31d )
by
unknown
18:18 queued 10:06
created
module/Applications/src/Applications/Mail/NewApplication.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
      */
96 96
     public function setUser($user)
97 97
     {
98
-        $this->user=$user;
98
+        $this->user = $user;
99 99
         return $this;
100 100
     }
101 101
 
Please login to merge, or discard this patch.
module/Applications/src/Applications/Controller/ApplyController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                 throw new \RuntimeException('Invalid application id.');
92 92
             }
93 93
 
94
-            $action     = 'process';
94
+            $action = 'process';
95 95
 
96 96
             $routeMatch->setParam('action', $action);
97 97
         } else {
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     {
183 183
         $this->response->setStatusCode(410);
184 184
         $model = new ViewModel(
185
-            [ 'content' => /*@translate*/ 'Invalid apply id']
185
+            ['content' => /*@translate*/ 'Invalid apply id']
186 186
         );
187 187
         $model->setTemplate('applications/error/not-found');
188 188
         return $model;
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
         }
361 361
 
362 362
         if ('sendmail' == $this->params()->fromQuery('do')) {
363
-            $jobEntity         = $application->getJob();
363
+            $jobEntity = $application->getJob();
364 364
 
365 365
             $mailData = array(
366 366
                 'application' => $application,
@@ -388,8 +388,8 @@  discard block
 block discarded – undo
388 388
             ->revoke($this->auth()->getUser(), PermissionsInterface::PERMISSION_CHANGE)
389 389
             ->inherit($application->getJob()->getPermissions());
390 390
 
391
-        $events   = $services->get('Applications/Events');
392
-        $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, [ 'application' => $application ]);
391
+        $events = $services->get('Applications/Events');
392
+        $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, ['application' => $application]);
393 393
 
394 394
         $model = new ViewModel(
395 395
             array(
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.
module/Applications/src/Applications/Listener/StatusChange.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      *
69 69
      * @param ApplicationEvent $e
70 70
      */
71
-    public function prepareFormData(ApplicationEvent $e){
71
+    public function prepareFormData(ApplicationEvent $e) {
72 72
         if ($e->isPostRequest()) {
73 73
             return;
74 74
         }
@@ -95,13 +95,13 @@  discard block
 block discarded – undo
95 95
                 $key = 'mailRejectionText';
96 96
                 break;
97 97
             default:
98
-                throw new \InvalidArgumentException('Unknown status value: ' .$status);
98
+                throw new \InvalidArgumentException('Unknown status value: '.$status);
99 99
         }
100
-        $mailText      = $settings->$key ? $settings->$key : '';
100
+        $mailText = $settings->$key ? $settings->$key : '';
101 101
         $mail->setBody($mailText);
102 102
         $mail->setApplication($this->application);
103 103
         $mailText = $mail->getBodyText();
104
-        $mailSubject   = sprintf(
104
+        $mailSubject = sprintf(
105 105
             $this->translator->translate('Your application dated %s'),
106 106
             strftime('%x', $this->application->getDateCreated()->getTimestamp())
107 107
         );
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      *
122 122
      * @param ApplicationEvent $event
123 123
      */
124
-    public function  sendMail(ApplicationEvent $event){
124
+    public function  sendMail(ApplicationEvent $event) {
125 125
         if (!$event->isPostRequest()) {
126 126
             return;
127 127
         }
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         $this->mailService->send($mail);
168 168
 
169 169
 
170
-        $historyText = sprintf($this->translator->translate('Mail was sent to %s'), key($recipient) ?: $recipient[0] );
170
+        $historyText = sprintf($this->translator->translate('Mail was sent to %s'), key($recipient) ?: $recipient[0]);
171 171
         $this->application->changeStatus($status, $historyText);
172 172
         $event->setNotification($historyText);
173 173
     }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      *
179 179
      * @return AddressList
180 180
      */
181
-    protected function getRecipient( Application $application, $status) {
181
+    protected function getRecipient(Application $application, $status) {
182 182
 
183 183
         $recipient = Status::ACCEPTED == $status
184 184
             ? $application->getJob()->getUser()->getInfo()
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
         $email = $recipient->getEmail();
188 188
         $name  = $recipient->getDisplayName(false);
189 189
 
190
-        return $name ? [ $email => $name ] : [ $email ];
190
+        return $name ? [$email => $name] : [$email];
191 191
     }
192 192
 
193 193
 }
194 194
\ No newline at end of file
Please login to merge, or discard this patch.
module/Core/src/Core/Mail/Message.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,10 +53,10 @@
 block discarded – undo
53 53
 
54 54
         if ($emailOrAddressOrList instanceOf UserInterface) {
55 55
             parent::updateAddressList(
56
-                         $addressList,
57
-                         $emailOrAddressOrList->getInfo()->getEmail(),
58
-                         $emailOrAddressOrList->getInfo()->getDisplayName(false),
59
-                         $callingMethod
56
+                            $addressList,
57
+                            $emailOrAddressOrList->getInfo()->getEmail(),
58
+                            $emailOrAddressOrList->getInfo()->getDisplayName(false),
59
+                            $callingMethod
60 60
             );
61 61
             return;
62 62
         }
Please login to merge, or discard this patch.
module/Organizations/config/module.config.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
                 ),
14 14
             ),
15 15
             'annotation' => array(
16
-                'paths' => array( __DIR__ . '/../src/Organizations/Entity')
16
+                'paths' => array(__DIR__.'/../src/Organizations/Entity')
17 17
             ),
18 18
         ),
19 19
         'eventmanager' => array(
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         'translation_file_patterns' => array(
40 40
             array(
41 41
                 'type' => 'gettext',
42
-                'base_dir' => __DIR__ . '/../language',
42
+                'base_dir' => __DIR__.'/../language',
43 43
                 'pattern' => '%s.mo',
44 44
             ),
45 45
         ),
@@ -67,18 +67,18 @@  discard block
 block discarded – undo
67 67
     'view_manager' => array(
68 68
         // Map template to files. Speeds up the lookup through the template stack.
69 69
         'template_map' => array(
70
-             'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml',
71
-             'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml',
72
-             'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml',
73
-             'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml',
74
-             'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml',
75
-             'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml',
76
-             'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml',
77
-            'organizations/form/workflow-fieldset' => __DIR__ . '/../view/form/workflow-fieldset.phtml',
70
+             'organizations/index/edit' => __DIR__.'/../view/organizations/index/form.phtml',
71
+             'organizations/form/employees-fieldset' => __DIR__.'/../view/form/employees-fieldset.phtml',
72
+             'organizations/form/employee-fieldset' => __DIR__.'/../view/form/employee-fieldset.phtml',
73
+             'organizations/form/invite-employee-bar' => __DIR__.'/../view/form/invite-employee-bar.phtml',
74
+             'organizations/error/no-parent' => __DIR__.'/../view/error/no-parent.phtml',
75
+             'organizations/error/invite' => __DIR__.'/../view/error/invite.phtml',
76
+             'organizations/mail/invite-employee' => __DIR__.'/../view/mail/invite-employee.phtml',
77
+            'organizations/form/workflow-fieldset' => __DIR__.'/../view/form/workflow-fieldset.phtml',
78 78
         ),
79 79
         // Where to look for view templates not mapped above
80 80
         'template_path_stack' => array(
81
-            __DIR__ . '/../view',
81
+            __DIR__.'/../view',
82 82
         ),
83 83
     ),
84 84
     'form_elements' => array(
@@ -139,11 +139,11 @@  discard block
 block discarded – undo
139 139
                 'allow' => array(
140 140
                     'Entity/OrganizationImage',
141 141
                     'route/lang/organizations/invite',
142
-                    'Organizations/InviteEmployee' => [ 'accept' ],
142
+                    'Organizations/InviteEmployee' => ['accept'],
143 143
                 ),
144 144
                 'deny' => array(
145 145
                     'route/lang/organizations',
146
-                    'Organizations/InviteEmployee' => [ 'invite' ],
146
+                    'Organizations/InviteEmployee' => ['invite'],
147 147
                 ),
148 148
             ),
149 149
             // recruiters are allowed to view their companies
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
             'organizations' => array(
165 165
                 'label' => 'Organizations',
166 166
                 'route' => 'lang/organizations',
167
-                'order' => 65,                             // allows to order the menu items
168
-                'resource' => 'route/lang/organizations',  // if a resource is defined, the acl will be applied.
167
+                'order' => 65, // allows to order the menu items
168
+                'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied.
169 169
 
170 170
                 'pages' => array(
171 171
                     'list' => array(
Please login to merge, or discard this patch.