Completed
Push — master ( 0913ed...15a2b1 )
by Mathias
21s queued 15s
created
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.
module/Core/src/Form/View/Helper/FormDatePicker.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,14 +21,14 @@  discard block
 block discarded – undo
21 21
  */
22 22
 class FormDatePicker extends FormText
23 23
 {
24
-    const DEFAULT_DATE_FORMAT =  'yyyy-mm-dd';
24
+    const DEFAULT_DATE_FORMAT = 'yyyy-mm-dd';
25 25
 
26 26
     /**
27 27
      * Language of the datepicker
28 28
      *
29 29
      * @var string
30 30
      */
31
-    protected $language="de";
31
+    protected $language = "de";
32 32
 
33 33
     public function __invoke(ElementInterface $element = null)
34 34
     {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         /*
64 64
          *
65 65
          */
66
-        $markup = '<div class="input-group date">%s<div data-toggle="description" data-target="%s" class="input-group-addon" onClick="$(this).parent().find(\':input\').datepicker(\'show\')">' .
66
+        $markup = '<div class="input-group date">%s<div data-toggle="description" data-target="%s" class="input-group-addon" onClick="$(this).parent().find(\':input\').datepicker(\'show\')">'.
67 67
             '<i class="fa fa-calendar"></i></div></div><div class="checkbox"></div>';
68 68
         
69 69
         $markup = sprintf(
Please login to merge, or discard this patch.
module/Applications/src/Controller/ApiApplyController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                     ['force_canonical' => true],
94 94
                     true
95 95
                 )
96
-                . '?token=' . $user->getToken()
96
+                . '?token='.$user->getToken()
97 97
             ;
98 98
         }
99 99
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 
122 122
         return new JsonModel([
123 123
             'status' => 'error',
124
-            'message' => 'Invalid json data: ' . $e->getMessage()
124
+            'message' => 'Invalid json data: '.$e->getMessage()
125 125
         ]);
126 126
     }
127 127
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
         return new JsonModel([
135 135
             'status' => 'error',
136
-            'message' => 'No job found with apply id "' . $applyId . '"',
136
+            'message' => 'No job found with apply id "'.$applyId.'"',
137 137
         ]);
138 138
     }
139 139
 
Please login to merge, or discard this patch.
module/Applications/src/Entity/Hydrator/ApiApplicationHydratorFactory.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
         ?string $requestedName = null,
27 27
         ?array $options = null
28 28
     ): ApiApplicationHydrator {
29
-        $hydrator =  new ApiApplicationHydrator();
29
+        $hydrator = new ApiApplicationHydrator();
30 30
 
31 31
         $hydrator->setServerURl(
32 32
             $container->get('ViewHelperManager')->get('serverurl')->__invoke()
Please login to merge, or discard this patch.
module/Applications/src/Entity/Hydrator/ApiApplicationHydrator.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
         ;
90 90
         $data['attachments'] = [];
91 91
         foreach ($object->getAttachments() as $file) {
92
-           $data['attachments'][] = $this->serverUrl . $file->getUri();
92
+            $data['attachments'][] = $this->serverUrl . $file->getUri();
93 93
         }
94 94
 
95 95
         unset(
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,12 +84,12 @@
 block discarded – undo
84 84
         $data['contact'] = parent::extract($object->getContact());
85 85
         $data['contact']['image'] =
86 86
             $object->getContact()->getImage()
87
-            ? $this->serverUrl . $object->getContact()->getImage()->getUri()
87
+            ? $this->serverUrl.$object->getContact()->getImage()->getUri()
88 88
             : null
89 89
         ;
90 90
         $data['attachments'] = [];
91 91
         foreach ($object->getAttachments() as $file) {
92
-           $data['attachments'][] = $this->serverUrl . $file->getUri();
92
+           $data['attachments'][] = $this->serverUrl.$file->getUri();
93 93
         }
94 94
 
95 95
         unset(
Please login to merge, or discard this patch.