Skip to content

Commit

Permalink
Updated .php_cs file to its own standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsaray committed Mar 20, 2021
1 parent 0d38d12 commit 718b7e9
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
<?php

return PhpCsFixer\Config::create()
->setRules(array(
->setRules([
'@PSR2' => true,
'array_indentation' => true,
'array_syntax' => array('syntax' => 'short'),
'array_syntax' => ['syntax' => 'short'],
'combine_consecutive_unsets' => true,
'method_separation' => true,
'no_multiline_whitespace_before_semicolons' => true,
'single_quote' => true,
'binary_operator_spaces' => array(
'binary_operator_spaces' => [
'default' => 'single_space',
),
],
'blank_line_after_opening_tag' => true,
'braces' => array(
'braces' => [
'allow_single_line_closure' => true,
),
'concat_space' => array('spacing' => 'none'),
],
'concat_space' => ['spacing' => 'none'],
'declare_equal_normalize' => true,
'function_typehint_space' => true,
'hash_to_slash_comment' => true,
'include' => true,
'lowercase_cast' => true,
'no_extra_consecutive_blank_lines' => array(
'no_extra_consecutive_blank_lines' => [
'curly_brace_block',
'extra',
'parenthesis_brace_block',
'square_brace_block',
'throw',
'use',
),
],
'ordered_imports' => [
'sort_algorithm' => 'length'
],
Expand All @@ -45,7 +45,5 @@ return PhpCsFixer\Config::create()
'unary_operator_spaces' => true,
'whitespace_after_comma_in_array' => true,
'not_operator_with_successor_space' => true,
))
//->setIndent("\t")
->setLineEnding("\n")
;
])
->setLineEnding("\n");

0 comments on commit 718b7e9

Please sign in to comment.