GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#44)
by Marc
05:59
created
src/BusinessCase/JobManagement/StoreJobBusinessCase.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -85,8 +85,7 @@  discard block
 block discarded – undo
85 85
                         'Job "%s" successfully added to chronos',
86 86
                         $_sJobName
87 87
                     ));
88
-                }
89
-                else
88
+                } else
90 89
                 {
91 90
                     $this->oLogger->error(sprintf(
92 91
                         'Failed to add job "%s" to chronos',
@@ -109,8 +108,7 @@  discard block
 block discarded – undo
109 108
                         'Job "%s" successfully removed from chronos',
110 109
                         $_sJobName
111 110
                     ));
112
-                }
113
-                else
111
+                } else
114 112
                 {
115 113
                     $this->oLogger->error(sprintf(
116 114
                         'Failed to remove job "%s" from chronos',
@@ -134,8 +132,7 @@  discard block
 block discarded – undo
134 132
                         'Job "%s" successfully updated in chronos',
135 133
                         $_sJobName
136 134
                     ));
137
-                }
138
-                else
135
+                } else
139 136
                 {
140 137
                     $this->oLogger->error(sprintf(
141 138
                         'Failed to update job "%s" in chronos',
@@ -154,8 +151,7 @@  discard block
 block discarded – undo
154 151
         if (empty($aJobNames))
155 152
         {
156 153
             $_aChronosJobs = $this->oJobRepositoryChronos->getJobs();
157
-        }
158
-        else
154
+        } else
159 155
         {
160 156
             $_aChronosJobs = [];
161 157
             foreach ($aJobNames as $_sJobName)
@@ -177,8 +173,7 @@  discard block
 block discarded – undo
177 173
                         'Job "%s" successfully stored in local repository',
178 174
                         $_oJobEntity->name
179 175
                     ));
180
-                }
181
-                else
176
+                } else
182 177
                 {
183 178
                     $this->oLogger->error(sprintf(
184 179
                         'Failed to store job "%s" in local repository',
@@ -209,8 +204,7 @@  discard block
 block discarded – undo
209 204
                         'Job "%s" successfully updated in local repository',
210 205
                         $_oJobEntity->name
211 206
                     ));
212
-                }
213
-                else
207
+                } else
214 208
                 {
215 209
                     $this->oLogger->error(sprintf(
216 210
                         'Failed to update job "%s" in local repository',
Please login to merge, or discard this patch.
src/Commands/DiffCommand.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@  discard block
 block discarded – undo
37 37
         if (!empty($_sJobName))
38 38
         {
39 39
             $this->printJobDiff($_sJobName);
40
-        }
41
-        else
40
+        } else
42 41
         {
43 42
             $_aLocalJobUpdates = $_oJobComparisonBusinessCase->getLocalJobUpdates();
44 43
             if (!empty($_aLocalJobUpdates))
@@ -76,12 +75,10 @@  discard block
 block discarded – undo
76 75
                 if ($_sDiffSign == '+')
77 76
                 {
78 77
                     $this->oOutput->writeln(sprintf("<info>%s\t%s: %s</info>", $_sDiffSign, $_sProperty, substr($_sDiffLine, 1)));
79
-                }
80
-                elseif ($_sDiffSign == '-')
78
+                } elseif ($_sDiffSign == '-')
81 79
                 {
82 80
                     $this->oOutput->writeln(sprintf("<fg=red>%s\t%s: %s</>", $_sDiffSign, $_sProperty, substr($_sDiffLine, 1)));
83
-                }
84
-                else
81
+                } else
85 82
                 {
86 83
                     $this->oOutput->writeln(sprintf("\t%s: %s", $_sProperty, $_sDiffLine));
87 84
                 }
Please login to merge, or discard this patch.
src/Commands/InfoCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,7 @@
 block discarded – undo
49 49
                 $_mValue = (!empty($_mValue))
50 50
                     ? '[ ' . implode(', ', $_mValue) . ' ]'
51 51
                     : '[ ]';
52
-            }
53
-            elseif (is_bool($_mValue))
52
+            } elseif (is_bool($_mValue))
54 53
             {
55 54
                 $_mValue = (true === $_mValue)
56 55
                     ? 'true'
Please login to merge, or discard this patch.
src/Commands/ResetCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,7 @@
 block discarded – undo
49 49
         if (JobUtils::isWildcard($aJobNames))
50 50
         {
51 51
             $_oJobIndexService->resetJobIndex();
52
-        }
53
-        else
52
+        } else
54 53
         {
55 54
             $_oJobIndexService->removeJobs($aJobNames);
56 55
         }
Please login to merge, or discard this patch.
src/Commands/SchedulingViewCommand.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -250,13 +250,11 @@  discard block
 block discarded – undo
250 250
                 {
251 251
                     $_sTimeline .= $this->parseTimeLineStrMark($_bPrintJobStart, $_bPrintJobEnd, $_bHasToCloseFinalTag, $_oTime->format('H>i'), $_oTime->format('H:i'));
252 252
 
253
-                }
254
-                else
253
+                } else
255 254
                 {
256 255
                     $_sTimeline .= $this->parseTimeLineStrMark($_bPrintJobStart, $_bPrintJobEnd, $_bHasToCloseFinalTag, str_repeat('>', 5), str_repeat($_sSpacer, 5));
257 256
                 }
258
-            }
259
-            else
257
+            } else
260 258
             {
261 259
                 $_sTimeline .= $this->parseTimeLineStrMark($_bPrintJobStart, $_bPrintJobEnd, $_bHasToCloseFinalTag, '>', $_sSpacer);
262 260
             }
@@ -284,18 +282,15 @@  discard block
 block discarded – undo
284 282
         if ($bPrintJobStart && $bPrintJobEnd)
285 283
         {
286 284
             $_sTimelineSnippet = sprintf('<comment>%s</comment>', $sStartStopMark);
287
-        }
288
-        elseif ($bPrintJobStart)
285
+        } elseif ($bPrintJobStart)
289 286
         {
290 287
             $_sTimelineSnippet = sprintf('<comment>%s', $sStartStopMark);
291 288
             $bHasToCloseFinalTag = true;
292
-        }
293
-        elseif ($bPrintJobEnd)
289
+        } elseif ($bPrintJobEnd)
294 290
         {
295 291
             $_sTimelineSnippet = sprintf('%s</comment>', $sStartStopMark);
296 292
             $bHasToCloseFinalTag = false;
297
-        }
298
-        else
293
+        } else
299 294
         {
300 295
             $_sTimelineSnippet = $sSpacer;
301 296
         }
Please login to merge, or discard this patch.
src/Component/DatePeriod/DatePeriodFactory.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@  discard block
 block discarded – undo
38 38
         try
39 39
         {
40 40
             return self::$aIso8601Entity[$_sKey] = new Iso8601Entity($sIso8601);
41
-        }
42
-        catch (\InvalidArgumentException $_oException)
41
+        } catch (\InvalidArgumentException $_oException)
43 42
         {
44 43
             throw new DatePeriodException(sprintf("Can't init Iso8601Entity for '%s' iso 8601 string.", $sIso8601), 1, $_oException);
45 44
         }
@@ -58,8 +57,7 @@  discard block
 block discarded – undo
58 57
         {
59 58
             $_oDateStart = new \DateTime(str_replace('Z', '', $_oIso8601Entity->sStartTime));
60 59
             $_oDateStart->setTimezone(new \DateTimeZone($sTimeZone));
61
-        }
62
-        else
60
+        } else
63 61
         {
64 62
             $_oDateStart = new \DateTime($_oIso8601Entity->sStartTime);
65 63
         }
Please login to merge, or discard this patch.
src/Component/Http/HttpGuzzlClient.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
51 51
             );
52 52
 
53 53
             return new HttpGuzzlResponse($_oResponse);
54
-        }
55
-        catch (\Exception $oException)
54
+        } catch (\Exception $oException)
56 55
         {
57 56
             throw new HttpConnectionException(
58 57
                 sprintf('Can\'t get response from "%s"', $this->oGuzzelClient->getBaseUrl() . $sUrl),
Please login to merge, or discard this patch.
src/Entity/Chronos/JobEntity.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,8 +87,7 @@  discard block
 block discarded – undo
87 87
                     $this->{$_sKey} = $_mValue;
88 88
                 }
89 89
             }
90
-        }
91
-        else
90
+        } else
92 91
         {
93 92
             throw new \InvalidArgumentException(sprintf('Argument 1 passed to "%s" must be an array or object', __METHOD__));
94 93
         }
@@ -136,8 +135,7 @@  discard block
 block discarded – undo
136 135
         if (!empty($this->schedule))
137 136
         {
138 137
             unset($_aReturn['parents']);
139
-        }
140
-        else
138
+        } else
141 139
         {
142 140
             unset($_aReturn['schedule']);
143 141
             unset($_aReturn['scheduleTimeZone']);
Please login to merge, or discard this patch.
src/Service/JobRepository/BridgeFileSystem.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -230,8 +230,7 @@
 block discarded – undo
230 230
                     // set path to job file map
231 231
                     $this->setJobFileToMap($_oJobEntity->name, $_sJobFilePath);
232 232
                 }
233
-            }
234
-            else
233
+            } else
235 234
             {
236 235
                 throw new JobLoadException(
237 236
                     sprintf('Unable to load json job data from "%s". Please check if the json is valid.', $_sJobFilePath),
Please login to merge, or discard this patch.