Passed
Push — master ( de7969...0d30a7 )
by Sebastian
02:09
created
tests/CaptainHook/Config/Mockery.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
     public function createConfigMock(bool $loadedFromFile = false, string $path = ''): CHConfig
24 24
     {
25 25
         $config = $this->getMockBuilder(CHConfig::class)
26
-                       ->disableOriginalConstructor()
27
-                       ->getMock();
26
+                        ->disableOriginalConstructor()
27
+                        ->getMock();
28 28
 
29 29
         $config->method('isLoadedFromFile')->willReturn($loadedFromFile);
30 30
         $config->method('getPath')->willReturn($path);
Please login to merge, or discard this patch.
tests/CaptainHook/Console/IO/DefaultIOTest.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
     public function getOutputMock()
47 47
     {
48 48
         return $this->getMockBuilder(OutputInterface::class)
49
-                     ->disableOriginalConstructor()
50
-                     ->getMock();
49
+                        ->disableOriginalConstructor()
50
+                        ->getMock();
51 51
     }
52 52
 
53 53
     /**
Please login to merge, or discard this patch.
tests/CaptainHook/Console/IO/ComposerIOTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
     public function setUp(): void
19 19
     {
20 20
         $mock = $this->getMockBuilder(IOInterface::class)
21
-                     ->disableOriginalConstructor()
22
-                     ->getMock();
21
+                        ->disableOriginalConstructor()
22
+                        ->getMock();
23 23
         $mock->method('isInteractive')->willReturn(false);
24 24
         $mock->method('isDebug')->willReturn(false);
25 25
         $mock->method('isVerbose')->willReturn(false);
Please login to merge, or discard this patch.
tests/CaptainHook/Console/Command/AddTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
         );
56 56
 
57 57
         $io = $this->getMockBuilder(DefaultIO::class)
58
-                   ->disableOriginalConstructor()
59
-                   ->getMock();
58
+                    ->disableOriginalConstructor()
59
+                    ->getMock();
60 60
 
61 61
         $io->method('ask')->will($this->onConsecutiveCalls('\\Foo\\Bar', 'n'));
62 62
         $io->expects($this->once())->method('write');
Please login to merge, or discard this patch.
tests/CaptainHook/Console/Command/DisableTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
         );
56 56
 
57 57
         $io = $this->getMockBuilder(DefaultIO::class)
58
-                   ->disableOriginalConstructor()
59
-                   ->getMock();
58
+                    ->disableOriginalConstructor()
59
+                    ->getMock();
60 60
         $io->expects($this->once())->method('write');
61 61
 
62 62
         $add->setIO($io);
Please login to merge, or discard this patch.
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/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.