Magento Coding Standard (PHPCS) report for falconmedia/magento2-csp-sri-lock ============================================================================ Package version: 1.0.0 | Magento: 2.4.9 | Tested: 2026-05-27 6 errors, 21 warnings in 1 files src/Model/SubresourceIntegrity/Storage/File.php 30:24 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 31:29 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 33:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 41:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 59:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 69:20 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 75:33 error Silencing errors is discouraged; found: @fopen($absoluteLockPath... (Generic.PHP.NoSilencedErrors.Discouraged) 75:34 warning The use of function fopen() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileOpen() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 78:41 warning Opening parenthesis of a multi-line function call must be the last content on the line (PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket) 79:1 warning Multi-line function call not indented correctly; expected 16 spaces but found 20 (PSR2.Methods.FunctionCallSignature.Indent) 79:38 warning Closing parenthesis of a multi-line function call must be on a line by itself (PSR2.Methods.FunctionCallSignature.CloseBracketLine) 85:22 warning The use of function flock() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileLock() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 86:45 warning Opening parenthesis of a multi-line function call must be the last content on the line (PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket) 87:1 warning Multi-line function call not indented correctly; expected 20 spaces but found 24 (PSR2.Methods.FunctionCallSignature.Indent) 87:42 warning Closing parenthesis of a multi-line function call must be on a line by itself (PSR2.Methods.FunctionCallSignature.CloseBracketLine) 99:22 error Silencing errors is discouraged; found: @rename($absoluteTmp... (Generic.PHP.NoSilencedErrors.Discouraged) 99:23 warning The use of function rename() is discouraged; use Magento\Framework\Filesystem\DriverInterface::rename() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 101:21 error Silencing errors is discouraged; found: @unlink($absoluteTarget... (Generic.PHP.NoSilencedErrors.Discouraged) 101:22 warning The use of function unlink() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 102:26 error Silencing errors is discouraged; found: @rename($absoluteTmp... (Generic.PHP.NoSilencedErrors.Discouraged) 102:27 warning The use of function rename() is discouraged; use Magento\Framework\Filesystem\DriverInterface::rename() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 115:17 error Silencing errors is discouraged; found: @flock($lockHandle... (Generic.PHP.NoSilencedErrors.Discouraged) 115:18 warning The use of function flock() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileLock() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 116:17 error Silencing errors is discouraged; found: @fclose($lockHandle... (Generic.PHP.NoSilencedErrors.Discouraged) 116:18 warning The use of function fclose() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileClose() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 125:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 138:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)