Passed
Push — main ( 7b0feb...0b2105 )
by Sebastian
13:43
created
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.
tests/unit/Runner/Action/Cli/Command/Placeholder/BranchFilesTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
             ->method('getBranchRevFromRefLog')
47 47
             ->willReturn('main');
48 48
         $info->expects($this->once())
49
-             ->method('getCurrentBranch')
50
-             ->willReturn('foo');
49
+                ->method('getCurrentBranch')
50
+                ->willReturn('foo');
51 51
 
52 52
         $repo->expects($this->atLeastOnce())->method('getLogOperator')->willReturn($log);
53 53
         $repo->expects($this->atLeastOnce())->method('getDiffOperator')->willReturn($diff);
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
         $diff   = $this->createGitDiffOperator(['file1.php', 'file2.php', 'README.md', 'foo.txt']);
99 99
 
100 100
         $info->expects($this->once())
101
-             ->method('getCurrentBranch')
102
-             ->willReturn('foo');
101
+                ->method('getCurrentBranch')
102
+                ->willReturn('foo');
103 103
 
104 104
         $repo->expects($this->atLeastOnce())->method('getDiffOperator')->willReturn($diff);
105 105
         $repo->expects($this->atLeastOnce())->method('getInfoOperator')->willReturn($info);
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
         $diff   = $this->createGitDiffOperator(['foo/file1.php', 'foo/file2.php', 'README.md', 'foo.txt']);
123 123
 
124 124
         $info->expects($this->once())
125
-             ->method('getCurrentBranch')
126
-             ->willReturn('foo');
125
+                ->method('getCurrentBranch')
126
+                ->willReturn('foo');
127 127
 
128 128
         $repo->expects($this->atLeastOnce())->method('getDiffOperator')->willReturn($diff);
129 129
         $repo->expects($this->atLeastOnce())->method('getInfoOperator')->willReturn($info);
Please login to merge, or discard this patch.