Passed
Push — develop ( 86ca6f...0e6a78 )
by Mathias
22:00 queued 14:21
created
module/Cv/test/CvTest/Paginator/PaginatorFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         '@testSetterAndGetter' => PaginatorFactoryMock::class,
33 33
     ];
34 34
 
35
-    private $inheritance = [ PaginatorFactoryAbstract::class ];
35
+    private $inheritance = [PaginatorFactoryAbstract::class];
36 36
 
37 37
     private $properties = [
38 38
         ['filter', ['default' => 'Cv/PaginationQuery']],
Please login to merge, or discard this patch.
module/Cv/test/TestConfig.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $modules = array_merge(
3
-	include_once __DIR__.'/../../../config/common.modules.php',
4
-	[
5
-		'Install',
6
-		'Core',
7
-		'Auth',
8
-		'Jobs',
9
-		'Geo',
10
-		'Cv',
11
-		'Settings',
12
-		'Applications',
13
-		'Organizations',
14
-	]
3
+    include_once __DIR__.'/../../../config/common.modules.php',
4
+    [
5
+        'Install',
6
+        'Core',
7
+        'Auth',
8
+        'Jobs',
9
+        'Geo',
10
+        'Cv',
11
+        'Settings',
12
+        'Applications',
13
+        'Organizations',
14
+    ]
15 15
 );
16 16
 return array(
17 17
     // This should be an array of module namespaces used in the application.
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         // modules are loaded. These effectively overide configuration
33 33
         // provided by modules themselves. Paths may use GLOB_BRACE notation.
34 34
         'config_glob_paths' => array(
35
-              __DIR__  . '/../../../test/config/{,*.}{global,local}.php',
35
+                __DIR__  . '/../../../test/config/{,*.}{global,local}.php',
36 36
         ),
37 37
 
38 38
         // Whether or not to enable a configuration cache.
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     //     ),
71 71
     // )
72 72
 
73
-   // Initial configuration with which to seed the ServiceManager.
74
-   // Should be compatible with Zend\ServiceManager\Config.
75
-   // 'service_manager' => array(),
73
+    // Initial configuration with which to seed the ServiceManager.
74
+    // Should be compatible with Zend\ServiceManager\Config.
75
+    // 'service_manager' => array(),
76 76
 );
77 77
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         // modules are loaded. These effectively overide configuration
33 33
         // provided by modules themselves. Paths may use GLOB_BRACE notation.
34 34
         'config_glob_paths' => array(
35
-              __DIR__  . '/../../../test/config/{,*.}{global,local}.php',
35
+              __DIR__.'/../../../test/config/{,*.}{global,local}.php',
36 36
         ),
37 37
 
38 38
         // Whether or not to enable a configuration cache.
Please login to merge, or discard this patch.
module/Geo/test/Bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** @var array $testConfig */
4
-$testConfig = include __DIR__ . '/TestConfig.php';
4
+$testConfig = include __DIR__.'/TestConfig.php';
5 5
 
6
-require_once __DIR__ . '/../../../test/Bootstrap.php';
6
+require_once __DIR__.'/../../../test/Bootstrap.php';
Please login to merge, or discard this patch.
module/Cv/test/Bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** @var array $testConfig */
4
-$testConfig = include __DIR__ . '/TestConfig.php';
4
+$testConfig = include __DIR__.'/TestConfig.php';
5 5
 
6
-require_once __DIR__ . '/../../../test/Bootstrap.php';
6
+require_once __DIR__.'/../../../test/Bootstrap.php';
Please login to merge, or discard this patch.
module/Jobs/src/Entity/Decorator/JsonLdProvider.php 1 patch
Spacing   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             $dateEnd->add(new \DateInterval("P180D"));
59 59
             $dateEnd = $dateEnd->format('Y-m-d H:i:s');
60 60
         }
61
-        $array=[
61
+        $array = [
62 62
             '@context'=>'http://schema.org/',
63 63
             '@type' => 'JobPosting',
64 64
             'title' => $this->job->getTitle(),
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     private function getLocations($locations)
96 96
     {
97
-        $array=[];
97
+        $array = [];
98 98
         foreach ($locations as $location) { /* @var \Core\Entity\LocationInterface $location */
99 99
             array_push(
100 100
                 $array,
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
                     '@type' => 'Place',
103 103
                     'address' => [
104 104
                         '@type' => 'PostalAddress',
105
-                        'streetAddress' => $location->getStreetname() .' '.$location->getStreetnumber(),
105
+                        'streetAddress' => $location->getStreetname().' '.$location->getStreetnumber(),
106 106
                         'postalCode' => $location->getPostalCode(),
107 107
                         'addressLocality' => $location->getCity(),
108 108
                         'addressCountry' => $location->getCountry(),
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     private function getDescription(TemplateValuesInterface $values)
125 125
     {
126
-        $description=sprintf(
126
+        $description = sprintf(
127 127
             "<p>%s</p>".
128 128
             "<h1>%s</h1>".
129 129
             "<h3>Requirements</h3><p>%s</p>".
@@ -148,7 +148,6 @@  discard block
 block discarded – undo
148 148
         $salary = $this->job->getSalary();
149 149
 
150 150
         return ($salary && !is_null($salary->getValue())) ?
151
-            ($salary->getValue() . ' ' . $salary->getCurrency() . '/' . $salary->getUnit()) :
152
-            /*@translate*/ 'Undefined';
151
+            ($salary->getValue().' '.$salary->getCurrency().'/'.$salary->getUnit()) : /*@translate*/ 'Undefined';
153 152
     }
154 153
 }
Please login to merge, or discard this patch.
module/Jobs/config/module.config.php 1 patch
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
                  * for multiple paths.
23 23
                  * example https://github.com/doctrine/DoctrineORMModule
24 24
                  */
25
-                'paths' => [ __DIR__ . '/../src/Entity'],
25
+                'paths' => [__DIR__.'/../src/Entity'],
26 26
             ],
27 27
         ],
28 28
         'eventmanager' => [
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
     ],
36 36
 
37 37
     'options' => [
38
-        'Jobs/JobboardSearchOptions' => [ 'class' => '\Jobs\Options\JobboardSearchOptions' ],
39
-        'Jobs/BaseFieldsetOptions' => [ 'class' => '\Jobs\Options\BaseFieldsetOptions' ],
38
+        'Jobs/JobboardSearchOptions' => ['class' => '\Jobs\Options\JobboardSearchOptions'],
39
+        'Jobs/BaseFieldsetOptions' => ['class' => '\Jobs\Options\BaseFieldsetOptions'],
40 40
     ],
41 41
 
42 42
     'Jobs' => [
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             'translation_file_patterns' => [
59 59
                     [
60 60
                             'type'     => 'gettext',
61
-                            'base_dir' => __DIR__ . '/../language',
61
+                            'base_dir' => __DIR__.'/../language',
62 62
                             'pattern'  => '%s.mo',
63 63
                     ],
64 64
             ],
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                     'Jobboard',
99 99
                     'Jobs/Jobboard',
100 100
                     'Jobs/ApiJobListByChannel',
101
-                    'Jobs/Template' => [ 'view', 'edittemplate' ],
101
+                    'Jobs/Template' => ['view', 'edittemplate'],
102 102
                     'Jobs/Manage' => [
103 103
                         'template',
104 104
                     ],
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
             'Jobs/Listener/AdminWidgetProvider'           => 'Jobs\Factory\Listener\AdminWidgetProviderFactory',
227 227
             'Jobs/ViewModelTemplateFilter'                => 'Jobs\Factory\Filter\ViewModelTemplateFilterFactory',
228 228
             'Jobs\Model\ApiJobDehydrator'                 => 'Jobs\Factory\Model\ApiJobDehydratorFactory',
229
-            'Jobs/Listener/Publisher'                     => [Publisher::class,'factory'],
229
+            'Jobs/Listener/Publisher'                     => [Publisher::class, 'factory'],
230 230
             'Jobs/PreviewLinkHydrator'                    => 'Jobs\Form\Hydrator\PreviewLinkHydrator::factory',
231 231
             'Jobs\Auth\Dependency\ListListener'           => 'Jobs\Factory\Auth\Dependency\ListListenerFactory',
232 232
             'Jobs/DefaultCategoriesBuilder'              => 'Jobs\Factory\Repository\DefaultCategoriesBuilderFactory',
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 
244 244
 
245 245
     'event_manager' => [
246
-        'Core/AdminController/Events' => [ 'listeners' => [
246
+        'Core/AdminController/Events' => ['listeners' => [
247 247
             'Jobs/Listener/AdminWidgetProvider' => \Core\Controller\AdminControllerEvent::EVENT_DASHBOARD,
248 248
         ]],
249 249
 
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
         'Core/Ajax/Events' => ['listeners' => [
267 267
             \Jobs\Listener\DeleteJob::class => ['jobs.delete', true],
268 268
             \Jobs\Listener\GetOrganizationManagers::class => ['jobs.manager-select', true],
269
-            \Jobs\Listener\LoadActiveOrganizations::class => [ 'jobs.admin.activeorganizations', true],
269
+            \Jobs\Listener\LoadActiveOrganizations::class => ['jobs.admin.activeorganizations', true],
270 270
 
271 271
         ]],
272 272
 
@@ -292,10 +292,10 @@  discard block
 block discarded – undo
292 292
             'Jobs/ApiJobListByChannel' => 'Jobs\Controller\ApiJobListByChannelController',
293 293
         ],
294 294
         'factories' => [
295
-            'Jobs/Import' => [ Controller\ImportController::class, 'factory'],
296
-            'Jobs/Console' => [ConsoleController::class,'factory'],
297
-            'Jobs/AdminCategories' => [AdminCategoriesController::class,'factory'],
298
-            'Jobs/Admin'      => [AdminController::class,'factory'],
295
+            'Jobs/Import' => [Controller\ImportController::class, 'factory'],
296
+            'Jobs/Console' => [ConsoleController::class, 'factory'],
297
+            'Jobs/AdminCategories' => [AdminCategoriesController::class, 'factory'],
298
+            'Jobs/Admin'      => [AdminController::class, 'factory'],
299 299
             'Jobs/Template' => 'Jobs\Factory\Controller\TemplateControllerFactory',
300 300
             'Jobs/Index' => 'Jobs\Factory\Controller\IndexControllerFactory',
301 301
             'Jobs/Approval' => 'Jobs\Factory\Controller\ApprovalControllerFactory',
@@ -328,42 +328,42 @@  discard block
 block discarded – undo
328 328
     'view_manager' => [
329 329
         // Map template to files. Speeds up the lookup through the template stack.
330 330
         'template_map' => [
331
-            'jobs/form/list-filter' => __DIR__ . '/../view/form/list-filter.phtml',
332
-            'jobs/form/apply-identifier' => __DIR__ . '/../view/form/apply-identifier.phtml',
333
-            'jobs/form/hiring-organization-select' => __DIR__ . '/../view/form/hiring-organization-select.phtml',
334
-            'jobs/form/multiposting-select' => __DIR__ . '/../view/form/multiposting-select.phtml',
335
-            'jobs/form/multiposting-checkboxes' => __DIR__ . '/../view/form/multiposting-checkboxes.phtml',
336
-            'jobs/form/ats-mode.view' => __DIR__ . '/../view/form/ats-mode.view.phtml',
337
-            'jobs/form/ats-mode.form' => __DIR__ . '/../view/form/ats-mode.form.phtml',
338
-            'jobs/form/salary-fieldset' => __DIR__ . '/../view/form/salary-fieldset.phtml',
339
-            'jobs/form/company-name-fieldset' => __DIR__ . '/../view/form/company-name-fieldset.phtml',
340
-            'jobs/form/preview' => __DIR__ . '/../view/form/preview.phtml',
341
-            'jobs/form/customer-note' => __DIR__ . '/../view/form/customer-note.phtml',
342
-            'jobs/partials/channel-list' => __DIR__ . '/../view/partials/channel-list.phtml',
343
-            'jobs/assign-user' => __DIR__ . '/../view/jobs/manage/assign-user.phtml',
344
-            'jobs/snapshot_or_preview' => __DIR__ . '/../view/partials/snapshot_or_preview.phtml',
345
-            'jobs/history' => __DIR__ . '/../view/partials/history.phtml',
346
-            'jobs/portalsummary' => __DIR__ . '/../view/partials/portalsummary.phtml',
347
-            'content/jobs-publish-on-yawik' => __DIR__ . '/../view/modals/yawik.phtml',
348
-            'content/jobs-publish-on-jobsintown' => __DIR__ . '/../view/modals/jobsintown.phtml',
349
-            'content/jobs-publish-on-homepage' => __DIR__ . '/../view/modals/homepage.phtml',
350
-            'content/jobs-publish-on-fazjob' => __DIR__ . '/../view/modals/fazjob.phtml',
351
-            'content/jobs-terms-and-conditions' => __DIR__ . '/../view/jobs/index/terms.phtml',
352
-            'mail/job-created' => __DIR__ . '/../view/mails/job-created.phtml',
353
-            'mail/job-pending' => __DIR__ . '/../view/mails/job-pending.phtml',
354
-            'mail/job-accepted' => __DIR__ . '/../view/mails/job-accepted.phtml',
355
-            'mail/job-rejected' => __DIR__ . '/../view/mails/job-rejected.phtml',
356
-            'mail/job-created.en' => __DIR__ . '/../view/mails/job-created.en.phtml',
357
-            'mail/job-pending.en' => __DIR__ . '/../view/mails/job-pending.en.phtml',
358
-            'mail/job-accepted.en' => __DIR__ . '/../view/mails/job-accepted.en.phtml',
359
-            'mail/job-rejected.en' => __DIR__ . '/../view/mails/job-rejected.en.phtml',
360
-            'jobs/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml',
361
-            'jobs/error/expired' => __DIR__ . '/../view/error/expired.phtml',
331
+            'jobs/form/list-filter' => __DIR__.'/../view/form/list-filter.phtml',
332
+            'jobs/form/apply-identifier' => __DIR__.'/../view/form/apply-identifier.phtml',
333
+            'jobs/form/hiring-organization-select' => __DIR__.'/../view/form/hiring-organization-select.phtml',
334
+            'jobs/form/multiposting-select' => __DIR__.'/../view/form/multiposting-select.phtml',
335
+            'jobs/form/multiposting-checkboxes' => __DIR__.'/../view/form/multiposting-checkboxes.phtml',
336
+            'jobs/form/ats-mode.view' => __DIR__.'/../view/form/ats-mode.view.phtml',
337
+            'jobs/form/ats-mode.form' => __DIR__.'/../view/form/ats-mode.form.phtml',
338
+            'jobs/form/salary-fieldset' => __DIR__.'/../view/form/salary-fieldset.phtml',
339
+            'jobs/form/company-name-fieldset' => __DIR__.'/../view/form/company-name-fieldset.phtml',
340
+            'jobs/form/preview' => __DIR__.'/../view/form/preview.phtml',
341
+            'jobs/form/customer-note' => __DIR__.'/../view/form/customer-note.phtml',
342
+            'jobs/partials/channel-list' => __DIR__.'/../view/partials/channel-list.phtml',
343
+            'jobs/assign-user' => __DIR__.'/../view/jobs/manage/assign-user.phtml',
344
+            'jobs/snapshot_or_preview' => __DIR__.'/../view/partials/snapshot_or_preview.phtml',
345
+            'jobs/history' => __DIR__.'/../view/partials/history.phtml',
346
+            'jobs/portalsummary' => __DIR__.'/../view/partials/portalsummary.phtml',
347
+            'content/jobs-publish-on-yawik' => __DIR__.'/../view/modals/yawik.phtml',
348
+            'content/jobs-publish-on-jobsintown' => __DIR__.'/../view/modals/jobsintown.phtml',
349
+            'content/jobs-publish-on-homepage' => __DIR__.'/../view/modals/homepage.phtml',
350
+            'content/jobs-publish-on-fazjob' => __DIR__.'/../view/modals/fazjob.phtml',
351
+            'content/jobs-terms-and-conditions' => __DIR__.'/../view/jobs/index/terms.phtml',
352
+            'mail/job-created' => __DIR__.'/../view/mails/job-created.phtml',
353
+            'mail/job-pending' => __DIR__.'/../view/mails/job-pending.phtml',
354
+            'mail/job-accepted' => __DIR__.'/../view/mails/job-accepted.phtml',
355
+            'mail/job-rejected' => __DIR__.'/../view/mails/job-rejected.phtml',
356
+            'mail/job-created.en' => __DIR__.'/../view/mails/job-created.en.phtml',
357
+            'mail/job-pending.en' => __DIR__.'/../view/mails/job-pending.en.phtml',
358
+            'mail/job-accepted.en' => __DIR__.'/../view/mails/job-accepted.en.phtml',
359
+            'mail/job-rejected.en' => __DIR__.'/../view/mails/job-rejected.en.phtml',
360
+            'jobs/error/no-parent' => __DIR__.'/../view/error/no-parent.phtml',
361
+            'jobs/error/expired' => __DIR__.'/../view/error/expired.phtml',
362 362
         ],
363 363
 
364 364
         // Where to look for view templates not mapped above
365 365
         'template_path_stack' => [
366
-            __DIR__ . '/../view',
366
+            __DIR__.'/../view',
367 367
         ],
368 368
     ],
369 369
 
Please login to merge, or discard this patch.
test/OrganizationsTest/Factory/Auth/Dependency/ListListenerFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,6 +44,6 @@
 block discarded – undo
44 44
             ->willReturn($repositories);
45 45
         
46 46
         $listListenerFactory = new ListListenerFactory();
47
-        $this->assertInstanceOf(ListListener::class, $listListenerFactory->__invoke($serviceLocator,'irrelevant'));
47
+        $this->assertInstanceOf(ListListener::class, $listListenerFactory->__invoke($serviceLocator, 'irrelevant'));
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
Organizations/test/OrganizationsTest/Auth/Dependency/ListListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
             ->with($this->equalTo($userId), $this->equalTo($limit))
140 140
             ->willReturn($cursor);
141 141
         
142
-        $actual = $this->listListener->getItems($user, $view , $limit);
142
+        $actual = $this->listListener->getItems($user, $view, $limit);
143 143
         
144 144
         $this->assertInternalType('array', $actual);
145 145
         $this->assertCount(1, $actual);
Please login to merge, or discard this patch.
module/Applications/test/Bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** @var array $testConfig */
4
-$testConfig = include __DIR__ . '/TestConfig.php';
4
+$testConfig = include __DIR__.'/TestConfig.php';
5 5
 
6
-require_once __DIR__ . '/../../../test/Bootstrap.php';
6
+require_once __DIR__.'/../../../test/Bootstrap.php';
Please login to merge, or discard this patch.