Passed
Push — master ( c58a40...6d37ad )
by Mathias
10:02 queued 04:27
created
module/Core/test/CoreConfig.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     //     ),
65 65
     // )
66 66
 
67
-   // Initial configuration with which to seed the ServiceManager.
68
-   // Should be compatible with Laminas\ServiceManager\Config.
69
-   // 'service_manager' => array(),
67
+    // Initial configuration with which to seed the ServiceManager.
68
+    // Should be compatible with Laminas\ServiceManager\Config.
69
+    // 'service_manager' => array(),
70 70
 );
Please login to merge, or discard this patch.
public/router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 if (false === strpos($_SERVER['REQUEST_URI'], '.')
4
-    || is_file($_SERVER['DOCUMENT_ROOT'] . '/' . $_SERVER['SCRIPT_NAME'])
4
+    || is_file($_SERVER['DOCUMENT_ROOT'].'/'.$_SERVER['SCRIPT_NAME'])
5 5
 ) {
6 6
     return false;
7 7
 }
8 8
 
9 9
 $_SERVER['SCRIPT_NAME'] = '/index.php';
10
-require __DIR__ . "/index.php";
11 10
\ No newline at end of file
11
+require __DIR__."/index.php";
12 12
\ No newline at end of file
Please login to merge, or discard this patch.
module/Core/test/CoreTest/View/Helper/FormatLocationTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -38,18 +38,18 @@
 block discarded – undo
38 38
         static::assertTrue(is_a(FormatLocation::class, AbstractHelper::class, true));
39 39
     }
40 40
 
41
-    private function getLocation($prefix='')
41
+    private function getLocation($prefix = '')
42 42
     {
43 43
         $location = new class extends AbstractLocation implements LocationInterface
44 44
         {  };
45 45
 
46
-        $location->setStreetname($prefix . 'TestStreet');
47
-        $location->setStreetnumber($prefix . '1234');
48
-        $location->setCity($prefix . 'TestCity');
49
-        $location->setCoordinates(new Point([1,1]));
50
-        $location->setCountry($prefix . 'TestCountry');
51
-        $location->setPostalCode($prefix . 'ZipCode');
52
-        $location->setRegion($prefix . 'TestRegion');
46
+        $location->setStreetname($prefix.'TestStreet');
47
+        $location->setStreetnumber($prefix.'1234');
48
+        $location->setCity($prefix.'TestCity');
49
+        $location->setCoordinates(new Point([1, 1]));
50
+        $location->setCountry($prefix.'TestCountry');
51
+        $location->setPostalCode($prefix.'ZipCode');
52
+        $location->setRegion($prefix.'TestRegion');
53 53
 
54 54
         return $location;
55 55
     }
Please login to merge, or discard this patch.
module/Jobs/src/Factory/Form/Hydrator/OrganizationNameHydratorFactory.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * @filesource
6 6
  * @copyright https://yawik.org/COPYRIGHT.php
7 7
  * @license   MIT
8
-  */
8
+ */
9 9
 
10 10
 namespace Jobs\Factory\Form\Hydrator;
11 11
 
Please login to merge, or discard this patch.
module/Applications/src/Listener/EventApplicationCreated.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                         [
91 91
                             'application' => $this->application,
92 92
                             'user' => $employee->getUser(),
93
-                            'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null,
93
+                            'bcc' => $adminSettings->getMailBCC() ? [$admin] : null,
94 94
                         ]
95 95
                     );
96 96
                 }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                     [
112 112
                         'application' => $this->application,
113 113
                         'user' => $recruiter->getUser(),
114
-                        'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null,
114
+                        'bcc' => $adminSettings->getMailBCC() ? [$admin] : null,
115 115
                     ]
116 116
                 );
117 117
             }
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                 [
127 127
                     'job'   => $this->application->getJob(),
128 128
                     'user'  => $recruiter,
129
-                    'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null,
129
+                    'bcc' => $adminSettings->getMailBCC() ? [$admin] : null,
130 130
                 ]
131 131
             );
132 132
         }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
                     [
144 144
                         'application' => $this->application,
145 145
                         'body'        => $ackBody,
146
-                        'bcc'         => $adminSettings->getMailBCC() ? [ $admin ] : null,
146
+                        'bcc'         => $adminSettings->getMailBCC() ? [$admin] : null,
147 147
                     ]
148 148
                 );
149 149
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/View/Helper/ProxyTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         ],
52 52
     ];
53 53
 
54
-    private $inheritance = [ AbstractHelper::class ];
54
+    private $inheritance = [AbstractHelper::class];
55 55
 
56 56
     /**
57 57
      *
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
         $actual = $this->target->plugin('helper');
148 148
         $this->assertInstanceOf(Proxy\HelperProxy::class, $actual);
149
-        $this->assertSame($helper,$actual->helper());
149
+        $this->assertSame($helper, $actual->helper());
150 150
     }
151 151
 
152 152
     public function testPluginPassesOptionsToHelperManager()
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
         $this->target->plugin('helper', $options);
162 162
 
163
-        $count = $this->helperManager->getCallCount('get','helper',$options);
163
+        $count = $this->helperManager->getCallCount('get', 'helper', $options);
164 164
         $this->assertEquals(1, $count);
165 165
         $this->assertTrue($this->target->exists('helper'));
166 166
     }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Mail/HTMLTemplateMessageTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
         $view
211 211
             ->expects($this->once())
212 212
             ->method('render')
213
-            ->with($this->callback(function (ViewModel $subject) {
213
+            ->with($this->callback(function(ViewModel $subject) {
214 214
                 return $subject->getTemplate() === 'template.en';
215 215
             }));
216 216
         $target->getBodyText();
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
         $view
232 232
             ->expects($this->once())
233 233
             ->method('render')
234
-            ->with($this->callback(function (ViewModel $subject) {
234
+            ->with($this->callback(function(ViewModel $subject) {
235 235
                 return $subject->getTemplate() === 'template';
236 236
             }));
237 237
         $target->getBodyText();
Please login to merge, or discard this patch.
module/Jobs/src/Controller/ConsoleController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
         }
59 59
 
60 60
         $date = new \DateTime('today');
61
-        $date->sub(new \DateInterval('P' . $days . 'D'));
61
+        $date->sub(new \DateInterval('P'.$days.'D'));
62 62
 
63
-        $query        = [
63
+        $query = [
64 64
             '$and' => [
65 65
                 ['status.name' => StatusInterface::ACTIVE],
66 66
                 ['$or' => [
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         if ($info) {
90 90
             $output = count($jobs).' Jobs';
91 91
             if ($offset) {
92
-                $output .= ' starting from ' . $offset;
92
+                $output .= ' starting from '.$offset;
93 93
             }
94 94
             $console->writeLine($output, ConsoleColor::YELLOW);
95 95
             $this->listExpiredJobs($jobs);
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 //
103 103
         $console->writeLine("$count jobs found, which have to expire ...\n", ConsoleColor::GREEN);
104 104
 
105
-        $progress     = new ProgressBar(
105
+        $progress = new ProgressBar(
106 106
             new ConsoleAdapter(
107 107
                 array(
108 108
                 'elements' => array(
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
         /* @var \Jobs\Entity\Job $job */
127 127
         foreach ($jobs as $job) {
128
-            $progress->update($i++, 'Job ' . $i . ' / ' . $count);
128
+            $progress->update($i++, 'Job '.$i.' / '.$count);
129 129
 
130 130
             $job->changeStatus('expired');
131 131
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         $i            = 0;
154 154
         /* @var Job $job */
155 155
         foreach ($jobs as $job) {
156
-            $progress->update($i++, 'Job ' . $i . ' / ' . $count);
156
+            $progress->update($i++, 'Job '.$i.' / '.$count);
157 157
 
158 158
             $permissions = $job->getPermissions();
159 159
             $user        = $job->getUser();
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                 continue;
162 162
             }
163 163
             try {
164
-                $group       = $user->getGroup($job->getCompany());
164
+                $group = $user->getGroup($job->getCompany());
165 165
             } catch (\Exception $e) {
166 166
                 continue;
167 167
             }
@@ -201,10 +201,10 @@  discard block
 block discarded – undo
201 201
                 $org = $job->getCompany();
202 202
             }
203 203
 
204
-            $publishStart = is_null($job->getDatePublishStart()) ? 'N/A':$job->getDatePublishStart()->format('Y-m-d');
205
-            $publishEnd = is_null($job->getDatePublishEnd()) ? 'N/A':$job->getDatePublishEnd()->format('Y-m-d');
204
+            $publishStart = is_null($job->getDatePublishStart()) ? 'N/A' : $job->getDatePublishStart()->format('Y-m-d');
205
+            $publishEnd = is_null($job->getDatePublishEnd()) ? 'N/A' : $job->getDatePublishEnd()->format('Y-m-d');
206 206
             $output = sprintf(
207
-                '%s   %s   %s   %-30s   %-20s' . PHP_EOL,
207
+                '%s   %s   %s   %-30s   %-20s'.PHP_EOL,
208 208
                 $id,
209 209
                 $publishStart,
210 210
                 $publishEnd,
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Controller/ConsoleControllerTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
         $controller = $this->target;
65 65
         $controller->method('params')
66 66
             ->willReturnMap([
67
-                ['days',30],
68
-                ['limit',10],
69
-                ['info',true]
67
+                ['days', 30],
68
+                ['limit', 10],
69
+                ['info', true]
70 70
             ]);
71 71
 
72 72
         $job = new Job();
@@ -76,14 +76,14 @@  discard block
 block discarded – undo
76 76
 
77 77
         $jobRepo->expects($this->once())
78 78
             ->method('findBy')
79
-            ->with($this->isType('array'),null,10,0)
79
+            ->with($this->isType('array'), null, 10, 0)
80 80
             ->willReturn([$job]);
81 81
 
82 82
         $console->expects($this->exactly(2))
83 83
             ->method('writeLine')
84 84
             ->withConsecutive(
85
-                ['1 Jobs',4,null],
86
-                [$this->stringContains('some-id'),3,null]
85
+                ['1 Jobs', 4, null],
86
+                [$this->stringContains('some-id'), 3, null]
87 87
             );
88 88
 
89 89
         $controller->expireJobsAction();
Please login to merge, or discard this patch.