Skip to content

Commit

Permalink
fixing styles
Browse files Browse the repository at this point in the history
  • Loading branch information
vluzrmos committed Jan 8, 2016
1 parent e3b4950 commit 61c49f8
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 12 deletions.
39 changes: 30 additions & 9 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,47 @@ $finder = Symfony\Component\Finder\Finder::create()
->files()
->in(__DIR__)
->exclude('vendor')
->notName("*.md")
->notName("*.xml")
->notName("*.txt")
->notName("*.stub")
->notName("*.log")
->notName("*.phar")
->ignoreDotFiles(true)
->ignoreVCS(true);

$fixers = [
'-psr0',
'-php_closing_tag',
'blankline_after_open_tag',
'braces',
'concat_without_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',
'parenthesis',
'phpdoc_indent',
'phpdoc_inline_tag',
'phpdoc_no_access',
'phpdoc_no_package',
'phpdoc_scalar',
Expand All @@ -41,24 +57,29 @@ $fixers = [
'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',
'unalign_equals',
'unary_operators_spaces',
'unused_use',
'visibility',
'whitespacy_lines',
'multiline_spaces_before_semicolon',
'short_array_syntax',
'short_echo_tag',
];


return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->level(Symfony\CS\FixerInterface::NONE_LEVEL)
->fixers($fixers)
->finder($finder)
->setUsingCache(true);
->setUsingCache(true);
1 change: 0 additions & 1 deletion .php_cs.cache

This file was deleted.

2 changes: 1 addition & 1 deletion src/TinkerCaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function castApplication(Application $app)
foreach (self::$appProperties as $property) {
try {
$val = $app->$property();
if (!is_null($val)) {
if (! is_null($val)) {
$results[Caster::PREFIX_VIRTUAL.$property] = $val;
}
} catch (Exception $e) {
Expand Down
2 changes: 1 addition & 1 deletion src/TinkerShell.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function setIncludes($include)
*/
public function getShell()
{
if (!$this->shell) {
if (! $this->shell) {
$config = new Configuration();

$config->getPresenter()->addCasters(
Expand Down

0 comments on commit 61c49f8

Please sign in to comment.