Magento Coding Standard (PHPCS) report for yireo/magento2-theme-override-checker ================================================================================ Package version: 0.1.0 | Magento: 2.4.9 | Tested: 2026-11-25 18 errors, 29 warnings in 12 files Console/Command/CheckOverrideCommand.php 58:142 warning Line exceeds 120 characters; contains 142 characters (Generic.Files.LineLength.TooLong) 81:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 90:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 98:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 139:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Console/Command/DiffOverrideCommand.php 88:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 96:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 112:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) Console/Command/ShowOverrideCommand.php 97:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 105:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 153:120 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 165:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) Util/FileInspector.php 36:37 warning Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) 42:12 warning Line indented incorrectly; expected at least 12 spaces, found 11 (Generic.WhiteSpace.ScopeIndent.Incorrect) Util/ThemeFileResolver.php 54:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 59:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 64:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 68:44 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 104:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) Util/ThemeProvider.php 59:14 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Util/PathGuard.php 35:24 warning The use of function realpath() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getRealPath() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 36:21 warning The use of function realpath() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getRealPath() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 37:63 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Test/Unit/Console/Command/DiffOverrideCommandTest.php 36:9 error Silencing errors is discouraged; found: @unlink($this... (Generic.PHP.NoSilencedErrors.Discouraged) 37:9 error Silencing errors is discouraged; found: @unlink($this... (Generic.PHP.NoSilencedErrors.Discouraged) 38:9 error Silencing errors is discouraged; found: @rmdir($this... (Generic.PHP.NoSilencedErrors.Discouraged) 39:9 error Silencing errors is discouraged; found: @rmdir($this... (Generic.PHP.NoSilencedErrors.Discouraged) 40:9 error Silencing errors is discouraged; found: @rmdir($this... (Generic.PHP.NoSilencedErrors.Discouraged) 100:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 114:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) Test/Unit/Console/Command/CheckOverrideCommandTest.php 35:9 error Silencing errors is discouraged; found: @unlink($this... (Generic.PHP.NoSilencedErrors.Discouraged) 36:9 error Silencing errors is discouraged; found: @unlink($this... (Generic.PHP.NoSilencedErrors.Discouraged) 37:9 error Silencing errors is discouraged; found: @unlink($this... (Generic.PHP.NoSilencedErrors.Discouraged) 38:9 error Silencing errors is discouraged; found: @rmdir($this... (Generic.PHP.NoSilencedErrors.Discouraged) 39:9 error Silencing errors is discouraged; found: @rmdir($this... (Generic.PHP.NoSilencedErrors.Discouraged) 40:9 error Silencing errors is discouraged; found: @rmdir($this... (Generic.PHP.NoSilencedErrors.Discouraged) Test/Unit/Util/SplFileInfoBuilderTest.php 19:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 20:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) 22:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) Test/Unit/Util/ThemeProviderTest.php 24:9 error Silencing errors is discouraged; found: @unlink($this... (Generic.PHP.NoSilencedErrors.Discouraged) 41:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) Test/Unit/Util/PathGuardTest.php 24:9 error Silencing errors is discouraged; found: @unlink($this... (Generic.PHP.NoSilencedErrors.Discouraged) 25:9 error Silencing errors is discouraged; found: @unlink($this... (Generic.PHP.NoSilencedErrors.Discouraged) 26:9 error Silencing errors is discouraged; found: @unlink($this... (Generic.PHP.NoSilencedErrors.Discouraged) 27:9 error Silencing errors is discouraged; found: @rmdir($this... (Generic.PHP.NoSilencedErrors.Discouraged) 28:9 error Silencing errors is discouraged; found: @rmdir($this... (Generic.PHP.NoSilencedErrors.Discouraged) 29:9 error Silencing errors is discouraged; found: @rmdir($this... (Generic.PHP.NoSilencedErrors.Discouraged)