From 41367bdd86b5278756a7b287704461a3cb94e063 Mon Sep 17 00:00:00 2001 From: tomasglawaty666 Date: Wed, 5 Feb 2020 01:56:12 +0100 Subject: [PATCH] PHP-Cs-Fixer changes - changed configuration for PHP-Cs-Fixer - all files has been fixed --- .php_cs.dist | 58 +++++++++++++------------- src/EntityAdapter/EntityAdapter.php | 2 +- src/Transliterator/ITransliterator.php | 2 - 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.php_cs.dist b/.php_cs.dist index dff0a9e..345fba0 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -1,36 +1,38 @@ in(__DIR__ . '/src') - ->in(__DIR__ . '/tests') + ->in(__DIR__ . '/src') + ->in(__DIR__ . '/tests') ; return PhpCsFixer\Config::create() ->setUsingCache(FALSE) - ->setIndent("\t") - ->setRules([ - '@PSR2' => TRUE, - 'array_syntax' => ['syntax' => 'short'], - 'trailing_comma_in_multiline_array' => true, - 'lowercase_constants' => FALSE, - 'declare_strict_types' => TRUE, - 'phpdoc_align' => TRUE, - 'blank_line_after_opening_tag' => TRUE, - 'blank_line_before_statement' => [ - 'statements' => ['break', 'continue', 'declare', 'return'], - ], - 'blank_line_after_namespace' => TRUE, - 'single_blank_line_before_namespace' => TRUE, - 'return_type_declaration' => [ - 'space_before' => 'none', - ], - 'ordered_imports' => [ - 'sort_algorithm' => 'length', - ], - 'no_unused_imports' => TRUE, - 'single_line_after_imports' => TRUE, - 'no_leading_import_slash' => TRUE, - ]) - ->setRiskyAllowed(TRUE) - ->setFinder($finder) + ->setIndent("\t") + ->setRules([ + '@PSR2' => TRUE, + 'array_syntax' => ['syntax' => 'short'], + 'trailing_comma_in_multiline_array' => true, + 'constant_case' => [ + 'case' => 'upper', + ], + 'declare_strict_types' => TRUE, + 'phpdoc_align' => TRUE, + 'blank_line_after_opening_tag' => TRUE, + 'blank_line_before_statement' => [ + 'statements' => ['break', 'continue', 'declare', 'return'], + ], + 'blank_line_after_namespace' => TRUE, + 'single_blank_line_before_namespace' => TRUE, + 'return_type_declaration' => [ + 'space_before' => 'none', + ], + 'ordered_imports' => [ + 'sort_algorithm' => 'length', + ], + 'no_unused_imports' => TRUE, + 'single_line_after_imports' => TRUE, + 'no_leading_import_slash' => TRUE, + ]) + ->setRiskyAllowed(TRUE) + ->setFinder($finder) ; diff --git a/src/EntityAdapter/EntityAdapter.php b/src/EntityAdapter/EntityAdapter.php index 9e581eb..8540529 100644 --- a/src/EntityAdapter/EntityAdapter.php +++ b/src/EntityAdapter/EntityAdapter.php @@ -96,7 +96,7 @@ public function setValue(string $fieldName, $value): void /** * {@inheritDoc} */ - public function getIdentifier(bool $single = true) + public function getIdentifier(bool $single = TRUE) { if (NULL === $this->identifier) { $this->resolveIdentifier(); diff --git a/src/Transliterator/ITransliterator.php b/src/Transliterator/ITransliterator.php index fd8a7cf..3f38fc3 100644 --- a/src/Transliterator/ITransliterator.php +++ b/src/Transliterator/ITransliterator.php @@ -4,8 +4,6 @@ namespace SixtyEightPublishers\DoctrineSluggable\Transliterator; -use SixtyEightPublishers; - interface ITransliterator { /**