Skip to content

Commit e1b6ccd

Browse files
committed
Changed error message to be consistent with others (ref #2582)
1 parent 8f4ec56 commit e1b6ccd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Standards/Generic/Sniffs/Files/FilePermissionsSniff.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ public function process(File $phpcsFile, $stackPtr)
4343

4444
if ($filename !== 'STDIN') {
4545
$perms = fileperms($phpcsFile->getFilename());
46-
4746
if (($perms & 0x0040) !== 0 || ($perms & 0x0008) !== 0 || ($perms & 0x0001) !== 0) {
48-
$error = "A PHP file should not be executable. Found file permission set to %s.";
47+
$error = 'A PHP file should not be executable; found file permissions set to %s';
4948
$data = [substr(sprintf('%o', $perms), -4)];
5049
$phpcsFile->addError($error, 0, 'Executable', $data);
5150
}

0 commit comments

Comments
 (0)