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
Push — master ( 994f19...a33564 )
by Danger
02:40
created
src/BitPrepared/Bundle/D1b0Workspace/Controller/V1/SecurityController.php 1 patch
Braces   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -53,15 +53,14 @@  discard block
 block discarded – undo
53 53
                         "clientId"=>$user->id
54 54
                 ];
55 55
                 $response = JsonResponse::create($res, 200, $headers)->setSharedMaxAge(300);
56
-            }else {
56
+            } else {
57 57
                 $headers = [];
58 58
                 $res = [
59 59
                         "errore"=>"sbagliato password o user" //TODO roba
60 60
                 ];
61 61
                 $response = JsonResponse::create($res, 401, $headers)->setSharedMaxAge(300);
62 62
             }
63
-        }
64
-        else {
63
+        } else {
65 64
             //Facebook Redirect
66 65
         }
67 66
         return $response; // JsonResponse::create($output, 200, $headers)->setSharedMaxAge(300);
@@ -82,14 +81,14 @@  discard block
 block discarded – undo
82 81
             if (!$bean->id) {
83 82
                 //TODO mettere un controllo agli IP che forzano le richieste di token falsi
84 83
                 $response = "<html><head></head><body>Token non esistente!</body></html>";
85
-            }else {
84
+            } else {
86 85
                 if (strtotime($verify->inserttime) < strtotime("-15 minutes")) {
87 86
                     $user = R::load('user', $verify->user);
88 87
                     $user->status = "enabled";
89 88
                     $user->updatetime = date('Y-m-d H:i:s');
90 89
                     $id = R::store($user);
91 90
                     $response = "<html><head></head><body>Account attivato complimenti!</body></html>";
92
-                }else {
91
+                } else {
93 92
                     $response = "<html><head></head><body>Impossibile attivare account inserire mail e password per richiedere un nuovo token!</body></html>";
94 93
                 }
95 94
             }
Please login to merge, or discard this patch.
src/BitPrepared/Bundle/D1b0Workspace/Controller/V1/UserController.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,11 +106,11 @@
 block discarded – undo
106 106
                 $user->updatetime = date('Y-m-d G:i:s');
107 107
                 $id = R::store($user);
108 108
                 $res = (object)["id" => $id];
109
-            }catch (Exception $e) {
109
+            } catch (Exception $e) {
110 110
                 echo $e;
111 111
             }
112 112
 
113
-        }else {
113
+        } else {
114 114
 
115 115
         }
116 116
 
Please login to merge, or discard this patch.
src/BitPrepared/Bundle/D1b0Workspace/Controller/V1/WorkspaceController.php 1 patch
Braces   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -298,8 +298,10 @@  discard block
 block discarded – undo
298 298
                 $resource->totalpoint = 0;
299 299
             $resource_id = R::store($resource);
300 300
             $rem_id=getPositionInArray($delete_res,$resource_id);
301
-            if($rem_id != 0)
302
-                array_splice($delete_res,$rem_id,1); //RIMUOVO GLI ELEMENTI CHE HO MODIFICATO
301
+            if($rem_id != 0) {
302
+                            array_splice($delete_res,$rem_id,1);
303
+            }
304
+            //RIMUOVO GLI ELEMENTI CHE HO MODIFICATO
303 305
         }
304 306
 
305 307
         foreach($delete_res as $d){
@@ -316,8 +318,10 @@  discard block
 block discarded – undo
316 318
                 $pb->part = $part_id;
317 319
             $tmp = R::store($pb);
318 320
             $rem_id=getPositionInArray($delete_badge,$tmp);
319
-            if($rem_id != 0)
320
-                array_splice($delete_badge,$rem_id,1); //RIMUOVO GLI ELEMENTI CHE HO MODIFICATO
321
+            if($rem_id != 0) {
322
+                            array_splice($delete_badge,$rem_id,1);
323
+            }
324
+            //RIMUOVO GLI ELEMENTI CHE HO MODIFICATO
321 325
         }
322 326
 
323 327
         foreach($delete_badge as $d){
@@ -337,7 +341,7 @@  discard block
 block discarded – undo
337 341
                 if($b->completed === True){
338 342
                     echo "CASO 1;<BR />";
339 343
                     return $this->$POINT_FOR_USING_A_CONQUERED_BADGE;
340
-                }else{
344
+                } else{
341 345
                     echo "CASO 2;<BR />";
342 346
                     return $this->POINT_FOR_USING_A_BADGE;
343 347
                 }
Please login to merge, or discard this patch.