dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Collapse some nested if statements
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
structure
/
ApiStructureTest.php
diff --git
a/tests/phpunit/structure/ApiStructureTest.php
b/tests/phpunit/structure/ApiStructureTest.php
index
4c64291
..
2453353
100644
(file)
--- a/
tests/phpunit/structure/ApiStructureTest.php
+++ b/
tests/phpunit/structure/ApiStructureTest.php
@@
-500,10
+500,8
@@
class ApiStructureTest extends MediaWikiTestCase {
if ( $value instanceof $type ) {
return;
}
- } else {
- if ( gettype( $value ) === $type ) {
- return;
- }
+ } elseif ( gettype( $value ) === $type ) {
+ return;
}
} else {
// Array whose values have specified types, recurse