Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Dec 28, 2022
1 parent 3e4dfeb commit bff8d67
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion PSR2R/Sniffs/Classes/PropertyDeclarationSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace PSR2R\Sniffs\Classes;

use Exception;
use PHP_CodeSniffer\Files\File;
use PHP_CodeSniffer\Sniffs\AbstractVariableSniff;
use PHP_CodeSniffer\Util\Tokens;
Expand Down Expand Up @@ -51,7 +52,7 @@ protected function processMemberVar(File $phpcsFile, $stackPtr) {
if (empty($propertyInfo) === true) {
return;
}
} catch (\Exception $e) {
} catch (Exception $e) {
// Turns out not to be a property after all.
return;
}
Expand Down
3 changes: 0 additions & 3 deletions PSR2R/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
<property name="allowFallbackGlobalConstants" type="boolean" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName">
<severity>0</severity>
</rule>

<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
<rule ref="SlevomatCodingStandard.Arrays.MultiLineArrayEndBracketPlacement"/>
Expand Down
4 changes: 3 additions & 1 deletion bin/sniff.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/php -q
<?php

use PSR2R\Tools\Sniffer;

$options = [
__DIR__ . '/../vendor/autoload.php',
__DIR__ . '/vendor/autoload.php',
Expand All @@ -18,7 +20,7 @@
}
require SNIFFER_COMPOSER_INSTALL;

$sniffer = new \PSR2R\Tools\Sniffer($argv);
$sniffer = new Sniffer($argv);

$sniffer->sniff();
echo 0;
4 changes: 3 additions & 1 deletion bin/tokenize.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/php -q
<?php

use PSR2R\Tools\Tokenizer;

$options = [
__DIR__ . '/../vendor/autoload.php',
__DIR__ . '/vendor/autoload.php',
Expand All @@ -18,7 +20,7 @@
}
require SNIFFER_COMPOSER_INSTALL;

$tokenizer = new \PSR2R\Tools\Tokenizer($argv);
$tokenizer = new Tokenizer($argv);

$tokenizer->tokenize();
echo 0;

0 comments on commit bff8d67

Please sign in to comment.