Skip to content

Commit

Permalink
Coding standards?
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey committed Sep 3, 2024
1 parent 4b2982c commit 5a580c7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions src/StreamWrapper/Foxml.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ public function getDescription() {
return 'FOXML object/datastream storage dereferencing.';
}



/**
* {@inheritDoc}
* phpcs:disable Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
Expand Down
3 changes: 1 addition & 2 deletions src/StreamWrapper/NotWritableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Helper trait to mask writability from file modes.
*/
trait NotWritableTrait {
protected const WRITE_MASK = ~0o222;

/**
* Apply mask to suppress writability being reported.
Expand All @@ -22,7 +21,7 @@ protected static function applyMask(array|false $result) : array|false {
return FALSE;
}

$result[2] = ($result['mode'] &= static::WRITE_MASK);
$result[2] = ($result['mode'] &= !0o222);

return $result;
}
Expand Down

0 comments on commit 5a580c7

Please sign in to comment.