55use Illuminate \Console \Command ;
66use Illuminate \Console \ConfirmableTrait ;
77
8- class InstallPhpcs extends Command
8+ class InstallPhpCs extends Command
99{
1010 use ConfirmableTrait;
1111
@@ -30,27 +30,27 @@ class InstallPhpcs extends Command
3030 */
3131 public function handle ()
3232 {
33- $ phpcs = __DIR__ . '/../../phpcs.xml ' ;
34- $ rootphpcs = base_path ('phpcs.xml ' );
33+ $ phpCs = __DIR__ . '/../../phpcs.xml ' ;
34+ $ rootPhpCs = base_path ('phpcs.xml ' );
3535
3636 // Checkout existence of sample phpcs.xml.
37- if (!file_exists ($ phpcs )) {
37+ if (!file_exists ($ phpCs )) {
3838 $ this ->error ('The sample phpcs.xml does not exist! Try to reinstall botble/git-commit-checker package! ' );
3939
4040 return 1 ;
4141 }
4242
4343 // Checkout existence phpcs.xml in root path of project.
44- if (file_exists ($ rootphpcs )) {
44+ if (file_exists ($ rootPhpCs )) {
4545 if (!$ this ->confirmToProceed ('phpcs.xml already exists, do you want to overwrite it? ' , true )) {
4646 return 1 ;
4747 }
4848
4949 // Remove old phpcs.xml file form root
50- unlink ($ rootphpcs );
50+ unlink ($ rootPhpCs );
5151 }
5252
53- $ this ->writePHPCS ($ phpcs , $ rootphpcs )
53+ $ this ->writePHPCS ($ phpCs , $ rootPhpCs )
5454 ? $ this ->info ('Phpcs.xml successfully created! ' )
5555 : $ this ->error ('Unable to create phpcs.xml ' );
5656
@@ -64,10 +64,10 @@ public function handle()
6464 * @param string $rootphpcs
6565 * @return bool
6666 */
67- protected function writePHPCS (string $ phpcs , string $ rootphpcs ): bool
67+ protected function writePHPCS (string $ phpCs , string $ rootPhpCs ): bool
6868 {
6969 // phpcs.xml file to root
70- if (!copy ($ phpcs , $ rootphpcs )) {
70+ if (!copy ($ phpCs , $ rootPhpCs )) {
7171 return false ;
7272 }
7373
0 commit comments