forked from nWidart/laravel-menus
-
Notifications
You must be signed in to change notification settings - Fork 7
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
0 parents
commit 6d8a903
Showing
38 changed files
with
2,926 additions
and
0 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,5 @@ | ||
/vendor | ||
composer.phar | ||
composer.lock | ||
build | ||
.php_cs.cache |
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,47 @@ | ||
<?php | ||
|
||
$finder = Symfony\CS\Finder\DefaultFinder::create() | ||
->exclude('vendor') | ||
->in(__DIR__) | ||
; | ||
|
||
return Symfony\CS\Config\Config::create() | ||
->setUsingCache(true) | ||
->level(Symfony\CS\FixerInterface::PSR2_LEVEL) | ||
->fixers(array( | ||
// Concatenation should be used with at least one whitespace around. | ||
'concat_with_spaces', | ||
// Unused use statements must be removed. | ||
'ordered_use', | ||
// Removes extra empty lines. | ||
'extra_empty_lines', | ||
// Removes line breaks between use statements. | ||
'remove_lines_between_uses', | ||
// An empty line feed should precede a return statement. | ||
'return', | ||
// Unused use statements must be removed. | ||
'unused_use', | ||
// Remove trailing whitespace at the end of blank lines. | ||
'whitespacy_lines', | ||
// There MUST be one blank line after the namespace declaration. | ||
'line_after_namespace', | ||
// There should be exactly one blank line before a namespace declaration. | ||
'single_blank_line_before_namespace', | ||
// Each namespace use MUST go on its own line and there MUST be one blank line after the use statements block. | ||
'single_line_after_imports', | ||
// Ensure there is no code on the same line as the PHP open tag and it is followed by a blankline. | ||
'blankline_after_open_tag', | ||
// Remove duplicated semicolons. | ||
'duplicate_semicolon', | ||
// PHP multi-line arrays should have a trailing comma. | ||
'multiline_array_trailing_comma', | ||
// There should be no empty lines after class opening brace. | ||
'no_blank_lines_after_class_opening', | ||
// There should not be blank lines between docblock and the documented element. | ||
'no_empty_lines_after_phpdocs', | ||
// Phpdocs should start and end with content, excluding the very first and last line of the docblocks. | ||
'phpdoc_trim', | ||
// Removes line breaks between use statements. | ||
'remove_lines_between_uses', | ||
)) | ||
->finder($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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# The MIT License (MIT) | ||
|
||
Copyright (c) 2014 Pingpong Labs | ||
|
||
Copyright (c) 2016 Nicolas Widart bvba <[email protected]> | ||
|
||
> Permission is hereby granted, free of charge, to any person obtaining a copy | ||
> of this software and associated documentation files (the "Software"), to deal | ||
> in the Software without restriction, including without limitation the rights | ||
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
> copies of the Software, and to permit persons to whom the Software is | ||
> furnished to do so, subject to the following conditions: | ||
> | ||
> The above copyright notice and this permission notice shall be included in | ||
> all copies or substantial portions of the Software. | ||
> | ||
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
> THE SOFTWARE. |
Oops, something went wrong.