Skip to content

Commit

Permalink
FIX: Helper Function Syntax
Browse files Browse the repository at this point in the history
 - remove ignore syntax test
  • Loading branch information
aljawaid committed Sep 15, 2023
1 parent 83cf0a2 commit b783e0a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Helper/SupportHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ public function getPermissions($dir)
*/
public function getPermissionsLinux($directory)
{
// phpcs:ignore Generic.ControlStructures.InlineControlStructure.NotAllowed
if (!file_exists($directory)) return false;
if (!file_exists($directory)) {

return false;
}

return substr(sprintf('%o', fileperms($directory)), -4);
clearstatcache();
Expand Down

0 comments on commit b783e0a

Please sign in to comment.