forked from diablomedia/zf1-translate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding grumphp, php-cs-fixer, fixing style, narrowing namespace
- Loading branch information
Showing
34 changed files
with
441 additions
and
323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->exclude('vendor') | ||
->files() | ||
->in(__DIR__) | ||
; | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@PSR2' => true, | ||
'@PHPUnit60Migration:risky' => true, | ||
'binary_operator_spaces' => ['align_double_arrow' => true, 'align_equals' => true], | ||
'single_quote' => true, | ||
'array_syntax' => ['syntax' => 'long'], | ||
'concat_space' => ['spacing' => 'one'], | ||
'psr0' => true | ||
]) | ||
->setUsingCache(true) | ||
->setFinder($finder); | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# grumphp.yml | ||
parameters: | ||
tasks: | ||
composer: | ||
strict: true | ||
composer_require_checker: | ||
config_file: require-checker-config.json | ||
phpcsfixer2: | ||
allow_risky: true | ||
config: .php_cs | ||
phpstan: | ||
level: 4 | ||
configuration: phpstan.neon | ||
phpunit: | ||
metadata: | ||
priority: 100 | ||
always_execute: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"symbol-whitelist" : [ | ||
"null", "true", "false", | ||
"static", "self", "parent", | ||
"array", "string", "int", "float", "bool", "iterable", "callable", "void", "object", | ||
"xml_parser_create", "xml_set_object", "xml_parser_set_option", "XML_OPTION_CASE_FOLDING", | ||
"xml_set_element_handler", "xml_set_character_data_handler", "xml_parse", "xml_error_string", "xml_get_error_code", | ||
"xml_get_current_line_number", "xml_parser_free" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.