Passed
Push — master ( b89ee9...82ea21 )
by Sebastian
03:18
created
src/Console/Command/Add.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
     {
37 37
         parent::configure();
38 38
         $this->setName('add')
39
-             ->setDescription('Add an action to a hook configuration')
40
-             ->setHelp('This command will add an action configuration to a given hook configuration')
41
-             ->addArgument('hook', InputArgument::REQUIRED, 'Hook you want to add the action to');
39
+                ->setDescription('Add an action to a hook configuration')
40
+                ->setHelp('This command will add an action configuration to a given hook configuration')
41
+                ->addArgument('hook', InputArgument::REQUIRED, 'Hook you want to add the action to');
42 42
     }
43 43
 
44 44
     /**
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
 
58 58
         $editor = new Editor($io, $config);
59 59
         $editor->setHook(IOUtil::argToString($input->getArgument('hook')))
60
-               ->setChange('AddAction')
61
-               ->run();
60
+                ->setChange('AddAction')
61
+                ->run();
62 62
 
63 63
         return 0;
64 64
     }
Please login to merge, or discard this patch.
src/Console/Command/Disable.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
     {
37 37
         parent::configure();
38 38
         $this->setName('disable')
39
-             ->setDescription('Disable a hook execution')
40
-             ->setHelp('This command will disable a hook configuration for a given hook')
41
-             ->addArgument('hook', InputArgument::REQUIRED, 'Hook you want to disable');
39
+                ->setDescription('Disable a hook execution')
40
+                ->setHelp('This command will disable a hook configuration for a given hook')
41
+                ->addArgument('hook', InputArgument::REQUIRED, 'Hook you want to disable');
42 42
     }
43 43
 
44 44
     /**
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
 
58 58
         $editor = new Editor($io, $config);
59 59
         $editor->setHook(IOUtil::argToString($input->getArgument('hook')))
60
-               ->setChange('DisableHook')
61
-               ->run();
60
+                ->setChange('DisableHook')
61
+                ->run();
62 62
 
63 63
         return 0;
64 64
     }
Please login to merge, or discard this patch.
src/Console/Command/Hook.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
46 46
     {
47 47
         parent::configure();
48 48
         $this->setName('hook:' . $this->hookName)
49
-             ->setDescription('Run git ' . $this->hookName . ' hook.')
50
-             ->setHelp('This command executes the ' . $this->hookName . ' hook.');
49
+                ->setDescription('Run git ' . $this->hookName . ' hook.')
50
+                ->setHelp('This command executes the ' . $this->hookName . ' hook.');
51 51
 
52 52
         $this->addOption(
53 53
             'bootstrap',
Please login to merge, or discard this patch.
src/Console/Command/Configuration.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -36,17 +36,17 @@  discard block
 block discarded – undo
36 36
     {
37 37
         parent::configure();
38 38
         $this->setName('configure')
39
-             ->setDescription('Configure your hooks')
40
-             ->setHelp('This command creates or updates your captainhook configuration')
41
-             ->addOption('extend', 'e', InputOption::VALUE_NONE, 'Extend existing configuration file')
42
-             ->addOption('force', 'f', InputOption::VALUE_NONE, 'Overwrite existing configuration file')
43
-             ->addOption('advanced', 'a', InputOption::VALUE_NONE, 'More options, but more to type')
44
-             ->addOption(
45
-                 'bootstrap',
46
-                 null,
47
-                 InputOption::VALUE_OPTIONAL,
48
-                 'Path to composers vendor/autoload.php'
49
-             );
39
+                ->setDescription('Configure your hooks')
40
+                ->setHelp('This command creates or updates your captainhook configuration')
41
+                ->addOption('extend', 'e', InputOption::VALUE_NONE, 'Extend existing configuration file')
42
+                ->addOption('force', 'f', InputOption::VALUE_NONE, 'Overwrite existing configuration file')
43
+                ->addOption('advanced', 'a', InputOption::VALUE_NONE, 'More options, but more to type')
44
+                ->addOption(
45
+                    'bootstrap',
46
+                    null,
47
+                    InputOption::VALUE_OPTIONAL,
48
+                    'Path to composers vendor/autoload.php'
49
+                );
50 50
     }
51 51
 
52 52
     /**
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
 
65 65
         $configurator = new Creator($io, $config);
66 66
         $configurator->force(IOUtil::argToBool($input->getOption('force')))
67
-                     ->extend(IOUtil::argToBool($input->getOption('extend')))
68
-                     ->advanced(IOUtil::argToBool($input->getOption('advanced')))
69
-                     ->run();
67
+                        ->extend(IOUtil::argToBool($input->getOption('extend')))
68
+                        ->advanced(IOUtil::argToBool($input->getOption('advanced')))
69
+                        ->run();
70 70
         return 0;
71 71
     }
72 72
 }
Please login to merge, or discard this patch.
src/Console/Command/Install.php 1 patch
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -60,43 +60,43 @@  discard block
 block discarded – undo
60 60
     {
61 61
         parent::configure();
62 62
         $this->setName('install')
63
-             ->setDescription('Install git hooks')
64
-             ->setHelp('This command will install the git hooks to your .git directory')
65
-             ->addArgument(
66
-                 'hook',
67
-                 InputArgument::OPTIONAL,
68
-                 'Limit the hook you want to install. By default all hooks get installed.'
69
-             )
70
-             ->addOption(
71
-                 'force',
72
-                 'f',
73
-                 InputOption::VALUE_NONE,
74
-                 'Force to overwrite existing hooks'
75
-             )
76
-             ->addOption(
77
-                 'bootstrap',
78
-                 null,
79
-                 InputOption::VALUE_OPTIONAL,
80
-                 'Path to composers vendor/autoload.php'
81
-             )
82
-             ->addOption(
83
-                 'run-mode',
84
-                 'm',
85
-                 InputOption::VALUE_OPTIONAL,
86
-                 'Git hook run mode [local|docker]'
87
-             )
88
-             ->addOption(
89
-                 'run-exec',
90
-                 'e',
91
-                 InputOption::VALUE_OPTIONAL,
92
-                 'The Docker command to start your container e.g. \'docker exec CONTAINER\''
93
-             )
94
-             ->addOption(
95
-                 'run-path',
96
-                 'p',
97
-                 InputOption::VALUE_OPTIONAL,
98
-                 'The path to the CaptainHook executable \'/var/www/html\''
99
-             );
63
+                ->setDescription('Install git hooks')
64
+                ->setHelp('This command will install the git hooks to your .git directory')
65
+                ->addArgument(
66
+                    'hook',
67
+                    InputArgument::OPTIONAL,
68
+                    'Limit the hook you want to install. By default all hooks get installed.'
69
+                )
70
+                ->addOption(
71
+                    'force',
72
+                    'f',
73
+                    InputOption::VALUE_NONE,
74
+                    'Force to overwrite existing hooks'
75
+                )
76
+                ->addOption(
77
+                    'bootstrap',
78
+                    null,
79
+                    InputOption::VALUE_OPTIONAL,
80
+                    'Path to composers vendor/autoload.php'
81
+                )
82
+                ->addOption(
83
+                    'run-mode',
84
+                    'm',
85
+                    InputOption::VALUE_OPTIONAL,
86
+                    'Git hook run mode [local|docker]'
87
+                )
88
+                ->addOption(
89
+                    'run-exec',
90
+                    'e',
91
+                    InputOption::VALUE_OPTIONAL,
92
+                    'The Docker command to start your container e.g. \'docker exec CONTAINER\''
93
+                )
94
+                ->addOption(
95
+                    'run-path',
96
+                    'p',
97
+                    InputOption::VALUE_OPTIONAL,
98
+                    'The path to the CaptainHook executable \'/var/www/html\''
99
+                );
100 100
     }
101 101
 
102 102
     /**
@@ -122,11 +122,11 @@  discard block
 block discarded – undo
122 122
 
123 123
         $installer = new Installer($io, $config, $repo);
124 124
         $installer->setForce(IOUtil::argToBool($input->getOption('force')))
125
-                  ->setHook(IOUtil::argToString($input->getArgument('hook')))
126
-                  ->setTemplate(
127
-                      Template\Builder::build($config, $repo, $this->executable, $this->resolver->isPharRelease())
128
-                  )
129
-                  ->run();
125
+                    ->setHook(IOUtil::argToString($input->getArgument('hook')))
126
+                    ->setTemplate(
127
+                        Template\Builder::build($config, $repo, $this->executable, $this->resolver->isPharRelease())
128
+                    )
129
+                    ->run();
130 130
 
131 131
         return 0;
132 132
     }
Please login to merge, or discard this patch.
src/Console/Command/Enable.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
     {
37 37
         parent::configure();
38 38
         $this->setName('enable')
39
-             ->setDescription('Enable a hook execution')
40
-             ->setHelp('This command will enable a hook configuration for a given hook')
41
-             ->addArgument('hook', InputArgument::REQUIRED, 'Hook you want to enable');
39
+                ->setDescription('Enable a hook execution')
40
+                ->setHelp('This command will enable a hook configuration for a given hook')
41
+                ->addArgument('hook', InputArgument::REQUIRED, 'Hook you want to enable');
42 42
     }
43 43
 
44 44
     /**
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
 
58 58
         $editor = new Editor($io, $config);
59 59
         $editor->setHook(IOUtil::argToString($input->getArgument('hook')))
60
-               ->setChange('EnableHook')
61
-               ->run();
60
+                ->setChange('EnableHook')
61
+                ->run();
62 62
 
63 63
         return 0;
64 64
     }
Please login to merge, or discard this patch.
tests/CaptainHook/Composer/CmdTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -128,8 +128,8 @@  discard block
 block discarded – undo
128 128
     {
129 129
         $composer = $this->createComposerMock($extra);
130 130
         $event    = $this->getMockBuilder(Event::class)
131
-                         ->disableOriginalConstructor()
132
-                         ->getMock();
131
+                            ->disableOriginalConstructor()
132
+                            ->getMock();
133 133
 
134 134
         $event->expects($this->once())->method('getIO')->willReturn(new NullIO());
135 135
         $event->expects($this->once())->method('getComposer')->willReturn($composer);
@@ -151,8 +151,8 @@  discard block
 block discarded – undo
151 151
         $package->expects($this->atLeast(1))->method('getExtra')->willReturn($extra);
152 152
 
153 153
         $composer = $this->getMockBuilder(Composer::class)
154
-                         ->disableOriginalConstructor()
155
-                         ->getMock();
154
+                            ->disableOriginalConstructor()
155
+                            ->getMock();
156 156
         $composer->expects($this->atLeast(1))->method('getPackage')->willReturn($package);
157 157
 
158 158
         return $composer;
Please login to merge, or discard this patch.
tests/CaptainHook/Console/Application/CliTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
     {
27 27
         $input = new ArrayInput(['--version' => true]);
28 28
         $output = $this->getMockBuilder(NullOutput::class)
29
-                       ->disableOriginalConstructor()
30
-                       ->getMock();
29
+                        ->disableOriginalConstructor()
30
+                        ->getMock();
31 31
 
32 32
         $output->expects($this->once())->method('writeLn');
33 33
 
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $input = new ArrayInput(['command' => 'list']);
48 48
         $output = $this->getMockBuilder(NullOutput::class)
49
-                       ->disableOriginalConstructor()
50
-                       ->getMock();
49
+                        ->disableOriginalConstructor()
50
+                        ->getMock();
51 51
 
52 52
         $output->expects($this->atLeastOnce())->method('write');
53 53
 
Please login to merge, or discard this patch.
tests/CaptainHook/Runner/InstallerTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -83,9 +83,9 @@
 block discarded – undo
83 83
         $template = $this->createTemplateMock();
84 84
 
85 85
         $template->expects($this->once())
86
-                 ->method('getCode')
87
-                 ->with('pre-commit')
88
-                 ->willReturn('');
86
+                    ->method('getCode')
87
+                    ->with('pre-commit')
88
+                    ->willReturn('');
89 89
 
90 90
         $runner = new Installer($io, $config, $repo);
91 91
         $runner->setTemplate($template);
Please login to merge, or discard this patch.