Completed
Push — develop ( 4092da...af8557 )
by
unknown
07:48
created
module/Jobs/src/Jobs/Factory/Form/ActiveOrganizationSelectFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,13 +53,13 @@
 block discarded – undo
53 53
         if ($initialId) {
54 54
             /* @var $serviceLocator \Zend\ServiceManager\AbstractPluginManager
55 55
              * @var $repository \Organizations\Repository\Organization */
56
-            $repositories   = $container->get('repositories');
56
+            $repositories = $container->get('repositories');
57 57
             $repository = $repositories->get('Organizations');
58
-            $organization  = $repository->find($initialId);
58
+            $organization = $repository->find($initialId);
59 59
             $organizations[] = $organization;
60 60
         }
61 61
 
62
-        $select         = new OrganizationSelect();
62
+        $select = new OrganizationSelect();
63 63
 
64 64
         $select->setSelectableOrganizations($organizations);
65 65
         $select->setAttribute('data-ajax', '?ajax=jobs.admin.activeorganizations');
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Repository/Job.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
     {
56 56
         $qb = $this->createQueryBuilder();
57 57
         $qb->hydrate(false)
58
-           ->select('applyId')
59
-           ->field('applyId')->equals($applyId);
58
+            ->select('applyId')
59
+            ->field('applyId')->equals($applyId);
60 60
            
61 61
         $result = $qb->getQuery()->execute();
62 62
         $count = $result->count();
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
     {
89 89
         $qb = $this->createQueryBuilder();
90 90
         $qb->hydrate(false)
91
-           ->select('title', 'applyId')
92
-           ->field('permissions.view')->equals($userId)
93
-           ->field('title')->equals(new \MongoRegex('/' . $query . '/i'))
94
-           ->sort('title')
95
-           ->limit(5);
91
+            ->select('title', 'applyId')
92
+            ->field('permissions.view')->equals($userId)
93
+            ->field('title')->equals(new \MongoRegex('/' . $query . '/i'))
94
+            ->sort('title')
95
+            ->limit(5);
96 96
         
97 97
         $result = $qb->getQuery()->execute();
98 98
         
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         $qb = $this->createQueryBuilder();
160 160
         $qb->distinct('organization')
161 161
             ->hydrate(true)
162
-           ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]);
162
+            ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]);
163 163
 
164 164
         $q = $qb->getQuery();
165 165
         $r = $q->execute();
@@ -229,8 +229,8 @@  discard block
 block discarded – undo
229 229
 
230 230
         if (null !== $isDeleted) {
231 231
             $qb->addAnd(
232
-               $qb->expr()->addOr($qb->expr()->field('isDeleted')->equals($isDeleted))
233
-                          ->addOr($qb->expr()->field('isDeleted')->exists(false))
232
+                $qb->expr()->addOr($qb->expr()->field('isDeleted')->equals($isDeleted))
233
+                            ->addOr($qb->expr()->field('isDeleted')->exists(false))
234 234
             );
235 235
         }
236 236
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     public function findByAssignedPermissionsResourceId($resourceId)
71 71
     {
72 72
         $criteria = $this->getIsDeletedCriteria(
73
-                ['permissions.assigned.' . $resourceId => [ '$exists' => true]]
73
+                ['permissions.assigned.'.$resourceId => ['$exists' => true]]
74 74
         );
75 75
 
76 76
         return $this->findBy($criteria);
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $qb->hydrate(false)
91 91
            ->select('title', 'applyId')
92 92
            ->field('permissions.view')->equals($userId)
93
-           ->field('title')->equals(new \MongoRegex('/' . $query . '/i'))
93
+           ->field('title')->equals(new \MongoRegex('/'.$query.'/i'))
94 94
            ->sort('title')
95 95
            ->limit(5);
96 96
         
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         $qb = $this->createQueryBuilder();
160 160
         $qb->distinct('organization')
161 161
             ->hydrate(true)
162
-           ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]);
162
+           ->field('status.name')->notIn([StatusInterface::EXPIRED, StatusInterface::INACTIVE]);
163 163
 
164 164
         $q = $qb->getQuery();
165 165
         $r = $q->execute();
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         $qb = $this->dm->createQueryBuilder('Organizations\Entity\Organization');
169 169
         $qb->field('_id')->in($r);
170 170
         if ($term) {
171
-            $qb->field('_organizationName')->equals(new \MongoRegex('/' . addslashes($term) . '/i'));
171
+            $qb->field('_organizationName')->equals(new \MongoRegex('/'.addslashes($term).'/i'));
172 172
         }
173 173
 
174 174
         $q = $qb->getQuery();
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
      */
226 226
     public function createQueryBuilder($isDeleted = false)
227 227
     {
228
-        $qb =  parent::createQueryBuilder();
228
+        $qb = parent::createQueryBuilder();
229 229
 
230 230
         if (null !== $isDeleted) {
231 231
             $qb->addAnd(
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Listener/LoadActiveOrganizations.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@
 block discarded – undo
51 51
             $imageUrl = $image ? $image->getUri() : '';
52 52
 
53 53
             $options[] = [ 'id' => $org->getId(),
54
-                           'text' => $name . '|'
55
-                                      . $contact->getCity() . '|'
56
-                                      . $contact->getStreet() . '|'
57
-                                      . $contact->getHouseNumber() . '|'
58
-                                      . $imageUrl
54
+                            'text' => $name . '|'
55
+                                        . $contact->getCity() . '|'
56
+                                        . $contact->getStreet() . '|'
57
+                                        . $contact->getHouseNumber() . '|'
58
+                                        . $imageUrl
59 59
             ];
60 60
         }
61 61
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@
 block discarded – undo
50 50
             $image    = $org->getImage();
51 51
             $imageUrl = $image ? $image->getUri() : '';
52 52
 
53
-            $options[] = [ 'id' => $org->getId(),
54
-                           'text' => $name . '|'
55
-                                      . $contact->getCity() . '|'
56
-                                      . $contact->getStreet() . '|'
57
-                                      . $contact->getHouseNumber() . '|'
53
+            $options[] = ['id' => $org->getId(),
54
+                           'text' => $name.'|'
55
+                                      . $contact->getCity().'|'
56
+                                      . $contact->getStreet().'|'
57
+                                      . $contact->getHouseNumber().'|'
58 58
                                       . $imageUrl
59 59
             ];
60 60
         }
Please login to merge, or discard this patch.
module/Jobs/config/module.config.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
                  * for multiple paths.
16 16
                  * example https://github.com/doctrine/DoctrineORMModule
17 17
                  */
18
-                'paths' => [ __DIR__ . '/../src/Jobs/Entity'],
18
+                'paths' => [__DIR__.'/../src/Jobs/Entity'],
19 19
             ],
20 20
         ],
21 21
         'eventmanager' => [
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
     ],
29 29
 
30 30
     'options' => [
31
-        'Jobs/JobboardSearchOptions' => [ 'class' => '\Jobs\Options\JobboardSearchOptions' ],
32
-        'Jobs/BaseFieldsetOptions' => [ 'class' => '\Jobs\Options\BaseFieldsetOptions' ],
31
+        'Jobs/JobboardSearchOptions' => ['class' => '\Jobs\Options\JobboardSearchOptions'],
32
+        'Jobs/BaseFieldsetOptions' => ['class' => '\Jobs\Options\BaseFieldsetOptions'],
33 33
     ],
34 34
 
35 35
     'Jobs' => [
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             'translation_file_patterns' => [
52 52
                     [
53 53
                             'type'     => 'gettext',
54
-                            'base_dir' => __DIR__ . '/../language',
54
+                            'base_dir' => __DIR__.'/../language',
55 55
                             'pattern'  => '%s.mo',
56 56
                     ],
57 57
             ],
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                     'Jobboard',
92 92
                     'Jobs/Jobboard',
93 93
                     'Jobs/ApiJobListByChannel',
94
-                    'Jobs/Template' => [ 'view', 'edittemplate' ],
94
+                    'Jobs/Template' => ['view', 'edittemplate'],
95 95
                     'Jobs/Manage' => [
96 96
                         'template',
97 97
                     ],
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 
234 234
 
235 235
     'event_manager' => [
236
-        'Core/AdminController/Events' => [ 'listeners' => [
236
+        'Core/AdminController/Events' => ['listeners' => [
237 237
             'Jobs/Listener/AdminWidgetProvider' => \Core\Controller\AdminControllerEvent::EVENT_DASHBOARD,
238 238
         ]],
239 239
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
         'Core/Ajax/Events' => ['listeners' => [
256 256
             \Jobs\Listener\DeleteJob::class => ['jobs.delete', true],
257 257
             \Jobs\Listener\GetOrganizationManagers::class => ['jobs.manager-select', true],
258
-            \Jobs\Listener\LoadActiveOrganizations::class => [ 'jobs.admin.activeorganizations', true],
258
+            \Jobs\Listener\LoadActiveOrganizations::class => ['jobs.admin.activeorganizations', true],
259 259
 
260 260
         ]],
261 261
     ],
@@ -303,41 +303,41 @@  discard block
 block discarded – undo
303 303
     'view_manager' => [
304 304
         // Map template to files. Speeds up the lookup through the template stack.
305 305
         'template_map' => [
306
-            'jobs/form/list-filter' => __DIR__ . '/../view/form/list-filter.phtml',
307
-            'jobs/form/apply-identifier' => __DIR__ . '/../view/form/apply-identifier.phtml',
308
-            'jobs/form/hiring-organization-select' => __DIR__ . '/../view/form/hiring-organization-select.phtml',
309
-            'jobs/form/multiposting-select' => __DIR__ . '/../view/form/multiposting-select.phtml',
310
-            'jobs/form/multiposting-checkboxes' => __DIR__ . '/../view/form/multiposting-checkboxes.phtml',
311
-            'jobs/form/ats-mode.view' => __DIR__ . '/../view/form/ats-mode.view.phtml',
312
-            'jobs/form/ats-mode.form' => __DIR__ . '/../view/form/ats-mode.form.phtml',
313
-            'jobs/form/company-name-fieldset' => __DIR__ . '/../view/form/company-name-fieldset.phtml',
314
-            'jobs/form/preview' => __DIR__ . '/../view/form/preview.phtml',
315
-            'jobs/form/customer-note' => __DIR__ . '/../view/form/customer-note.phtml',
316
-            'jobs/partials/channel-list' => __DIR__ . '/../view/partials/channel-list.phtml',
317
-            'jobs/assign-user' => __DIR__ . '/../view/jobs/manage/assign-user.phtml',
318
-            'jobs/snapshot_or_preview' => __DIR__ . '/../view/partials/snapshot_or_preview.phtml',
319
-            'jobs/history' => __DIR__ . '/../view/partials/history.phtml',
320
-            'jobs/portalsummary' => __DIR__ . '/../view/partials/portalsummary.phtml',
321
-            'content/jobs-publish-on-yawik' => __DIR__ . '/../view/modals/yawik.phtml',
322
-            'content/jobs-publish-on-jobsintown' => __DIR__ . '/../view/modals/jobsintown.phtml',
323
-            'content/jobs-publish-on-homepage' => __DIR__ . '/../view/modals/homepage.phtml',
324
-            'content/jobs-publish-on-fazjob' => __DIR__ . '/../view/modals/fazjob.phtml',
325
-            'content/jobs-terms-and-conditions' => __DIR__ . '/../view/jobs/index/terms.phtml',
326
-            'mail/job-created' => __DIR__ . '/../view/mails/job-created.phtml',
327
-            'mail/job-pending' => __DIR__ . '/../view/mails/job-pending.phtml',
328
-            'mail/job-accepted' => __DIR__ . '/../view/mails/job-accepted.phtml',
329
-            'mail/job-rejected' => __DIR__ . '/../view/mails/job-rejected.phtml',
330
-            'mail/job-created.en' => __DIR__ . '/../view/mails/job-created.en.phtml',
331
-            'mail/job-pending.en' => __DIR__ . '/../view/mails/job-pending.en.phtml',
332
-            'mail/job-accepted.en' => __DIR__ . '/../view/mails/job-accepted.en.phtml',
333
-            'mail/job-rejected.en' => __DIR__ . '/../view/mails/job-rejected.en.phtml',
334
-            'jobs/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml',
335
-            'jobs/error/expired' => __DIR__ . '/../view/error/expired.phtml',
306
+            'jobs/form/list-filter' => __DIR__.'/../view/form/list-filter.phtml',
307
+            'jobs/form/apply-identifier' => __DIR__.'/../view/form/apply-identifier.phtml',
308
+            'jobs/form/hiring-organization-select' => __DIR__.'/../view/form/hiring-organization-select.phtml',
309
+            'jobs/form/multiposting-select' => __DIR__.'/../view/form/multiposting-select.phtml',
310
+            'jobs/form/multiposting-checkboxes' => __DIR__.'/../view/form/multiposting-checkboxes.phtml',
311
+            'jobs/form/ats-mode.view' => __DIR__.'/../view/form/ats-mode.view.phtml',
312
+            'jobs/form/ats-mode.form' => __DIR__.'/../view/form/ats-mode.form.phtml',
313
+            'jobs/form/company-name-fieldset' => __DIR__.'/../view/form/company-name-fieldset.phtml',
314
+            'jobs/form/preview' => __DIR__.'/../view/form/preview.phtml',
315
+            'jobs/form/customer-note' => __DIR__.'/../view/form/customer-note.phtml',
316
+            'jobs/partials/channel-list' => __DIR__.'/../view/partials/channel-list.phtml',
317
+            'jobs/assign-user' => __DIR__.'/../view/jobs/manage/assign-user.phtml',
318
+            'jobs/snapshot_or_preview' => __DIR__.'/../view/partials/snapshot_or_preview.phtml',
319
+            'jobs/history' => __DIR__.'/../view/partials/history.phtml',
320
+            'jobs/portalsummary' => __DIR__.'/../view/partials/portalsummary.phtml',
321
+            'content/jobs-publish-on-yawik' => __DIR__.'/../view/modals/yawik.phtml',
322
+            'content/jobs-publish-on-jobsintown' => __DIR__.'/../view/modals/jobsintown.phtml',
323
+            'content/jobs-publish-on-homepage' => __DIR__.'/../view/modals/homepage.phtml',
324
+            'content/jobs-publish-on-fazjob' => __DIR__.'/../view/modals/fazjob.phtml',
325
+            'content/jobs-terms-and-conditions' => __DIR__.'/../view/jobs/index/terms.phtml',
326
+            'mail/job-created' => __DIR__.'/../view/mails/job-created.phtml',
327
+            'mail/job-pending' => __DIR__.'/../view/mails/job-pending.phtml',
328
+            'mail/job-accepted' => __DIR__.'/../view/mails/job-accepted.phtml',
329
+            'mail/job-rejected' => __DIR__.'/../view/mails/job-rejected.phtml',
330
+            'mail/job-created.en' => __DIR__.'/../view/mails/job-created.en.phtml',
331
+            'mail/job-pending.en' => __DIR__.'/../view/mails/job-pending.en.phtml',
332
+            'mail/job-accepted.en' => __DIR__.'/../view/mails/job-accepted.en.phtml',
333
+            'mail/job-rejected.en' => __DIR__.'/../view/mails/job-rejected.en.phtml',
334
+            'jobs/error/no-parent' => __DIR__.'/../view/error/no-parent.phtml',
335
+            'jobs/error/expired' => __DIR__.'/../view/error/expired.phtml',
336 336
         ],
337 337
 
338 338
         // Where to look for view templates not mapped above
339 339
         'template_path_stack' => [
340
-            __DIR__ . '/../view',
340
+            __DIR__.'/../view',
341 341
         ],
342 342
     ],
343 343
 
Please login to merge, or discard this patch.