Skip to content

Commit

Permalink
PHP-Cs-Fixer changes
Browse files Browse the repository at this point in the history
- changed configuration for PHP-Cs-Fixer
- all files has been fixed
  • Loading branch information
tg666 committed Feb 5, 2020
1 parent 568bf32 commit 41367bd
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
58 changes: 30 additions & 28 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
<?php

$finder = PhpCsFixer\Finder::create()
->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)
;
2 changes: 1 addition & 1 deletion src/EntityAdapter/EntityAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 0 additions & 2 deletions src/Transliterator/ITransliterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace SixtyEightPublishers\DoctrineSluggable\Transliterator;

use SixtyEightPublishers;

interface ITransliterator
{
/**
Expand Down

0 comments on commit 41367bd

Please sign in to comment.