Skip to content

Commit

Permalink
Fixes CS.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Jan 26, 2020
1 parent eaea73d commit f514cec
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests');

return PhpCsFixer\Config::create()
->setRiskyAllowed(false)
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => ['align_double_arrow' => false, 'align_equals' => false],
'no_extra_blank_lines' => false,
'no_empty_comment' => false,
'no_extra_consecutive_blank_lines' => false,
'no_unneeded_control_parentheses' => false,
'not_operator_with_successor_space' => true,
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'phpdoc_align' => false,
'phpdoc_no_empty_return' => false,
'phpdoc_order' => true,
'pre_increment' => false,
'single_trait_insert_per_statement' => false,
'yoda_style' => false,
])
->setFinder($finder);
2 changes: 0 additions & 2 deletions src/CodeGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ trait CodeGenerator
/**
* Generate code.
*
* @param bool $force
*
* @return mixed
*/
public function generateCode(bool $force)
Expand Down

0 comments on commit f514cec

Please sign in to comment.