forked from mlanin/laravel-api-debugger
-
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.
- Loading branch information
Showing
16 changed files
with
375 additions
and
400 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 |
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 |
---|---|---|
@@ -1,82 +1,28 @@ | ||
<?php | ||
|
||
use Symfony\CS\Config\Config; | ||
use Symfony\CS\FixerInterface; | ||
use Symfony\CS\Finder\DefaultFinder; | ||
|
||
$fixers = [ | ||
'blankline_after_open_tag', | ||
'braces', | ||
'concat_with_spaces', | ||
'double_arrow_multiline_whitespaces', | ||
'duplicate_semicolon', | ||
'elseif', | ||
'empty_return', | ||
'encoding', | ||
'eof_ending', | ||
'extra_empty_lines', | ||
'function_call_space', | ||
'function_declaration', | ||
'include', | ||
'indentation', | ||
'join_function', | ||
'line_after_namespace', | ||
'linefeed', | ||
'list_commas', | ||
'logical_not_operators_with_successor_space', | ||
'lowercase_constants', | ||
'lowercase_keywords', | ||
'method_argument_space', | ||
'multiline_array_trailing_comma', | ||
'multiline_spaces_before_semicolon', | ||
'multiple_use', | ||
'namespace_no_leading_whitespace', | ||
'no_blank_lines_after_class_opening', | ||
'no_empty_lines_after_phpdocs', | ||
'object_operator', | ||
'operators_spaces', | ||
'ordered_use', | ||
'parenthesis', | ||
'phpdoc_indent', | ||
'phpdoc_inline_tag', | ||
'phpdoc_no_access', | ||
'phpdoc_no_package', | ||
'phpdoc_scalar', | ||
'phpdoc_short_description', | ||
'phpdoc_to_comment', | ||
'phpdoc_trim', | ||
'phpdoc_type_to_var', | ||
'phpdoc_var_without_name', | ||
'remove_leading_slash_use', | ||
'remove_lines_between_uses', | ||
'return', | ||
'self_accessor', | ||
'short_array_syntax', | ||
'short_echo_tag', | ||
'short_tag', | ||
'single_array_no_trailing_comma', | ||
'single_blank_line_before_namespace', | ||
'single_line_after_imports', | ||
'single_quote', | ||
'spaces_before_semicolon', | ||
'spaces_cast', | ||
'standardize_not_equal', | ||
'ternary_spaces', | ||
'trailing_spaces', | ||
'trim_array_spaces', | ||
'unary_operators_spaces', | ||
'unused_use', | ||
'visibility', | ||
'whitespacy_lines', | ||
/** | ||
* Config for PHP-CS-Fixer ver2 | ||
*/ | ||
$rules = [ | ||
'@PSR2' => true, | ||
// addtional rules | ||
'array_syntax' => ['syntax' => 'short'], | ||
'no_multiline_whitespace_before_semicolons' => true, | ||
'no_short_echo_tag' => true, | ||
'no_unused_imports' => true, | ||
'not_operator_with_successor_space' => true, | ||
]; | ||
$excludes = [ | ||
// add exclude project directory | ||
'vendor', | ||
]; | ||
|
||
$finder = Symfony\CS\Finder\DefaultFinder::create() | ||
->exclude('vendor') | ||
->exclude('storage') | ||
->in(__DIR__); | ||
|
||
return Config::create() | ||
->finder($finder) | ||
->fixers($fixers) | ||
->level(FixerInterface::NONE_LEVEL) | ||
->setUsingCache(true); | ||
return PhpCsFixer\Config::create() | ||
->setRules($rules) | ||
->setFinder( | ||
PhpCsFixer\Finder::create() | ||
->exclude($excludes) | ||
->in(__DIR__) | ||
->notName('README.md') | ||
->notName('*.xml') | ||
->notName('*.yml') | ||
); |
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
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<?php | ||
|
||
return [ | ||
/** | ||
* Specify what data to collect. | ||
*/ | ||
'collections' => [ | ||
// Database queries. | ||
\Lanin\Laravel\ApiDebugger\Collections\QueriesCollection::class, | ||
/** | ||
* Specify what data to collect. | ||
*/ | ||
'collections' => [ | ||
// Database queries. | ||
\Lanin\Laravel\ApiDebugger\Collections\QueriesCollection::class, | ||
|
||
// Show cache events. | ||
\Lanin\Laravel\ApiDebugger\Collections\CacheCollection::class, | ||
// Show cache events. | ||
\Lanin\Laravel\ApiDebugger\Collections\CacheCollection::class, | ||
|
||
// Profile custom events. | ||
\Lanin\Laravel\ApiDebugger\Collections\ProfilingCollection::class, | ||
], | ||
]; | ||
// Profile custom events. | ||
\Lanin\Laravel\ApiDebugger\Collections\ProfilingCollection::class, | ||
], | ||
]; |
Oops, something went wrong.