Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #315 from ergebnis/fix/constant
Browse files Browse the repository at this point in the history
Fix: Do not use constants
  • Loading branch information
ergebnis-bot committed Dec 25, 2020
2 parents 53319b2 + b745784 commit a3e08e7
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 30 deletions.
8 changes: 3 additions & 5 deletions src/RuleSet/Php71.php
Expand Up @@ -13,8 +13,6 @@

namespace Ergebnis\PhpCsFixer\Config\RuleSet;

use PhpCsFixer\Fixer;

final class Php71 extends AbstractRuleSet implements ExplicitRuleSet
{
protected $name = 'ergebnis (PHP 7.1)';
Expand Down Expand Up @@ -455,9 +453,9 @@ final class Php71 extends AbstractRuleSet implements ExplicitRuleSet
],
'ordered_imports' => [
'imports_order' => [
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_CLASS,
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_CONST,
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_FUNCTION,
'class',
'const',
'function',
],
],
'ordered_interfaces' => [
Expand Down
8 changes: 3 additions & 5 deletions src/RuleSet/Php73.php
Expand Up @@ -13,8 +13,6 @@

namespace Ergebnis\PhpCsFixer\Config\RuleSet;

use PhpCsFixer\Fixer;

final class Php73 extends AbstractRuleSet implements ExplicitRuleSet
{
protected $name = 'ergebnis (PHP 7.3)';
Expand Down Expand Up @@ -455,9 +453,9 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet
],
'ordered_imports' => [
'imports_order' => [
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_CLASS,
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_CONST,
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_FUNCTION,
'class',
'const',
'function',
],
],
'ordered_interfaces' => [
Expand Down
8 changes: 3 additions & 5 deletions src/RuleSet/Php74.php
Expand Up @@ -13,8 +13,6 @@

namespace Ergebnis\PhpCsFixer\Config\RuleSet;

use PhpCsFixer\Fixer;

final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
{
protected $name = 'ergebnis (PHP 7.4)';
Expand Down Expand Up @@ -455,9 +453,9 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
],
'ordered_imports' => [
'imports_order' => [
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_CLASS,
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_CONST,
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_FUNCTION,
'class',
'const',
'function',
],
],
'ordered_interfaces' => [
Expand Down
8 changes: 3 additions & 5 deletions test/Unit/RuleSet/Php71Test.php
Expand Up @@ -13,8 +13,6 @@

namespace Ergebnis\PhpCsFixer\Config\Test\Unit\RuleSet;

use PhpCsFixer\Fixer;

/**
* @internal
*
Expand Down Expand Up @@ -461,9 +459,9 @@ final class Php71Test extends ExplicitRuleSetTestCase
],
'ordered_imports' => [
'imports_order' => [
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_CLASS,
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_CONST,
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_FUNCTION,
'class',
'const',
'function',
],
],
'ordered_interfaces' => [
Expand Down
8 changes: 3 additions & 5 deletions test/Unit/RuleSet/Php73Test.php
Expand Up @@ -13,8 +13,6 @@

namespace Ergebnis\PhpCsFixer\Config\Test\Unit\RuleSet;

use PhpCsFixer\Fixer;

/**
* @internal
*
Expand Down Expand Up @@ -461,9 +459,9 @@ final class Php73Test extends ExplicitRuleSetTestCase
],
'ordered_imports' => [
'imports_order' => [
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_CLASS,
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_CONST,
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_FUNCTION,
'class',
'const',
'function',
],
],
'ordered_interfaces' => [
Expand Down
8 changes: 3 additions & 5 deletions test/Unit/RuleSet/Php74Test.php
Expand Up @@ -13,8 +13,6 @@

namespace Ergebnis\PhpCsFixer\Config\Test\Unit\RuleSet;

use PhpCsFixer\Fixer;

/**
* @internal
*
Expand Down Expand Up @@ -461,9 +459,9 @@ final class Php74Test extends ExplicitRuleSetTestCase
],
'ordered_imports' => [
'imports_order' => [
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_CLASS,
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_CONST,
Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_FUNCTION,
'class',
'const',
'function',
],
],
'ordered_interfaces' => [
Expand Down

0 comments on commit a3e08e7

Please sign in to comment.