Skip to content

Commit

Permalink
Fix some review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin committed Aug 11, 2019
1 parent ef47465 commit 6e17293
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Standards/Generic/Sniffs/Files/FilePermissionsSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,12 @@ public function process(File $phpcsFile, $stackPtr)
$perms = fileperms($phpcsFile->getFilename());

if (($perms & 0x0040) !== 0 || ($perms & 0x0008) !== 0 || ($perms & 0x0001) !== 0) {
$error = "A PHP file must not be executable";
$error = "A PHP file should not be executable";
$phpcsFile->addError($error, $stackPtr, 'Executable');
}

// Ignore the rest of the file.
}

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

}//end process()
Expand Down

0 comments on commit 6e17293

Please sign in to comment.