Skip to content

Commit c099d39

Browse files
author
Igor Hrcek
authored
Merge pull request #47 from igorhrcek/issue-46
Issue 46
2 parents 74176b9 + 98bda51 commit c099d39

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
- name: Lint and run checks with phpstan
2525
run: phpstan analyse src --level=5
2626
- name: Check codestyle with phpcs
27-
run: phpcs src
27+
run: phpcs src --standard=PSR12 --exclude=Generic.Files.LineLength

src/SecureCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public function blockAccess(array $args, array $assoc_args): void
240240

241241
if (in_array($blockPart, ['all', 'sensitive-files'])) {
242242
WP_CLI::debug('Blocking access to the sensitive files.', 'secure');
243-
if(isset($assoc_args['files'])) {
243+
if (isset($assoc_args['files'])) {
244244
(new BlockAccessToCustomSensitiveFiles($assoc_args))->output();
245245
} else {
246246
(new BlockAccessToSensitiveFiles($assoc_args))->output();

0 commit comments

Comments
 (0)