5
5
use Illuminate \Console \Command ;
6
6
use Illuminate \Console \ConfirmableTrait ;
7
7
8
- class InstallPhpcs extends Command
8
+ class InstallPhpCs extends Command
9
9
{
10
10
use ConfirmableTrait;
11
11
@@ -30,27 +30,27 @@ class InstallPhpcs extends Command
30
30
*/
31
31
public function handle ()
32
32
{
33
- $ phpcs = __DIR__ . '/../../phpcs.xml ' ;
34
- $ rootphpcs = base_path ('phpcs.xml ' );
33
+ $ phpCs = __DIR__ . '/../../phpcs.xml ' ;
34
+ $ rootPhpCs = base_path ('phpcs.xml ' );
35
35
36
36
// Checkout existence of sample phpcs.xml.
37
- if (!file_exists ($ phpcs )) {
37
+ if (!file_exists ($ phpCs )) {
38
38
$ this ->error ('The sample phpcs.xml does not exist! Try to reinstall botble/git-commit-checker package! ' );
39
39
40
40
return 1 ;
41
41
}
42
42
43
43
// Checkout existence phpcs.xml in root path of project.
44
- if (file_exists ($ rootphpcs )) {
44
+ if (file_exists ($ rootPhpCs )) {
45
45
if (!$ this ->confirmToProceed ('phpcs.xml already exists, do you want to overwrite it? ' , true )) {
46
46
return 1 ;
47
47
}
48
48
49
49
// Remove old phpcs.xml file form root
50
- unlink ($ rootphpcs );
50
+ unlink ($ rootPhpCs );
51
51
}
52
52
53
- $ this ->writePHPCS ($ phpcs , $ rootphpcs )
53
+ $ this ->writePHPCS ($ phpCs , $ rootPhpCs )
54
54
? $ this ->info ('Phpcs.xml successfully created! ' )
55
55
: $ this ->error ('Unable to create phpcs.xml ' );
56
56
@@ -64,10 +64,10 @@ public function handle()
64
64
* @param string $rootphpcs
65
65
* @return bool
66
66
*/
67
- protected function writePHPCS (string $ phpcs , string $ rootphpcs ): bool
67
+ protected function writePHPCS (string $ phpCs , string $ rootPhpCs ): bool
68
68
{
69
69
// phpcs.xml file to root
70
- if (!copy ($ phpcs , $ rootphpcs )) {
70
+ if (!copy ($ phpCs , $ rootPhpCs )) {
71
71
return false ;
72
72
}
73
73
0 commit comments