Skip to content

Commit ce919b0

Browse files
author
epriestley
committed
Resolve implicit fallthrough in Phabricator
Summary: New implicit fallthrough linter detected a few issues; none of these have behavioral impacts but they can clearly be tightened up. See D1824. Test Plan: Lint; inspection. Reviewers: btrahan Reviewed By: btrahan CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1825
1 parent 1c80a4e commit ce919b0

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

scripts/repository/reparse.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?php
33

44
/*
5-
* Copyright 2011 Facebook, Inc.
5+
* Copyright 2012 Facebook, Inc.
66
*
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
@@ -63,6 +63,7 @@
6363
break;
6464
default:
6565
usage("Unknown flag '{$arg}'.");
66+
break;
6667
}
6768
} else {
6869
if ($reparse_what) {

src/applications/phid/handle/PhabricatorObjectHandle.php

+1
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ public function getLinkName() {
223223
break;
224224
default:
225225
$name = $this->getFullName();
226+
break;
226227
}
227228
return $name;
228229
}

src/storage/qsprintf/qsprintf.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*
4-
* Copyright 2011 Facebook, Inc.
4+
* Copyright 2012 Facebook, Inc.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -264,6 +264,7 @@ function _qsprintf_check_type($value, $type, $query) {
264264
break;
265265
default:
266266
_qsprintf_check_scalar_type($value, $type, $query);
267+
break;
267268
}
268269
}
269270

webroot/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function phabricator_detect_bad_base_uri() {
220220
case 'https':
221221
break;
222222
default:
223-
phabricator_fatal_config_error(
223+
return phabricator_fatal_config_error(
224224
"'phabricator.base-uri' is set to '{$conf}', which is invalid. ".
225225
"The URI must start with 'http://' or 'https://'.");
226226
}

0 commit comments

Comments
 (0)