Passed
Push — main ( bb3ddf...7b0feb )
by Sebastian
04:09 queued 37s
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
     }
104 104
 
105 105
     /**
@@ -123,11 +123,11 @@  discard block
 block discarded – undo
123 123
 
124 124
             $installer = new Installer($io, $config, $repo, $template);
125 125
             $installer->setHook(IOUtil::argToString($input->getArgument('hook')))
126
-                      ->setForce(IOUtil::argToBool($input->getOption('force')))
127
-                      ->setSkipExisting(IOUtil::argToBool($input->getOption('skip-existing')))
128
-                      ->setMoveExistingTo(IOUtil::argToString($input->getOption('move-existing-to')))
129
-                      ->setOnlyEnabled(IOUtil::argToBool($input->getOption('only-enabled')))
130
-                      ->run();
126
+                        ->setForce(IOUtil::argToBool($input->getOption('force')))
127
+                        ->setSkipExisting(IOUtil::argToBool($input->getOption('skip-existing')))
128
+                        ->setMoveExistingTo(IOUtil::argToString($input->getOption('move-existing-to')))
129
+                        ->setOnlyEnabled(IOUtil::argToBool($input->getOption('only-enabled')))
130
+                        ->run();
131 131
 
132 132
             return 0;
133 133
         } catch (Exception $e) {
Please login to merge, or discard this patch.
src/Console/Command/Configuration.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -38,17 +38,17 @@  discard block
 block discarded – undo
38 38
     {
39 39
         parent::configure();
40 40
         $this->setName('configure')
41
-             ->setDescription('Create or update a captainhook.json configuration')
42
-             ->setHelp('Create or update a captainhook.json configuration')
43
-             ->addOption('extend', 'e', InputOption::VALUE_NONE, 'Extend existing configuration file')
44
-             ->addOption('force', 'f', InputOption::VALUE_NONE, 'Overwrite existing configuration file')
45
-             ->addOption('advanced', 'a', InputOption::VALUE_NONE, 'More options, but more to type')
46
-             ->addOption(
47
-                 'bootstrap',
48
-                 null,
49
-                 InputOption::VALUE_OPTIONAL,
50
-                 'Path to composers vendor/autoload.php'
51
-             );
41
+                ->setDescription('Create or update a captainhook.json configuration')
42
+                ->setHelp('Create or update a captainhook.json configuration')
43
+                ->addOption('extend', 'e', InputOption::VALUE_NONE, 'Extend existing configuration file')
44
+                ->addOption('force', 'f', InputOption::VALUE_NONE, 'Overwrite existing configuration file')
45
+                ->addOption('advanced', 'a', InputOption::VALUE_NONE, 'More options, but more to type')
46
+                ->addOption(
47
+                    'bootstrap',
48
+                    null,
49
+                    InputOption::VALUE_OPTIONAL,
50
+                    'Path to composers vendor/autoload.php'
51
+                );
52 52
     }
53 53
 
54 54
     /**
@@ -69,10 +69,10 @@  discard block
 block discarded – undo
69 69
 
70 70
             $configurator = new Creator($io, $config);
71 71
             $configurator->force(IOUtil::argToBool($input->getOption('force')))
72
-                         ->extend(IOUtil::argToBool($input->getOption('extend')))
73
-                         ->advanced(IOUtil::argToBool($input->getOption('advanced')))
74
-                         ->setExecutable($this->resolver->getExecutable())
75
-                         ->run();
72
+                            ->extend(IOUtil::argToBool($input->getOption('extend')))
73
+                            ->advanced(IOUtil::argToBool($input->getOption('advanced')))
74
+                            ->setExecutable($this->resolver->getExecutable())
75
+                            ->run();
76 76
 
77 77
             return 0;
78 78
         } catch (Exception $e) {
Please login to merge, or discard this patch.