Completed
Push — master ( dc4dd2...16100a )
by Mathias
08:39
created
module/Cv/src/Entity/PreferredJob.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     
87 87
     public function setDesiredJob($desiredJob)
88 88
     {
89
-        $this->desiredJob=$desiredJob;
89
+        $this->desiredJob = $desiredJob;
90 90
         return $this;
91 91
     }
92 92
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     public function setDesiredLocation($desiredLocation)
107 107
     {
108
-        $this->desiredLocation=$desiredLocation;
108
+        $this->desiredLocation = $desiredLocation;
109 109
         return $this;
110 110
     }
111 111
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function setWillingnessToTravel($willingnessToTravel)
145 145
     {
146
-        $this->willingnessToTravel=$willingnessToTravel;
146
+        $this->willingnessToTravel = $willingnessToTravel;
147 147
         return $this;
148 148
     }
149 149
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     public function setExpectedSalary($expectedSalary)
164 164
     {
165
-        $this->expectedSalary=$expectedSalary;
165
+        $this->expectedSalary = $expectedSalary;
166 166
         return $this;
167 167
     }
168 168
 
Please login to merge, or discard this patch.
module/Cv/src/Entity/StatusInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
15 15
  */
16 16
 interface StatusInterface extends EntityInterface
17 17
 {
18
-    const NONPUBLIC =  /*@translate*/ 'private';
18
+    const NONPUBLIC = /*@translate*/ 'private';
19 19
 
20
-    const PUBLIC_TO_ALL =  /*@translate*/ 'public to all';
20
+    const PUBLIC_TO_ALL = /*@translate*/ 'public to all';
21 21
 
22 22
     public function __construct($status = self::NONPUBLIC);
23 23
 
Please login to merge, or discard this patch.
module/Cv/src/Entity/Status.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     public function __construct($status = self::NONPUBLIC)
48 48
     {
49 49
         if (!isset(static::$orderMap[$status])) {
50
-            throw new \DomainException('Unknown status: ' . $status);
50
+            throw new \DomainException('Unknown status: '.$status);
51 51
         }
52 52
         
53 53
         $this->name = $status;
Please login to merge, or discard this patch.
module/Cv/src/Entity/ComputerSkill.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function setName($name)
35 35
     {
36
-        $this->name=$name;
36
+        $this->name = $name;
37 37
     }
38 38
 
39 39
     /**
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function setLevel($level)
53 53
     {
54
-        $this->level=$level;
54
+        $this->level = $level;
55 55
     }
56 56
 
57 57
     /**
Please login to merge, or discard this patch.
module/Cv/src/Entity/CvInterface.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@
 block discarded – undo
10 10
 use Core\Entity\IdentifiableEntityInterface;
11 11
 
12 12
 interface CvInterface extends EntityInterface,
13
-                              IdentifiableEntityInterface,
14
-                              DraftableEntityInterface,
15
-                              PermissionsAwareInterface,
16
-                              ModificationDateAwareEntityInterface
13
+                                IdentifiableEntityInterface,
14
+                                DraftableEntityInterface,
15
+                                PermissionsAwareInterface,
16
+                                ModificationDateAwareEntityInterface
17 17
 {
18 18
     
19 19
     /**
Please login to merge, or discard this patch.
module/Cv/src/Entity/Cv.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,11 +60,11 @@
 block discarded – undo
60 60
     protected $skills;
61 61
 
62 62
     /**
63
-    * Skills
64
-    *
65
-    * @var ArrayCollection
66
-    * @ODM\EmbedMany(targetDocument="\Cv\Entity\Language")
67
-    */
63
+     * Skills
64
+     *
65
+     * @var ArrayCollection
66
+     * @ODM\EmbedMany(targetDocument="\Cv\Entity\Language")
67
+     */
68 68
     protected $languageSkills;
69 69
 
70 70
     /**
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @var array
83 83
      * @ODM\Field(type="collection")
84 84
      */
85
-    protected $nativeLanguages=[];
85
+    protected $nativeLanguages = [];
86 86
 
87 87
 
88 88
     /**
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      */
268 268
     public function setIsDraft($isDraft)
269 269
     {
270
-        $this->isDraft=$isDraft;
270
+        $this->isDraft = $isDraft;
271 271
         return $this;
272 272
     }
273 273
 
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
      */
338 338
     public function setNativeLanguages($nativeLanguages)
339 339
     {
340
-        $this->nativeLanguages=$nativeLanguages;
340
+        $this->nativeLanguages = $nativeLanguages;
341 341
         return $this;
342 342
     }
343 343
 
Please login to merge, or discard this patch.
module/Applications/config/module.config.php 2 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -18,20 +18,20 @@  discard block
 block discarded – undo
18 18
 
19 19
 return [
20 20
     'doctrine' => [
21
-       'driver' => [
21
+        'driver' => [
22 22
             'odm_default' => [
23 23
                 'drivers' => [
24 24
                     'Applications\Entity' => 'annotation',
25 25
                 ],
26 26
             ],
27 27
             'annotation' => [
28
-               /*
28
+                /*
29 29
                 * All drivers (except DriverChain) require paths to work on. You
30 30
                 * may set this value as a string (for a single path) or an array
31 31
                 * for multiple paths.
32 32
                 * example https://github.com/doctrine/DoctrineORMModule
33 33
                 */
34
-               'paths' => [ __DIR__ . '/../src/Entity']
34
+                'paths' => [ __DIR__ . '/../src/Entity']
35 35
             ],
36 36
         ],
37 37
         'eventmanager' => [
@@ -71,18 +71,18 @@  discard block
 block discarded – undo
71 71
             'Applications/Options/ModuleOptions' => 'Applications\Options\ModuleOptions',
72 72
         ],
73 73
         'factories' => [
74
-           'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory',
75
-           'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory',
76
-           'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory',
77
-           'EducationMapper'   => 'Applications\Repository\Service\EducationMapperFactory',
78
-           'Applications/Listener/ApplicationCreated' => 'Applications\Factory\Listener\EventApplicationCreatedFactory',
79
-           'Applications/Listener/ApplicationStatusChangePre' => 'Applications\Factory\Listener\StatusChangeFactory',
80
-           'Applications\Auth\Dependency\ListListener' => 'Applications\Factory\Auth\Dependency\ListListenerFactory',
74
+            'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory',
75
+            'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory',
76
+            'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory',
77
+            'EducationMapper'   => 'Applications\Repository\Service\EducationMapperFactory',
78
+            'Applications/Listener/ApplicationCreated' => 'Applications\Factory\Listener\EventApplicationCreatedFactory',
79
+            'Applications/Listener/ApplicationStatusChangePre' => 'Applications\Factory\Listener\StatusChangeFactory',
80
+            'Applications\Auth\Dependency\ListListener' => 'Applications\Factory\Auth\Dependency\ListListenerFactory',
81 81
             Listener\JobSelectValues::class => Factory\Listener\JobSelectValuesFactory::class,
82 82
             Listener\LoadDependendEntities::class => InvokableFactory::class,
83 83
         ],
84 84
         'aliases' => [
85
-           'Applications/Listener/ApplicationStatusChangePost' => 'Applications/Listener/ApplicationStatusChangePre'
85
+            'Applications/Listener/ApplicationStatusChangePost' => 'Applications/Listener/ApplicationStatusChangePre'
86 86
         ]
87 87
     ],
88 88
     
@@ -185,20 +185,20 @@  discard block
 block discarded – undo
185 185
     ],
186 186
     'form_elements' => [
187 187
         'invokables' => [
188
-             'Applications/Mail' => 'Applications\Form\Mail',
189
-             'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset',
190
-             'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset',
191
-             'Applications/CommentForm' => 'Applications\Form\CommentForm',
192
-             'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset',
193
-             'Applications/Apply' => 'Applications\Form\Apply',
194
-             'Applications/Contact' => 'Applications\Form\ContactContainer',
195
-             'Applications/Base'  => 'Applications\Form\Base',
196
-             'Applications/Facts' => 'Applications\Form\Facts',
197
-             'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset',
198
-             'Applications/Attributes' => 'Applications\Form\Attributes',
199
-             'href' => 'Applications\Form\Element\Ref',
188
+                'Applications/Mail' => 'Applications\Form\Mail',
189
+                'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset',
190
+                'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset',
191
+                'Applications/CommentForm' => 'Applications\Form\CommentForm',
192
+                'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset',
193
+                'Applications/Apply' => 'Applications\Form\Apply',
194
+                'Applications/Contact' => 'Applications\Form\ContactContainer',
195
+                'Applications/Base'  => 'Applications\Form\Base',
196
+                'Applications/Facts' => 'Applications\Form\Facts',
197
+                'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset',
198
+                'Applications/Attributes' => 'Applications\Form\Attributes',
199
+                'href' => 'Applications\Form\Element\Ref',
200 200
 
201
-         ],
201
+            ],
202 202
         'factories' => [
203 203
             'Applications/ContactImage' => 'Applications\Factory\Form\ContactImageFactory',
204 204
             'Applications/Attachments' => 'Applications\Factory\Form\AttachmentsFactory',
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             'Applications\Form\Element\StatusSelect' => Factory\Form\StatusSelectFactory::class,
207 207
             Form\Element\JobSelect::class => Factory\Form\JobSelectFactory::class
208 208
         ],
209
-     ],
209
+        ],
210 210
 
211 211
     'form_elements_config' => [
212 212
         'Applications/Apply' => [
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
                 * for multiple paths.
32 32
                 * example https://github.com/doctrine/DoctrineORMModule
33 33
                 */
34
-               'paths' => [ __DIR__ . '/../src/Entity']
34
+               'paths' => [__DIR__.'/../src/Entity']
35 35
             ],
36 36
         ],
37 37
         'eventmanager' => [
@@ -92,10 +92,10 @@  discard block
 block discarded – undo
92 92
             'Applications\Controller\MultiManage' => 'Applications\Controller\MultimanageController',
93 93
         ],
94 94
         'factories' => [
95
-            'Applications/Controller/Manage' => [ManageController::class,'factory'],
96
-            'Applications\Controller\Apply' => [ApplyController::class,'factory'],
97
-            'Applications/CommentController' => [CommentController::class,'factory'],
98
-            'Applications/Console' => [ConsoleController::class,'factory'],
95
+            'Applications/Controller/Manage' => [ManageController::class, 'factory'],
96
+            'Applications\Controller\Apply' => [ApplyController::class, 'factory'],
97
+            'Applications/CommentController' => [CommentController::class, 'factory'],
98
+            'Applications/Console' => [ConsoleController::class, 'factory'],
99 99
         ]
100 100
     ],
101 101
     
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         'translation_file_patterns' => [
155 155
             [
156 156
                 'type' => 'gettext',
157
-                'base_dir' => __DIR__ . '/../language',
157
+                'base_dir' => __DIR__.'/../language',
158 158
                 'pattern' => '%s.mo',
159 159
             ],
160 160
         ],
@@ -162,16 +162,16 @@  discard block
 block discarded – undo
162 162
     // Configure the view service manager
163 163
     'view_manager' => [
164 164
         'template_path_stack' => [
165
-            'Applications' => __DIR__ . '/../view',
165
+            'Applications' => __DIR__.'/../view',
166 166
         ],
167 167
         'template_map' => [
168
-            'applications/error/not-found' => __DIR__ . '/../view/error/not-found.phtml',
169
-            'layout/apply' => __DIR__ . '/../view/layout/layout.phtml',
170
-            'applications/sidebar/manage' => __DIR__ . '/../view/sidebar/manage.phtml',
171
-            'applications/mail/forward' => __DIR__ . '/../view/mail/forward.phtml',
172
-            'applications/detail/pdf' => __DIR__ . '/../view/applications/manage/detail.pdf.phtml',
173
-            'applications/index/disclaimer' => __DIR__ . '/../view/applications/index/disclaimer.phtml',
174
-            'content/applications-privacy-policy' => __DIR__ . '/../view/applications/index/disclaimer.phtml',
168
+            'applications/error/not-found' => __DIR__.'/../view/error/not-found.phtml',
169
+            'layout/apply' => __DIR__.'/../view/layout/layout.phtml',
170
+            'applications/sidebar/manage' => __DIR__.'/../view/sidebar/manage.phtml',
171
+            'applications/mail/forward' => __DIR__.'/../view/mail/forward.phtml',
172
+            'applications/detail/pdf' => __DIR__.'/../view/applications/manage/detail.pdf.phtml',
173
+            'applications/index/disclaimer' => __DIR__.'/../view/applications/index/disclaimer.phtml',
174
+            'content/applications-privacy-policy' => __DIR__.'/../view/applications/index/disclaimer.phtml',
175 175
         ]
176 176
     ],
177 177
     'view_helpers' => [
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
         'factories' => [
242 242
             'Applications/NewApplication' => 'Applications\Factory\Mail\NewApplicationFactory',
243 243
             Mail\Confirmation::class      => Factory\Mail\ConfirmationFactory::class,
244
-            'Applications/Forward'        => [Forward::class,'factory'],
244
+            'Applications/Forward'        => [Forward::class, 'factory'],
245 245
         ],
246 246
         'aliases' => [
247 247
             'Applications/Confirmation'   => Mail\Confirmation::class,
Please login to merge, or discard this patch.
module/Applications/src/Options/ModuleOptions.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 
80 80
     protected $workflow = [
81 81
 
82
-      'recruiter',
82
+        'recruiter',
83 83
     ];
84 84
 
85 85
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
237 237
      */
238 238
     public function setAllowSubsequentAttachmentUpload($allowSubsequentAttachmentUpload)
239 239
     {
240
-        $this->allowSubsequentAttachmentUpload = (bool)$allowSubsequentAttachmentUpload;
240
+        $this->allowSubsequentAttachmentUpload = (bool) $allowSubsequentAttachmentUpload;
241 241
         
242 242
         return $this;
243 243
     }
Please login to merge, or discard this patch.
module/Applications/src/Repository/Application.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
     {
103 103
         $qb = $this->getPaginationQueryBuilder($params);
104 104
         $cursor = $qb->hydrate(false)
105
-                     ->select('_id')
106
-                     ->getQuery()
107
-                     ->execute();
105
+                        ->select('_id')
106
+                        ->getQuery()
107
+                        ->execute();
108 108
         
109 109
         $list = new PaginationList(array_keys(ArrayUtils::iteratorToArray($cursor)));
110 110
         return $list;
@@ -133,8 +133,8 @@  discard block
 block discarded – undo
133 133
     {
134 134
         $auth=$this->getService('AuthenticationService');
135 135
         $qb=$this->createQueryBuilder()
136
-                  ->field("readBy")->notIn(array($auth->getUser()->getId()))
137
-                  ->field("job")->equals(new \MongoId($job->getId()));
136
+                    ->field("readBy")->notIn(array($auth->getUser()->getId()))
137
+                    ->field("job")->equals(new \MongoId($job->getId()));
138 138
         return $qb->getQuery()->execute();
139 139
     }
140 140
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,8 +131,8 @@
 block discarded – undo
131 131
      */
132 132
     public function loadUnreadApplicationsForJob($job)
133 133
     {
134
-        $auth=$this->getService('AuthenticationService');
135
-        $qb=$this->createQueryBuilder()
134
+        $auth = $this->getService('AuthenticationService');
135
+        $qb = $this->createQueryBuilder()
136 136
                   ->field("readBy")->notIn(array($auth->getUser()->getId()))
137 137
                   ->field("job")->equals(new \MongoId($job->getId()));
138 138
         return $qb->getQuery()->execute();
Please login to merge, or discard this patch.