diff options
Diffstat (limited to 'bridges/GithubIssueBridge.php')
-rw-r--r-- | bridges/GithubIssueBridge.php | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/bridges/GithubIssueBridge.php b/bridges/GithubIssueBridge.php index 9c82e4e6..e3a0c73a 100644 --- a/bridges/GithubIssueBridge.php +++ b/bridges/GithubIssueBridge.php @@ -263,23 +263,22 @@ class GithubIssueBridge extends BridgeAbstract { $path_segments = array_values(array_filter(explode('/', $url_components['path']))); switch(count($path_segments)) { - case 2: { // Project issues + case 2: // Project issues list($user, $project) = $path_segments; $show_comments = 'off'; - } break; - case 3: { // Project issues with issue comments + break; + case 3: // Project issues with issue comments if($path_segments[2] !== static::URL_PATH) { return null; } list($user, $project) = $path_segments; $show_comments = 'on'; - } break; - case 4: { // Issue comments + break; + case 4: // Issue comments list($user, $project, /* issues */, $issue) = $path_segments; - } break; - default: { + break; + default: return null; - } } return array( |