Skip to content

Commit

Permalink
Update require PHP-CS-Fixer
Browse files Browse the repository at this point in the history
Update FriendsOfPHP/PHP-CS-Fixer to version 2.13.*
  • Loading branch information
JackieDo committed Sep 18, 2018
1 parent 615e46d commit ff0912c
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"require": {
"php": ">=5.6.4",
"illuminate/support": "5.3.*|5.4.*",
"friendsofphp/php-cs-fixer": "2.3.*"
"friendsofphp/php-cs-fixer": "2.13.*"
},
"require-dev": {
"illuminate/console": "5.3.*|5.4.*"
Expand Down
3 changes: 3 additions & 0 deletions src/Config/.php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ $rules = [
]
],
'new_with_braces' => false,
'array_syntax' => [
'syntax' => 'short'
]
];

return Config::create()
Expand Down
10 changes: 10 additions & 0 deletions src/Console/Commands/ArtisanPhpCsFixerDescribe.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ public function fire()
passthru($phpCsFixerBinnaryPath.' describe '.$this->argument('name'));
}

/**
* Alias of the fire() method
*
* @return mixed
*/
public function handle()
{
$this->fire();
}

/**
* Get the console command arguments.
*
Expand Down
10 changes: 10 additions & 0 deletions src/Console/Commands/ArtisanPhpCsFixerFix.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,16 @@ public function fire()
passthru($phpCsFixerBinnaryPath.' fix'.$paramString);
}

/**
* Alias of the fire() method
*
* @return mixed
*/
public function handle()
{
$this->fire();
}

/**
* Get the console command arguments.
*
Expand Down
10 changes: 10 additions & 0 deletions src/Console/Commands/ArtisanPhpCsFixerReadme.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ public function fire()
passthru($phpCsFixerBinnaryPath.' readme');
}

/**
* Alias of the fire() method
*
* @return mixed
*/
public function handle()
{
$this->fire();
}

/**
* Get the console command arguments.
*
Expand Down
10 changes: 10 additions & 0 deletions src/Console/Commands/ArtisanPhpCsFixerVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ public function fire()
passthru($phpCsFixerBinnaryPath.' --version');
}

/**
* Alias of the fire() method
*
* @return mixed
*/
public function handle()
{
$this->fire();
}

/**
* Get the console command arguments.
*
Expand Down

0 comments on commit ff0912c

Please sign in to comment.