Completed
Push — master ( 6af41a...b74e8f )
by Tristan
08:27
created
src/Controller/CredentialController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
                 }
53 53
             } else {
54 54
                 $app['session']->getFlashBag()->add('danger',
55
-                    'The token is incorect. (GitHub API error ' . $status . ')');
55
+                    'The token is incorect. (GitHub API error '.$status.')');
56 56
             }
57 57
         }
58 58
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                 }
98 98
             } else {
99 99
                 $app['session']->getFlashBag()->add('danger',
100
-                    'The token is incorect. (GitHub API error ' . $status . ')');
100
+                    'The token is incorect. (GitHub API error '.$status.')');
101 101
             }
102 102
         }
103 103
 
Please login to merge, or discard this patch.
src/Controller/ApiController.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@  discard block
 block discarded – undo
23 23
             if (in_array('all', $branch)) {
24 24
                 $comment = $app['project_repository']->findComment($repoHook, null);
25 25
                 $id = $app['project_repository']->findId($repoHook, null);
26
-                $token  = $app['credential_repository']->findToken($repoHook, null);
26
+                $token = $app['credential_repository']->findToken($repoHook, null);
27 27
             }
28
-            elseif (in_array($branchHook, $branch)){
28
+            elseif (in_array($branchHook, $branch)) {
29 29
                 $comment = $app['project_repository']->findComment($repoHook, $branchHook);
30 30
                 $id = $app['project_repository']->findId($repoHook, $branchHook);
31
-                $token  = $app['credential_repository']->findToken($repoHook, $branchHook);
31
+                $token = $app['credential_repository']->findToken($repoHook, $branchHook);
32 32
             }
33 33
 
34 34
             if (($comment != null) && ($token != null)) {
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                     ],
44 44
                 ];
45 45
 
46
-                $url    = 'https://api.github.com/repos/' . $repoHook . '/issues/' . $numberHook . '/comments';
46
+                $url    = 'https://api.github.com/repos/'.$repoHook.'/issues/'.$numberHook.'/comments';
47 47
                 $client = new Client();
48 48
                 $client->post($url, $content);
49 49
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@
 block discarded – undo
24 24
                 $comment = $app['project_repository']->findComment($repoHook, null);
25 25
                 $id = $app['project_repository']->findId($repoHook, null);
26 26
                 $token  = $app['credential_repository']->findToken($repoHook, null);
27
-            }
28
-            elseif (in_array($branchHook, $branch)){
27
+            } elseif (in_array($branchHook, $branch)){
29 28
                 $comment = $app['project_repository']->findComment($repoHook, $branchHook);
30 29
                 $id = $app['project_repository']->findId($repoHook, $branchHook);
31 30
                 $token  = $app['credential_repository']->findToken($repoHook, $branchHook);
Please login to merge, or discard this patch.