mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-27 16:10:15 +00:00
Remove unneeded break after throw
Change-Id: Ief0dd9ecbf62ab84a3e504634eff4a236c115691
This commit is contained in:
parent
281a00cf20
commit
2fb5c57fba
|
@ -6,11 +6,9 @@
|
||||||
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate" />
|
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate" />
|
||||||
<exclude name="MediaWiki.Usage.ExtendClassUsage.FunctionConfigUsage" />
|
<exclude name="MediaWiki.Usage.ExtendClassUsage.FunctionConfigUsage" />
|
||||||
<exclude name="MediaWiki.Usage.ExtendClassUsage.FunctionVarUsage" />
|
<exclude name="MediaWiki.Usage.ExtendClassUsage.FunctionVarUsage" />
|
||||||
<exclude name="Squiz.PHP.NonExecutableCode.Unreachable" />
|
|
||||||
<exclude name="Squiz.Scope.MethodScope.Missing" />
|
<exclude name="Squiz.Scope.MethodScope.Missing" />
|
||||||
</rule>
|
</rule>
|
||||||
<file>.</file>
|
<file>.</file>
|
||||||
<arg name="extensions" value="php" />
|
<arg name="extensions" value="php" />
|
||||||
<arg name="encoding" value="UTF-8" />
|
<arg name="encoding" value="UTF-8" />
|
||||||
<exclude-pattern>vendor</exclude-pattern>
|
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|
|
@ -144,7 +144,6 @@ class ReplaceAll extends Maintenance {
|
||||||
$handle = fopen( $file, "r" );
|
$handle = fopen( $file, "r" );
|
||||||
if ( $handle === false ) {
|
if ( $handle === false ) {
|
||||||
throw new MWException( "Trouble opening file: $file\n" );
|
throw new MWException( "Trouble opening file: $file\n" );
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->defaultContinue = true;
|
$this->defaultContinue = true;
|
||||||
|
|
Loading…
Reference in a new issue