Passed
Push — main ( 2d52d9...205857 )
by Sebastian
03:52
created
src/Console/Command/Install.php 1 patch
Indentation   +63 added lines, -63 removed lines patch added patch discarded remove patch
@@ -42,64 +42,64 @@  discard block
 block discarded – undo
42 42
     {
43 43
         parent::configure();
44 44
         $this->setName('install')
45
-             ->setDescription('Install hooks to your .git/hooks directory')
46
-             ->setHelp('Install git hooks to your .git/hooks directory')
47
-             ->addArgument(
48
-                 'hook',
49
-                 InputArgument::OPTIONAL,
50
-                 'Limit the hooks you want to install. ' .
51
-                 'You can specify multiple hooks with comma as delimiter. ' .
52
-                 'By default all hooks get installed'
53
-             )
54
-             ->addOption(
55
-                 'only-enabled',
56
-                 null,
57
-                 InputOption::VALUE_NONE,
58
-                 'Limit the hooks you want to install to those enabled in your conf. ' .
59
-                 'By default all hooks get installed'
60
-             )
61
-             ->addOption(
62
-                 'force',
63
-                 'f',
64
-                 InputOption::VALUE_NONE,
65
-                 'Force install without confirmation'
66
-             )
67
-             ->addOption(
68
-                 'skip-existing',
69
-                 's',
70
-                 InputOption::VALUE_NONE,
71
-                 'Do not overwrite existing hooks'
72
-             )
73
-             ->addOption(
74
-                 'move-existing-to',
75
-                 null,
76
-                 InputOption::VALUE_OPTIONAL,
77
-                 'Move existing hooks to given directory'
78
-             )
79
-             ->addOption(
80
-                 'bootstrap',
81
-                 'b',
82
-                 InputOption::VALUE_OPTIONAL,
83
-                 'Path to composers vendor/autoload.php'
84
-             )
85
-             ->addOption(
86
-                 'run-mode',
87
-                 'm',
88
-                 InputOption::VALUE_OPTIONAL,
89
-                 'Git hook run mode [php|shell|docker]'
90
-             )
91
-             ->addOption(
92
-                 'run-exec',
93
-                 'e',
94
-                 InputOption::VALUE_OPTIONAL,
95
-                 'The Docker command to start your container e.g. \'docker exec CONTAINER\''
96
-             )
97
-             ->addOption(
98
-                 'run-path',
99
-                 'p',
100
-                 InputOption::VALUE_OPTIONAL,
101
-                 'The path to the CaptainHook executable \'/usr/bin/captainhook\''
102
-             )
45
+                ->setDescription('Install hooks to your .git/hooks directory')
46
+                ->setHelp('Install git hooks to your .git/hooks directory')
47
+                ->addArgument(
48
+                    'hook',
49
+                    InputArgument::OPTIONAL,
50
+                    'Limit the hooks you want to install. ' .
51
+                    'You can specify multiple hooks with comma as delimiter. ' .
52
+                    'By default all hooks get installed'
53
+                )
54
+                ->addOption(
55
+                    'only-enabled',
56
+                    null,
57
+                    InputOption::VALUE_NONE,
58
+                    'Limit the hooks you want to install to those enabled in your conf. ' .
59
+                    'By default all hooks get installed'
60
+                )
61
+                ->addOption(
62
+                    'force',
63
+                    'f',
64
+                    InputOption::VALUE_NONE,
65
+                    'Force install without confirmation'
66
+                )
67
+                ->addOption(
68
+                    'skip-existing',
69
+                    's',
70
+                    InputOption::VALUE_NONE,
71
+                    'Do not overwrite existing hooks'
72
+                )
73
+                ->addOption(
74
+                    'move-existing-to',
75
+                    null,
76
+                    InputOption::VALUE_OPTIONAL,
77
+                    'Move existing hooks to given directory'
78
+                )
79
+                ->addOption(
80
+                    'bootstrap',
81
+                    'b',
82
+                    InputOption::VALUE_OPTIONAL,
83
+                    'Path to composers vendor/autoload.php'
84
+                )
85
+                ->addOption(
86
+                    'run-mode',
87
+                    'm',
88
+                    InputOption::VALUE_OPTIONAL,
89
+                    'Git hook run mode [php|shell|docker]'
90
+                )
91
+                ->addOption(
92
+                    'run-exec',
93
+                    'e',
94
+                    InputOption::VALUE_OPTIONAL,
95
+                    'The Docker command to start your container e.g. \'docker exec CONTAINER\''
96
+                )
97
+                ->addOption(
98
+                    'run-path',
99
+                    'p',
100
+                    InputOption::VALUE_OPTIONAL,
101
+                    'The path to the CaptainHook executable \'/usr/bin/captainhook\''
102
+                )
103 103
             ->addOption(
104 104
                 'run-git',
105 105
                 'd',
@@ -129,11 +129,11 @@  discard block
 block discarded – undo
129 129
 
130 130
             $installer = new Installer($io, $config, $repo, $template);
131 131
             $installer->setHook(IOUtil::argToString($input->getArgument('hook')))
132
-                      ->setForce(IOUtil::argToBool($input->getOption('force')))
133
-                      ->setSkipExisting(IOUtil::argToBool($input->getOption('skip-existing')))
134
-                      ->setMoveExistingTo(IOUtil::argToString($input->getOption('move-existing-to')))
135
-                      ->setOnlyEnabled(IOUtil::argToBool($input->getOption('only-enabled')))
136
-                      ->run();
132
+                        ->setForce(IOUtil::argToBool($input->getOption('force')))
133
+                        ->setSkipExisting(IOUtil::argToBool($input->getOption('skip-existing')))
134
+                        ->setMoveExistingTo(IOUtil::argToString($input->getOption('move-existing-to')))
135
+                        ->setOnlyEnabled(IOUtil::argToBool($input->getOption('only-enabled')))
136
+                        ->run();
137 137
 
138 138
             return 0;
139 139
         } catch (Exception $e) {
Please login to merge, or discard this patch.