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.
Passed
Push — develop ( 3f084e...60203c )
by Toby
04:51
created
app/CompletionConditions/RequiredPositionsFilled.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             return false;
46 46
         }
47 47
        
48
-       return count($remainingPositions) === 0;
48
+        return count($remainingPositions) === 0;
49 49
     }
50 50
     
51 51
     public function percentage($settings, ActivityInstance $activityInstance, ModuleInstance $moduleInstance): int
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,15 +59,15 @@  discard block
 block discarded – undo
59 59
             return false;
60 60
         }
61 61
         
62
-        if(count($requiredPositions) === 0) {
62
+        if (count($requiredPositions) === 0) {
63 63
             return 100;
64 64
         }
65 65
         
66 66
         $filled = count($requiredPositions) - count($remainingPositions);
67 67
         
68
-        $percentage = (int) round(($filled/count($requiredPositions)) * 100, 0);
68
+        $percentage = (int) round(($filled / count($requiredPositions)) * 100, 0);
69 69
 
70
-        if($percentage > 100) {
70
+        if ($percentage > 100) {
71 71
             return 100;
72 72
         }
73 73
         return $percentage;
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      */
153 153
     private function getGroup(ActivityInstance $activityInstance)
154 154
     {
155
-        if($activityInstance->resource_type === 'group') {
155
+        if ($activityInstance->resource_type === 'group') {
156 156
             return $activityInstance->participant();
157 157
         }
158 158
         return $activityInstance->participant()->group();
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     private function rolesThroughGroup(Group $group, ModuleInstance $moduleInstance)
167 167
     {
168 168
         $roles = $group->roles();
169
-        if($this->logicGroupId($moduleInstance) !== null) {
169
+        if ($this->logicGroupId($moduleInstance) !== null) {
170 170
             $logicGroup = app(LogicRepository::class)->getById($this->logicGroupId($moduleInstance));
171 171
             return $roles->filter(function(\BristolSU\ControlDB\Contracts\Models\Role $role) use ($moduleInstance, $logicGroup) {
172 172
                 return LogicTester::evaluate($logicGroup, null, $role->group(), $role);
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     private function logicGroupId(ModuleInstance $moduleInstance)
179 179
     {
180 180
         $id = $moduleInstance->setting('logic_group', null);
181
-        if($id === null) {
181
+        if ($id === null) {
182 182
             return null;
183 183
         }
184 184
         return (int) $id;
Please login to merge, or discard this patch.
app/Support/RequiredSettingRetrieval.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
 
36 36
     public function getSettings(Group $group, array $settings, ModuleInstance $moduleInstance)
37 37
     {
38
-        if(Cache::has($this->getCacheKey($group, $moduleInstance))) {
38
+        if (Cache::has($this->getCacheKey($group, $moduleInstance))) {
39 39
             return Cache::get($this->getCacheKey($group, $moduleInstance));
40 40
         }
41
-        foreach ((array_key_exists('required', $settings)?$settings['required']:[]) as $setting) {
41
+        foreach ((array_key_exists('required', $settings) ? $settings['required'] : []) as $setting) {
42 42
             if ($this->groupIsForSetting($group, $setting)) {
43 43
                 Cache::put($this->getCacheKey($group, $moduleInstance), $setting['required'], 7200);
44 44
                 return $setting['required'];
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
     protected function getCacheKey(Group $group, ModuleInstance $moduleInstance)
51 51
     {
52
-        return RequiredSettingRetrieval::class . '.' . $moduleInstance->id() . '.' . $group->id();
52
+        return RequiredSettingRetrieval::class.'.'.$moduleInstance->id().'.'.$group->id();
53 53
     }
54 54
     
55 55
     protected function groupIsForSetting(Group $group, array $setting): bool
Please login to merge, or discard this patch.
app/Support/PositionSettingRetrieval.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,10 +65,10 @@
 block discarded – undo
65 65
     protected function getCacheKey(Group $group)
66 66
     {
67 67
         $moduleInstance = app(ModuleInstance::class);
68
-        if($moduleInstance->exists) {
69
-            throw new \Exception('Module instance was used in ' . static::class . ' but was not bound to the container');
68
+        if ($moduleInstance->exists) {
69
+            throw new \Exception('Module instance was used in '.static::class.' but was not bound to the container');
70 70
         }
71
-        return PositionSettingRetrieval::class . '.' . $moduleInstance->id() . '.' . $group->id();
71
+        return PositionSettingRetrieval::class.'.'.$moduleInstance->id().'.'.$group->id();
72 72
     }
73 73
     
74 74
     public function parse($setting)
Please login to merge, or discard this patch.