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 (#61)
by Marc
02:33
created
src/Service/JobValidator/ValidatorFactory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 namespace Chapi\Service\JobValidator;
11 11
 
12 12
 
13
-use Chapi\Entity\Chronos\JobEntity;
14 13
 use Chapi\Service\JobValidator\PropertyValidator\Command;
15 14
 use Chapi\Service\JobValidator\PropertyValidator\Constraints;
16 15
 use Chapi\Service\JobValidator\PropertyValidator\Container;
Please login to merge, or discard this patch.
src/Service/JobValidator/PropertyValidator/Epsilon.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,9 +57,11 @@  discard block
 block discarded – undo
57 57
                 $_oDateIntervalEpsilon = new \DateInterval($oJobEntity->epsilon);
58 58
                 $_iIntervalEpsilon = (int) $_oDateIntervalEpsilon->format('%Y%M%D%H%I%S');
59 59
 
60
-                if ($_iIntervalEpsilon > 30) // if epsilon > "PT30S"
60
+                if ($_iIntervalEpsilon > 30) {
61
+                    // if epsilon > "PT30S"
61 62
                 {
62 63
                     $_oIso8601Entity = $this->oDatePeriodFactory->createIso8601Entity($oJobEntity->schedule);
64
+                }
63 65
 
64 66
                     $_oDateIntervalScheduling = new \DateInterval($_oIso8601Entity->sInterval);
65 67
                     $_iIntervalScheduling = (int) $_oDateIntervalScheduling->format('%Y%M%D%H%I%S');
@@ -69,8 +71,7 @@  discard block
 block discarded – undo
69 71
 
70 72
                 // if epsilon is less or equal than 30sec the not empty check is enough
71 73
                 return true;
72
-            }
73
-            catch (\Exception $_oException)
74
+            } catch (\Exception $_oException)
74 75
             {
75 76
                 // can't init \DateInterval instance
76 77
                 return false;
Please login to merge, or discard this patch.
src/Service/JobValidator/PropertyValidator/Schedule.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@
 block discarded – undo
62 62
             {
63 63
                 $_oDataPeriod = $this->oDatePeriodFactory->createDatePeriod($oJobEntity->schedule, $oJobEntity->scheduleTimeZone);
64 64
                 return (false !== $_oDataPeriod);
65
-            }
66
-            catch (\Exception $oException)
65
+            } catch (\Exception $oException)
67 66
             {
68 67
                 // invalid: Iso8601 is not valid and/or DatePeriodFactory is able to create a valid DatePeriod
69 68
             }
Please login to merge, or discard this patch.