Fix line endings
parent
27aac31970
commit
fbc0fa9688
36
.php_cs
36
.php_cs
|
@ -1,18 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$finder = Symfony\CS\Finder\DefaultFinder::create()
|
$finder = Symfony\CS\Finder\DefaultFinder::create()
|
||||||
->files()
|
->files()
|
||||||
->name('*.php')
|
->name('*.php')
|
||||||
->exclude('Fixtures')
|
->exclude('Fixtures')
|
||||||
->in(__DIR__.'/src')
|
->in(__DIR__.'/src')
|
||||||
->in(__DIR__.'/tests')
|
->in(__DIR__.'/tests')
|
||||||
;
|
;
|
||||||
|
|
||||||
return Symfony\CS\Config\Config::create()
|
return Symfony\CS\Config\Config::create()
|
||||||
->setUsingCache(true)
|
->setUsingCache(true)
|
||||||
->level(Symfony\CS\FixerInterface::NONE_LEVEL)
|
->level(Symfony\CS\FixerInterface::NONE_LEVEL)
|
||||||
->fixers(array(
|
->fixers(array(
|
||||||
'psr0', 'encoding', 'short_tag', 'braces', 'elseif', 'eof_ending', 'function_declaration', 'indentation', 'line_after_namespace', 'linefeed', 'lowercase_constants', 'lowercase_keywords', 'multiple_use', 'php_closing_tag', 'trailing_spaces', 'visibility', 'duplicate_semicolon', 'extra_empty_lines', 'include', 'namespace_no_leading_whitespace', 'object_operator', 'operators_spaces', 'phpdoc_params', 'return', 'single_array_no_trailing_comma', 'spaces_cast', 'standardize_not_equal', 'ternary_spaces', 'unused_use', 'whitespacy_lines', 'multiline_array_tailing_comma',
|
'psr0', 'encoding', 'short_tag', 'braces', 'elseif', 'eof_ending', 'function_declaration', 'indentation', 'line_after_namespace', 'linefeed', 'lowercase_constants', 'lowercase_keywords', 'multiple_use', 'php_closing_tag', 'trailing_spaces', 'visibility', 'duplicate_semicolon', 'extra_empty_lines', 'include', 'namespace_no_leading_whitespace', 'object_operator', 'operators_spaces', 'phpdoc_params', 'return', 'single_array_no_trailing_comma', 'spaces_cast', 'standardize_not_equal', 'ternary_spaces', 'unused_use', 'whitespacy_lines', 'multiline_array_tailing_comma',
|
||||||
))
|
))
|
||||||
->finder($finder)
|
->finder($finder)
|
||||||
;
|
;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#!/usr/bin/env php
|
#!/usr/bin/env php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require __DIR__ . '/../src/bootstrap.php';
|
require __DIR__ . '/../src/bootstrap.php';
|
||||||
|
|
||||||
use Composer\Util\SpdxLicensesUpdater;
|
use Composer\Util\SpdxLicensesUpdater;
|
||||||
|
|
||||||
$licenses = new SpdxLicensesUpdater;
|
$licenses = new SpdxLicensesUpdater;
|
||||||
$licenses->update();
|
$licenses->update();
|
||||||
|
|
Loading…
Reference in New Issue