mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 11:48:40 +00:00
php cs autofix
This commit is contained in:
parent
03a46f6ef4
commit
f02745b77e
|
|
@ -1,27 +1,27 @@
|
||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
return [
|
return [
|
||||||
'target_php_version' => null,
|
'target_php_version' => null,
|
||||||
'strict_param_checking' => true,
|
'strict_param_checking' => true,
|
||||||
'strict_property_checking' => true,
|
'strict_property_checking' => true,
|
||||||
'strict_return_checking' => true,
|
'strict_return_checking' => true,
|
||||||
'check_docblock_signature_return_type_match' => true,
|
'check_docblock_signature_return_type_match' => true,
|
||||||
'check_docblock_signature_param_type_match' => true,
|
'check_docblock_signature_param_type_match' => true,
|
||||||
'prefer_narrowed_phpdoc_param_type' => true,
|
'prefer_narrowed_phpdoc_param_type' => true,
|
||||||
'prefer_narrowed_phpdoc_return_type' => true,
|
'prefer_narrowed_phpdoc_return_type' => true,
|
||||||
'allow_method_param_type_widening' => false,
|
'allow_method_param_type_widening' => false,
|
||||||
'dead_code_detection' => true,
|
'dead_code_detection' => true,
|
||||||
'backward_compatibility_checks' => false,
|
'backward_compatibility_checks' => false,
|
||||||
'quick_mode' => false,
|
'quick_mode' => false,
|
||||||
'analyze_signature_compatibility' => true,
|
'analyze_signature_compatibility' => true,
|
||||||
'minimum_severity' => 0,
|
'minimum_severity' => 0,
|
||||||
'allow_missing_properties' => false,
|
'allow_missing_properties' => false,
|
||||||
'null_casts_as_any_type' => false,
|
'null_casts_as_any_type' => false,
|
||||||
'null_casts_as_array' => false,
|
'null_casts_as_array' => false,
|
||||||
'array_casts_as_null' => false,
|
'array_casts_as_null' => false,
|
||||||
'scalar_implicit_cast' => false,
|
'scalar_implicit_cast' => false,
|
||||||
'scalar_implicit_partial' => [],
|
'scalar_implicit_partial' => [],
|
||||||
'ignore_undeclared_variables_in_global_scope' => false,
|
'ignore_undeclared_variables_in_global_scope' => false,
|
||||||
'suppress_issue_types' => [
|
'suppress_issue_types' => [
|
||||||
'PhanUndeclaredClassMethod',
|
'PhanUndeclaredClassMethod',
|
||||||
'PhanUndeclaredProperty',
|
'PhanUndeclaredProperty',
|
||||||
'PhanUnreferencedPublicClassConstant',
|
'PhanUnreferencedPublicClassConstant',
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -43,7 +43,7 @@ foreach ($sources as $source) {
|
||||||
&& (($temp = \strlen($source->getPathname()) - \strlen('lang.php')) >= 0 && \strpos($source->getPathname(), 'lang.php', $temp) !== false)
|
&& (($temp = \strlen($source->getPathname()) - \strlen('lang.php')) >= 0 && \strpos($source->getPathname(), 'lang.php', $temp) !== false)
|
||||||
&& \strlen(\explode('.', \basename($source->getPathname()))[0]) === 2
|
&& \strlen(\explode('.', \basename($source->getPathname()))[0]) === 2
|
||||||
) {
|
) {
|
||||||
$langFileContent = include $source->getPathname();
|
$langFileContent = include $source->getPathname();
|
||||||
$langs[\explode('.', \basename($source->getPathname()))[0]] = \end($langFileContent);
|
$langs[\explode('.', \basename($source->getPathname()))[0]] = \end($langFileContent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user