Skip to content

Commit 484b89b

Browse files
committed
CS: remove blank lines at end of classes
Includes adjusting the rule from the PHPCS native ruleset to enforce no blank lines at the end of a class (well, no blank lines after the last function in an OO structure).
1 parent 675cf24 commit 484b89b

File tree

646 files changed

+5
-1293
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

646 files changed

+5
-1293
lines changed

autoload.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,6 @@ public static function getLoadedFiles()
326326
{
327327
return self::$loadedFiles;
328328
}
329-
330-
331329
}
332330

333331
// Register the autoloader before any existing autoloaders to ensure

phpcs.xml.dist

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@
6868
<exclude name="Squiz.WhiteSpace.FunctionClosingBraceSpace.SpacingBeforeClose"/>
6969
</rule>
7070
<rule ref="PSR2.Methods.FunctionClosingBrace"/>
71-
<rule ref="Squiz.WhiteSpace.FunctionSpacing"/>
71+
<rule ref="Squiz.WhiteSpace.FunctionSpacing">
72+
<properties>
73+
<property name="spacingAfterLast" value="0"/>
74+
</properties>
75+
</rule>
7276
<rule ref="Squiz.WhiteSpace.MemberVarSpacing"/>
7377
<rule ref="PSR12.Operators.OperatorSpacing"/>
7478
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>

scripts/BuildRequirementsCheckMatrix.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,4 @@ private function getMissingExtensionsBuilds()
179179

180180
return $builds;
181181
}
182-
183-
184182
}

src/Config.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,6 +1767,4 @@ public function printConfigData(array $data)
17671767
{
17681768
echo $this->prepareConfigDataForDisplay($data);
17691769
}
1770-
1771-
17721770
}

src/Files/DummyFile.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,4 @@ public function setErrorCounts(
8585
$this->fixedErrorCount = $fixedErrorCount;
8686
$this->fixedWarningCount = $fixedWarningCount;
8787
}
88-
89-
9088
}

src/Files/File.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2941,6 +2941,4 @@ public function findImplementedInterfaceNames(int $stackPtr)
29412941
return $names;
29422942
}
29432943
}
2944-
2945-
29462944
}

src/Files/FileList.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,4 @@ public function count()
254254
{
255255
return $this->numFiles;
256256
}
257-
258-
259257
}

src/Files/LocalFile.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,4 @@ private function replayErrors(array $errors, array $warnings)
212212

213213
$this->replayingErrors = false;
214214
}
215-
216-
217215
}

src/Filters/ExactMatch.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,4 @@ abstract protected function getDisallowedFiles();
105105
* @return array
106106
*/
107107
abstract protected function getAllowedFiles();
108-
109-
110108
}

src/Filters/Filter.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,4 @@ protected function shouldIgnorePath(string $path)
295295

296296
return false;
297297
}
298-
299-
300298
}

0 commit comments

Comments
 (0)