Skip to content

Commit

Permalink
Merge pull request #47 from igorhrcek/issue-46
Browse files Browse the repository at this point in the history
Issue 46
  • Loading branch information
igorhrcek authored Apr 12, 2022
2 parents 74176b9 + 98bda51 commit c099d39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
- name: Lint and run checks with phpstan
run: phpstan analyse src --level=5
- name: Check codestyle with phpcs
run: phpcs src
run: phpcs src --standard=PSR12 --exclude=Generic.Files.LineLength
2 changes: 1 addition & 1 deletion src/SecureCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public function blockAccess(array $args, array $assoc_args): void

if (in_array($blockPart, ['all', 'sensitive-files'])) {
WP_CLI::debug('Blocking access to the sensitive files.', 'secure');
if(isset($assoc_args['files'])) {
if (isset($assoc_args['files'])) {
(new BlockAccessToCustomSensitiveFiles($assoc_args))->output();
} else {
(new BlockAccessToSensitiveFiles($assoc_args))->output();
Expand Down

0 comments on commit c099d39

Please sign in to comment.