Skip to content

Commit 6e17293

Browse files
committed
Fix some review comments
1 parent ef47465 commit 6e17293

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,12 @@ public function process(File $phpcsFile, $stackPtr)
4545
$perms = fileperms($phpcsFile->getFilename());
4646

4747
if (($perms & 0x0040) !== 0 || ($perms & 0x0008) !== 0 || ($perms & 0x0001) !== 0) {
48-
$error = "A PHP file must not be executable";
48+
$error = "A PHP file should not be executable";
4949
$phpcsFile->addError($error, $stackPtr, 'Executable');
5050
}
51-
52-
// Ignore the rest of the file.
5351
}
5452

53+
// Ignore the rest of the file.
5554
return ($phpcsFile->numTokens + 1);
5655

5756
}//end process()

0 commit comments

Comments
 (0)