Completed
Push — develop ( 62f68e...872778 )
by Carsten
13s
created
module/Jobs/src/Controller/ConsoleController.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
         }
55 55
 
56 56
         $date = new \DateTime('today');
57
-        $date->sub(new \DateInterval('P' . $days . 'D'));
57
+        $date->sub(new \DateInterval('P'.$days.'D'));
58 58
 
59
-        $query        = [
59
+        $query = [
60 60
             '$and' => [
61 61
                 ['status.name' => StatusInterface::ACTIVE],
62 62
                 ['$or' => [
@@ -83,11 +83,11 @@  discard block
 block discarded – undo
83 83
         }
84 84
 
85 85
         if ($info) {
86
-            echo count($jobs) , ' Jobs';
86
+            echo count($jobs), ' Jobs';
87 87
             if ($offset) {
88
-                echo ' starting from ' . $offset;
88
+                echo ' starting from '.$offset;
89 89
             }
90
-            echo PHP_EOL . PHP_EOL;
90
+            echo PHP_EOL.PHP_EOL;
91 91
             $this->listExpiredJobs($jobs);
92 92
             return;
93 93
         }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 //
99 99
         echo "$count jobs found, which have to expire ...\n";
100 100
         
101
-        $progress     = new ProgressBar(
101
+        $progress = new ProgressBar(
102 102
             new ConsoleAdapter(
103 103
                 array(
104 104
                 'elements' => array(
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 
122 122
         /* @var \Jobs\Entity\Job $job */
123 123
         foreach ($jobs as $job) {
124
-            $progress->update($i++, 'Job ' . $i . ' / ' . $count);
124
+            $progress->update($i++, 'Job '.$i.' / '.$count);
125 125
 
126 126
             $job->changeStatus('expired');
127 127
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         $i            = 0;
150 150
         /* @var Job $job */
151 151
         foreach ($jobs as $job) {
152
-            $progress->update($i++, 'Job ' . $i . ' / ' . $count);
152
+            $progress->update($i++, 'Job '.$i.' / '.$count);
153 153
             
154 154
             $permissions = $job->getPermissions();
155 155
             $user        = $job->getUser();
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 continue;
158 158
             }
159 159
             try {
160
-                $group       = $user->getGroup($job->getCompany());
160
+                $group = $user->getGroup($job->getCompany());
161 161
             } catch (\Exception $e) {
162 162
                 continue;
163 163
             }
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
                 $org = $job->getCompany();
197 197
             }
198 198
             printf(
199
-                '%s   %s   %s   %-30s   %-20s' . PHP_EOL,
199
+                '%s   %s   %s   %-30s   %-20s'.PHP_EOL,
200 200
                 $id,
201 201
                 $job->getDatePublishStart()->format('Y-m-d'),
202 202
                 $job->getDatePublishEnd()->format('Y-m-d'),
@@ -204,6 +204,6 @@  discard block
 block discarded – undo
204 204
                 substr($org, 0, 20)
205 205
             );
206 206
         }
207
-        return count($jobs) . ' Jobs.';
207
+        return count($jobs).' Jobs.';
208 208
     }
209 209
 }
Please login to merge, or discard this patch.
module/Jobs/src/Controller/TemplateController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             $this->auth()->isAdmin()
105 105
         ) {
106 106
             $applicationViewModel->setTemplate('iframe/iFrameInjection');
107
-        } elseif (Status::EXPIRED == $job->getStatus() or  Status::INACTIVE == $job->getStatus()) {
107
+        } elseif (Status::EXPIRED == $job->getStatus() or Status::INACTIVE == $job->getStatus()) {
108 108
             $response->setStatusCode(Response::STATUS_CODE_410);
109 109
             $model->setTemplate('jobs/error/expired');
110 110
             $model->setVariables(
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     protected function editTemplateAction()
133 133
     {
134 134
         $id = $this->params('id');
135
-        $formIdentifier=$this->params()->fromQuery('form');
135
+        $formIdentifier = $this->params()->fromQuery('form');
136 136
         //$job = $this->jobRepository->find($id);
137 137
         $job = $this->initializeJob()->get($this->params(), true, true); /* @var \Jobs\Entity\Job $job */
138 138
         $this->acl($job, 'edit');
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
             $instanceForm = $formTemplate->get($formIdentifier);
166 166
             if (!isset($instanceForm)) {
167
-                throw new \RuntimeException('No form found for "' . $formIdentifier . '"');
167
+                throw new \RuntimeException('No form found for "'.$formIdentifier.'"');
168 168
             }
169 169
 
170 170
             // the id is part of the postData, but it never should be altered
Please login to merge, or discard this patch.
module/Cv/config/module.config.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
                  * for multiple paths.
24 24
                  * example https://github.com/doctrine/DoctrineORMModule
25 25
                  */
26
-                'paths' => [ __DIR__ . '/../src/Entity'],
26
+                'paths' => [__DIR__.'/../src/Entity'],
27 27
             ],
28 28
         ],
29 29
         'eventmanager' => [
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         'translation_file_patterns' => [
45 45
             [
46 46
                 'type'     => 'gettext',
47
-                'base_dir' => __DIR__ . '/../language',
47
+                'base_dir' => __DIR__.'/../language',
48 48
                 'pattern'  => '%s.mo',
49 49
             ],
50 50
         ],
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         'factories' => [
155 155
             \Cv\Controller\IndexController::class => \Zend\ServiceManager\Factory\InvokableFactory::class,
156 156
             'Cv/View'  => 'Cv\Factory\Controller\ViewControllerFactory',
157
-            'Cv\Controller\Manage' => [ManageController::class,'factory'],
157
+            'Cv\Controller\Manage' => [ManageController::class, 'factory'],
158 158
         ],
159 159
         'aliases' => [
160 160
             'Cv/Index' => \Cv\Controller\IndexController::class,
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
             'resume-recruiter' => [
170 170
                 'label' =>  /*@translate*/ 'Talent-Pool',
171 171
                 'route' => 'lang/cvs',
172
-                'active_on' => [ 'lang/cvs/edit', 'lang/cvs/view' ],
172
+                'active_on' => ['lang/cvs/edit', 'lang/cvs/view'],
173 173
                 'resource' => 'navigation/resume-recruiter',
174 174
                 'order' => 10,
175 175
                 'query' => [
@@ -200,15 +200,15 @@  discard block
 block discarded – undo
200 200
     
201 201
         // Map template to files. Speeds up the lookup through the template stack.
202 202
         'template_map' => [
203
-            'cv/form/employment.view' => __DIR__ . '/../view/cv/form/employment.view.phtml',
204
-            'cv/form/employment.form' => __DIR__ . '/../view/cv/form/employment.form.phtml',
205
-            'cv/form/education.view' => __DIR__ . '/../view/cv/form/education.view.phtml',
206
-            'cv/form/education.form' => __DIR__ . '/../view/cv/form/education.form.phtml'
203
+            'cv/form/employment.view' => __DIR__.'/../view/cv/form/employment.view.phtml',
204
+            'cv/form/employment.form' => __DIR__.'/../view/cv/form/employment.form.phtml',
205
+            'cv/form/education.view' => __DIR__.'/../view/cv/form/education.view.phtml',
206
+            'cv/form/education.form' => __DIR__.'/../view/cv/form/education.form.phtml'
207 207
         ],
208 208
     
209 209
         // Where to look for view templates not mapped above
210 210
         'template_path_stack' => [
211
-            __DIR__ . '/../view',
211
+            __DIR__.'/../view',
212 212
         ],
213 213
     ],
214 214
 
Please login to merge, or discard this patch.
module/Cv/src/Repository/Event/DeleteRemovedAttachmentsSubscriber.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@
 block discarded – undo
44 44
         $fileId = new \MongoId($file->getId());
45 45
         $dm = $eventArgs->getDocumentManager();
46 46
         $dm->createQueryBuilder('Cv\Entity\Cv')
47
-           ->update()->multiple(true)
48
-           ->field('attachments')->equals($fileId)->pull($fileId)
49
-           ->getQuery()->execute();
47
+            ->update()->multiple(true)
48
+            ->field('attachments')->equals($fileId)->pull($fileId)
49
+            ->getQuery()->execute();
50 50
     }
51 51
 }
Please login to merge, or discard this patch.
module/Cv/src/Repository/Event/UpdateFilesPermissionsSubscriber.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
 {
25 25
     protected $targetDocument = Cv::class;
26 26
 
27
-    protected $filesProperties = [ 'attachments' ];
27
+    protected $filesProperties = ['attachments'];
28 28
 
29 29
     /**
30 30
      *
Please login to merge, or discard this patch.
module/Cv/src/Form/SearchForm.php 2 patches
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -33,44 +33,44 @@
 block discarded – undo
33 33
     protected function addElements()
34 34
     {
35 35
         $this->add(
36
-             [
37
-                 'name' => 'l',
38
-                 'type' => 'LocationSelect',
39
-                 'options' => [
40
-                     'label' => /*@translate*/ 'Location',
41
-                     'span' => 3,
42
-                     'location_entity' => Location::class,
43
-                 ],
44
-                 'attributes' => [
45
-                     'data-width' => '100%',
46
-                 ],
47
-             ]
36
+                [
37
+                    'name' => 'l',
38
+                    'type' => 'LocationSelect',
39
+                    'options' => [
40
+                        'label' => /*@translate*/ 'Location',
41
+                        'span' => 3,
42
+                        'location_entity' => Location::class,
43
+                    ],
44
+                    'attributes' => [
45
+                        'data-width' => '100%',
46
+                    ],
47
+                ]
48 48
         );
49 49
 
50 50
         $this->add(
51
-             [
52
-                 'name' => 'd',
53
-                 'type' => 'Core\Form\Element\Select', //Zend\Form\Element\Select
54
-                 'options' => [
55
-                     'label' => /*@translate*/ 'Distance',
56
-                     'value_options' => [
57
-                         '5' => '5 km',
58
-                         '10' => '10 km',
59
-                         '20' => '20 km',
60
-                         '50' => '50 km',
61
-                         '100' => '100 km'
62
-                     ],
63
-                     'span' => 4,
51
+                [
52
+                    'name' => 'd',
53
+                    'type' => 'Core\Form\Element\Select', //Zend\Form\Element\Select
54
+                    'options' => [
55
+                        'label' => /*@translate*/ 'Distance',
56
+                        'value_options' => [
57
+                            '5' => '5 km',
58
+                            '10' => '10 km',
59
+                            '20' => '20 km',
60
+                            '50' => '50 km',
61
+                            '100' => '100 km'
62
+                        ],
63
+                        'span' => 4,
64 64
 
65
-                 ],
66
-                 'attributes' => [
67
-                     'value' => '10', // default distance
68
-                     'data-searchbox' => -1,  // hide the search box
69
-                     'data-allowclear' => 'false', // allow to clear a selected value
70
-                     'data-placeholder' => /*@translate*/ 'Distance',
71
-                     'data-width' => '100%',
72
-                 ]
73
-             ]
65
+                    ],
66
+                    'attributes' => [
67
+                        'value' => '10', // default distance
68
+                        'data-searchbox' => -1,  // hide the search box
69
+                        'data-allowclear' => 'false', // allow to clear a selected value
70
+                        'data-placeholder' => /*@translate*/ 'Distance',
71
+                        'data-width' => '100%',
72
+                    ]
73
+                ]
74 74
         );
75 75
     }
76 76
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
                  ],
67 67
                  'attributes' => [
68 68
                      'value' => '10', // default distance
69
-                     'data-searchbox' => -1,  // hide the search box
69
+                     'data-searchbox' => -1, // hide the search box
70 70
                      'data-allowclear' => 'false', // allow to clear a selected value
71 71
                      'data-placeholder' => /*@translate*/ 'Distance',
72 72
                      'data-width' => '100%',
Please login to merge, or discard this patch.
module/Cv/src/Form/NativeLanguageFieldset.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -124,9 +124,9 @@
 block discarded – undo
124 124
     public function init()
125 125
     {
126 126
         $this->setName('nativeLanguages')
127
-             ->setHydrator(new EntityHydrator())
128
-             ->setObject(new NativeLanguageEntity())
129
-             ->setLabel('Native Language');
127
+                ->setHydrator(new EntityHydrator())
128
+                ->setObject(new NativeLanguageEntity())
129
+                ->setLabel('Native Language');
130 130
 
131 131
 
132 132
         $this->add(
Please login to merge, or discard this patch.
module/Cv/src/Form/LanguageSkillFieldset.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
     public function init()
12 12
     {
13 13
         $this->setName('language')
14
-             ->setHydrator(new EntityHydrator())
15
-             ->setObject(new LanguageEntity())
16
-             ->setLabel('Language');
14
+                ->setHydrator(new EntityHydrator())
15
+                ->setObject(new LanguageEntity())
16
+                ->setLabel('Language');
17 17
         
18 18
         $this->add(
19 19
             array(
Please login to merge, or discard this patch.
module/Cv/src/Form/InputFilter/Education.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         $this->add([
28 28
             'name' => 'endDate',
29
-            'required' => ! $data['currentIndicator']
29
+            'required' => !$data['currentIndicator']
30 30
         ]);
31 31
         
32 32
         return parent::setData($data);
Please login to merge, or discard this patch.