Re-enable MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect

Change-Id: I1b756909a1080108c5147d46950f826871ef6dc1
This commit is contained in:
Reedy 2015-09-26 18:04:00 +01:00
parent cd6adc62fb
commit 8882634112
3 changed files with 5 additions and 6 deletions

View file

@ -897,7 +897,7 @@ class PhpHttpRequest extends MWHttpRequest {
) );
}
foreach( $certLocations as $key => $cert ) {
foreach ( $certLocations as $key => $cert ) {
if ( is_dir( $cert ) ) {
$certOptions['capath'] = $cert;
break;

View file

@ -6,7 +6,6 @@
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
<exclude name="MediaWiki.NamingConventions.PrefixedGlobalFunctions.wfPrefix"/>
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
<exclude name="MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect"/>
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed"/>
</rule>
<file>.</file>

View file

@ -23,7 +23,7 @@ class RunningStatTest extends PHPUnit_Framework_TestCase {
*/
public function testRunningStatAccuracy() {
$rstat = new RunningStat();
foreach( $this->points as $point ) {
foreach ( $this->points as $point ) {
$rstat->push( $point );
}
@ -51,7 +51,7 @@ class RunningStatTest extends PHPUnit_Framework_TestCase {
public function testRunningStatMerge() {
$expected = new RunningStat();
foreach( $this->points as $point ) {
foreach ( $this->points as $point ) {
$expected->push( $point );
}
@ -60,13 +60,13 @@ class RunningStatTest extends PHPUnit_Framework_TestCase {
// Accumulate the first half into one RunningStat object
$first = new RunningStat();
foreach( $sets[0] as $point ) {
foreach ( $sets[0] as $point ) {
$first->push( $point );
}
// Accumulate the second half into another RunningStat object
$second = new RunningStat();
foreach( $sets[1] as $point ) {
foreach ( $sets[1] as $point ) {
$second->push( $point );
}