Passed
Push — master ( b89ee9...82ea21 )
by Sebastian
03:18
created
src/Runner/Action/PHP.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         }
79 79
         ob_start();
80 80
         $class::$method();
81
-        return (string)ob_get_clean();
81
+        return (string) ob_get_clean();
82 82
     }
83 83
 
84 84
     /**
@@ -107,6 +107,6 @@  discard block
 block discarded – undo
107 107
      */
108 108
     protected function isStaticMethodCall(string $class): bool
109 109
     {
110
-        return (bool)preg_match('#^\\\\.+::.+$#i', $class);
110
+        return (bool) preg_match('#^\\\\.+::.+$#i', $class);
111 111
     }
112 112
 }
Please login to merge, or discard this patch.
src/Runner/Hook/PrepareCommitMsg.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,9 +67,9 @@
 block discarded – undo
67 67
     public function beforeHook(): void
68 68
     {
69 69
         $this->commentChar = $this->repository->getConfigOperator()->getSafely('core.commentchar', '#');
70
-        $this->file        = (string)$this->io->getArgument('file');
71
-        $this->mode        = (string)$this->io->getArgument('mode');
72
-        $this->hash        = (string)$this->io->getArgument('hash');
70
+        $this->file        = (string) $this->io->getArgument('file');
71
+        $this->mode        = (string) $this->io->getArgument('mode');
72
+        $this->hash        = (string) $this->io->getArgument('hash');
73 73
 
74 74
         if (empty($this->file)) {
75 75
             throw new RuntimeException('commit message file argument is missing');
Please login to merge, or discard this patch.
tests/CaptainHook/Composer/CmdTest.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
      */
102 102
     public function testSetupNoConfig(): void
103 103
     {
104
-        $repo   = new DummyRepo(
104
+        $repo = new DummyRepo(
105 105
             [],
106 106
             [
107 107
                 'vendor' => [
Please login to merge, or discard this patch.
tests/CaptainHook/Console/IO/ComposerIOTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
             true,
127 127
             $this->io->askAndValidate(
128 128
                 'foo',
129
-                function () {
129
+                function() {
130 130
                     return true;
131 131
                 },
132 132
                 null,
Please login to merge, or discard this patch.
tests/CaptainHook/Console/IO/DefaultIOTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@
 block discarded – undo
232 232
         $io     = new DefaultIO($input, $output, $helper);
233 233
         $answer = $io->askAndValidate(
234 234
             'foo',
235
-            function () {
235
+            function() {
236 236
                 return true;
237 237
             }
238 238
         );
Please login to merge, or discard this patch.
tests/CaptainHook/Console/IO/NullIOTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
             true,
111 111
             $io->askAndValidate(
112 112
                 'foo',
113
-                function () {
113
+                function() {
114 114
                     return true;
115 115
                 },
116 116
                 false,
Please login to merge, or discard this patch.
tests/CaptainHook/Console/Command/AddTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         $this->expectException(Exception::class);
31 31
 
32
-        $input   = new ArrayInput(
32
+        $input = new ArrayInput(
33 33
             [
34 34
                 'hook' => 'pre-commit',
35 35
                 '--configuration' => 'foo'
Please login to merge, or discard this patch.
tests/CaptainHook/Console/Command/DisableTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         $this->expectException(Exception::class);
31 31
 
32
-        $input   = new ArrayInput(
32
+        $input = new ArrayInput(
33 33
             [
34 34
                 'hook' => 'pre-commit',
35 35
                 '--configuration' => 'foo'
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.