Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
brianvarskonst committed Jun 3, 2024
1 parent 66937b4 commit 7e762a2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

// phpcs:set MO4.Formatting.AlphabeticalUseStatements order dictionary-typo
// phpcs:set Brianvarskonst.Formatting.AlphabeticalUseStatements order dictionary-typo

use A1\B;

// reset it
// phpcs:set MO4.Formatting.AlphabeticalUseStatements order dictionary
// phpcs:set Brianvarskonst.Formatting.AlphabeticalUseStatements order dictionary

class Foo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use A\B;
use A\B\C;
use A\BD;

// phpcs:set MO4.Formatting.AlphabeticalUseStatements order string
// phpcs:set Brianvarskonst.Formatting.AlphabeticalUseStatements order string

use Doctrine\ORM\Query;
use Doctrine\ORM\QueryBuilder;
Expand All @@ -25,17 +25,17 @@ use Doctrine\ORM\Query\Expr;
use ExampleSub;
use Examples;

// phpcs:set MO4.Formatting.AlphabeticalUseStatements order string-case-insensitive
// phpcs:set Brianvarskonst.Formatting.AlphabeticalUseStatements order string-case-insensitive

use E2xamples;
use E2xampleSub;

// phpcs:set MO4.Formatting.AlphabeticalUseStatements order string-locale
// phpcs:set Brianvarskonst.Formatting.AlphabeticalUseStatements order string-locale

use E3xampleSub;
use E3xamples;

// phpcs:set MO4.Formatting.AlphabeticalUseStatements order dictionary
// phpcs:set Brianvarskonst.Formatting.AlphabeticalUseStatements order dictionary

class Foo {
$bar = 'foo';
Expand Down
2 changes: 1 addition & 1 deletion Brianvarskonst/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<!-- Exclude conflicting rules -->
<exclude name="PSR12.Files.OpenTag.NotAlone" />
<exclude name="PSR12.Files.FileHeader.SpacingAfterBlock" />
<!-- https://github.com/mayflower/mo4-coding-standard/issues/167 -->
<!-- https://github.com/mayflower/Brianvarskonst-coding-standard/issues/167 -->
<exclude name="PSR12.Files.FileHeader.IncorrectGrouping" />
</rule>

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"phpcs",
"static analysis",
"Symfony",
"mo4",
"coding standard",
"standards",
"PSR"
],
Expand Down
2 changes: 1 addition & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ruleset name="PHP_CodeSniffer">
<description>The coding standard for PHP_CodeSniffer itself, applied to Brianvarskonst.</description>

<!-- Load sensible default configuration settings for coding standard checking of MO4. -->
<!-- Load sensible default configuration settings for coding standard checking of Brianvarskonst. -->
<!-- These configuration settings can only be overridden by CLI! -->
<!-- The precedence order is: -->
<!-- 1. CLI parameters -->
Expand Down

0 comments on commit 7e762a2

Please sign in to comment.