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 — dependabot/npm_and_yarn/http-p... ( f5b18d )
by
unknown
18:40 queued 10:11
created
app/Http/Controllers/Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     public function authorize($ability, $arguments = [])
18 18
     {
19 19
         return $this->baseAuthorize(
20
-            'static-page.' . $ability,
20
+            'static-page.'.$ability,
21 21
             $arguments
22 22
         );
23 23
     }
Please login to merge, or discard this patch.
app/CompletionConditions/HasViewedPage.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,17 +23,17 @@
 block discarded – undo
23 23
      */
24 24
     public function isComplete($settings, ActivityInstance $activityInstance, ModuleInstance $moduleInstance): bool
25 25
     {
26
-        return PageView::forResource($activityInstance->id, $moduleInstance->id)->count() >= ( $settings['number_of_views'] ?? 1);
26
+        return PageView::forResource($activityInstance->id, $moduleInstance->id)->count() >= ($settings['number_of_views'] ?? 1);
27 27
     }
28 28
 
29 29
     public function percentage($settings, ActivityInstance $activityInstance, ModuleInstance $moduleInstance): int
30 30
     {
31 31
         $count = PageView::forResource($activityInstance->id, $moduleInstance->id)->count();
32
-        $needed = ( $settings['number_of_views'] ?? 1);
32
+        $needed = ($settings['number_of_views'] ?? 1);
33 33
         
34
-        $percentage = (int) round(($count/$needed) * 100, 0);
34
+        $percentage = (int) round(($count / $needed) * 100, 0);
35 35
         
36
-        if($percentage > 100) {
36
+        if ($percentage > 100) {
37 37
             return 100;
38 38
         }
39 39
         return $percentage;
Please login to merge, or discard this patch.
app/CompletionConditions/HasClickedSubmit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
     public function percentage($settings, ActivityInstance $activityInstance, ModuleInstance $moduleInstance): int
31 31
     {
32
-        if($this->isComplete($settings, $activityInstance, $moduleInstance)) {
32
+        if ($this->isComplete($settings, $activityInstance, $moduleInstance)) {
33 33
             return 100;
34 34
         }
35 35
         return 0;
Please login to merge, or discard this patch.
app/Http/Controllers/Api/Participant/ButtonController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@
 block discarded – undo
40 40
     public function destroy(Activity $activity, ModuleInstance $moduleInstance, ButtonClick $buttonClick, ActivityInstanceResolver  $activityInstanceResolver)
41 41
     {
42 42
         $this->authorize('delete-button-click');
43
-        if($activityInstanceResolver->getActivityInstance()->id !== (int) $buttonClick->activity_instance_id) {
43
+        if ($activityInstanceResolver->getActivityInstance()->id !== (int) $buttonClick->activity_instance_id) {
44 44
             throw new AuthorizationException('The button click does not belong to your activity instance');
45 45
         }
46
-        if($buttonClick->delete()) {
46
+        if ($buttonClick->delete()) {
47 47
             event(new ButtonUnsubmitted($buttonClick));
48 48
             return Response::create('', Response::HTTP_NO_CONTENT);
49 49
         } else {
Please login to merge, or discard this patch.
app/ModuleServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
     public function baseDirectory()
81 81
     {
82
-        return __DIR__ . '/..';
82
+        return __DIR__.'/..';
83 83
     }
84 84
 
85 85
     public function boot()
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
         Route::bind('static_page_button_click', function($id) {
95 95
             $buttonClick = ButtonClick::findOrFail((int) $id);
96
-            if(
96
+            if (
97 97
               request()->route('module_instance_slug')
98 98
               && (int) $buttonClick->module_instance_id === request()->route('module_instance_slug')->id()) {
99 99
                 return $buttonClick;
Please login to merge, or discard this patch.