@@ -52,7 +52,7 @@ discard block |
||
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 |
||
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 |
@@ -23,12 +23,12 @@ discard block |
||
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 |
||
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 |
@@ -24,8 +24,7 @@ |
||
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); |