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 ( 57ebb4...86d5a0 )
by Danger
02:58
created
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.
applications/workspace/test/Tests/WorkspaceTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     use AbstractAppTest;
11 11
 
12
-    public function testGetWorkspaceList(){
12
+    public function testGetWorkspaceList() {
13 13
         $schema = __DIR__.'/../../../../api/schemas/workspaceList.json';
14 14
 
15 15
         //$client = $this->createClient();
Please login to merge, or discard this patch.
applications/workspace/test/Tests/AbstractAppTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         if ($validator->isValid()) {
57 57
             echo "The supplied JSON validates against the schema.\n";
58 58
             $assert = true;
59
-        } else {
59
+        }else {
60 60
             echo "JSON does not validate. Violations:\n";
61 61
             foreach ($validator->getErrors() as $error) {
62 62
                 echo "[{$error['property']}] {$error['message']}\n";
Please login to merge, or discard this patch.
src/BitPrepared/Bundle/D1b0Workspace/Controller/V1/WorkspaceController.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
                 $headers = [];
278 278
                 $response = JsonResponse::create(["id"=>$wp_id], 200, $headers)->setSharedMaxAge(300);
279 279
 
280
-            }else {
280
+            } else {
281 281
                 $headers = [];
282 282
                 $response = JsonResponse::create(["message"=>"Key no more valid"], 498, $headers)->setSharedMaxAge(300);
283 283
             }
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
                 if ($b->completed === True) {
483 483
                     echo "CASO 1;<BR />";
484 484
                     return $this->POINT_FOR_USING_A_CONQUERED_BADGE;
485
-                }else {
485
+                } else {
486 486
                     echo "CASO 2;<BR />";
487 487
                     return $this->POINT_FOR_USING_A_BADGE;
488 488
                 }
Please login to merge, or discard this patch.
src/BitPrepared/Bundle/D1b0Workspace/Controller/V1/SecurityController.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,14 +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
-        }else {
63
+        } else {
64 64
             //Facebook Redirect
65 65
         }
66 66
         return $response; // JsonResponse::create($output, 200, $headers)->setSharedMaxAge(300);
@@ -81,14 +81,14 @@  discard block
 block discarded – undo
81 81
             if (!$bean->id) {
82 82
                 //TODO mettere un controllo agli IP che forzano le richieste di token falsi
83 83
                 $response = "<html><head></head><body>Token non esistente!</body></html>";
84
-            }else {
84
+            } else {
85 85
                 if (strtotime($verify->inserttime) < strtotime("-15 minutes")) {
86 86
                     $user = R::load('user', $verify->user);
87 87
                     $user->status = "enabled";
88 88
                     $user->updatetime = date('Y-m-d H:i:s');
89 89
                     $id = R::store($user);
90 90
                     $response = "<html><head></head><body>Account attivato complimenti!</body></html>";
91
-                }else {
91
+                } else {
92 92
                     $response = "<html><head></head><body>Impossibile attivare account inserire mail e password per richiedere un nuovo token!</body></html>";
93 93
                 }
94 94
             }
Please login to merge, or discard this patch.
applications/workspace/test/Tests/UserTest.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Tests;
4 4
 
5 5
 use Silex\WebTestCase;
6
-use JsonSchema\Validator;
7 6
 
8 7
 class WorkspaceTest extends WebTestCase
9 8
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     use AbstractAppTest;
11 11
 
12
-    public function testGetUser(){
12
+    public function testGetUser() {
13 13
         $schema = __DIR__.'/../../../../api/schemas/userInfo.json';
14 14
 
15 15
         $client = $this->createClient();
Please login to merge, or discard this patch.
applications/workspace/test/Tests/WorkspaceCheckinTest.php 3 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Tests;
4 4
 
5
-use Silex\WebTestCase;
6
-use JsonSchema\Validator;
7
-
8 5
 class PartTest extends WorkspaceTest
9 6
 {
10 7
     use AbstractAppTest;
Please login to merge, or discard this patch.
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@  discard block
 block discarded – undo
20 20
         $client = $this->createClient();
21 21
         $client = $this->logIn2($client);
22 22
         $client->request(
23
-          'POST',
24
-          '/api/v1/workspace/'.$id.'/part/'.$part_id.'/checkin',
25
-          [],
26
-          [],
27
-          ['CONTENT_TYPE' => 'application/json'],
28
-          '');
23
+            'POST',
24
+            '/api/v1/workspace/'.$id.'/part/'.$part_id.'/checkin',
25
+            [],
26
+            [],
27
+            ['CONTENT_TYPE' => 'application/json'],
28
+            '');
29 29
         $response = $client->getResponse();
30 30
         $data = $client->getResponse()->getContent();
31 31
         print_r("ROBAGROSSA");
@@ -48,12 +48,12 @@  discard block
 block discarded – undo
48 48
         $client = $this->createClient();
49 49
         $client = $this->logIn2($client);
50 50
         $client->request(
51
-          'DELETE',
52
-          '/api/v1/workspace/'.$id.'/part/'.$part_id.'/checkin',
53
-          [],
54
-          [],
55
-          ['CONTENT_TYPE' => 'application/json'],
56
-          '');
51
+            'DELETE',
52
+            '/api/v1/workspace/'.$id.'/part/'.$part_id.'/checkin',
53
+            [],
54
+            [],
55
+            ['CONTENT_TYPE' => 'application/json'],
56
+            '');
57 57
         $response = $client->getResponse();
58 58
 
59 59
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@  discard block
 block discarded – undo
10 10
     use AbstractAppTest;
11 11
 
12 12
 
13
-    public function testPostWorkspaceCheck(){
13
+    public function testPostWorkspaceCheck() {
14 14
         $blob = $this->testPostWorkspacePart();
15 15
         $id = $blob[0];
16
-        $part_id= $blob[1];
16
+        $part_id = $blob[1];
17 17
 
18 18
         print_r("FANFARA!");
19 19
         var_dump($blob);
@@ -33,15 +33,15 @@  discard block
 block discarded – undo
33 33
         $js = json_decode($data);
34 34
         $points = $js->points;
35 35
 
36
-        $this->assertTrue(is_numeric($points));  //TODO verificare che il numero sia adeguato ai punti attesi
36
+        $this->assertTrue(is_numeric($points)); //TODO verificare che il numero sia adeguato ai punti attesi
37 37
 
38
-        return [$id,$part_id];
38
+        return [$id, $part_id];
39 39
     }
40 40
 
41
-    public function testDeletePostWorkspaceCheck(){
41
+    public function testDeletePostWorkspaceCheck() {
42 42
         $blob = $this->testPostWorkspaceCheck();
43 43
         $id = $blob[0];
44
-        $part_id= $blob[1];
44
+        $part_id = $blob[1];
45 45
 
46 46
         print_r("FANFARA!");
47 47
         var_dump($blob);
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
         $response = $client->getResponse();
58 58
 
59 59
 
60
-        $this->assertEquals(204,$response->getStatusCode());  //TODO verificare che il dato non sia più presente sul server
60
+        $this->assertEquals(204, $response->getStatusCode()); //TODO verificare che il dato non sia più presente sul server
61 61
 
62
-        return [$id,$part_id];
62
+        return [$id, $part_id];
63 63
     }
64 64
 }
Please login to merge, or discard this patch.