Remove unneeded break after throw

Change-Id: Ief0dd9ecbf62ab84a3e504634eff4a236c115691
This commit is contained in:
Umherirrender 2021-01-06 00:21:50 +01:00
parent 281a00cf20
commit 2fb5c57fba
2 changed files with 0 additions and 3 deletions

View file

@ -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>

View file

@ -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;