@@ -29,8 +29,8 @@ discard block |
||
29 | 29 | public function createResolverMock(string $executable = 'vendor/bin/captainhook', bool $isPhar = false): Resolver |
30 | 30 | { |
31 | 31 | $repo = $this->getMockBuilder(Resolver::class) |
32 | - ->disableOriginalConstructor() |
|
33 | - ->getMock(); |
|
32 | + ->disableOriginalConstructor() |
|
33 | + ->getMock(); |
|
34 | 34 | |
35 | 35 | $repo->method('getExecutable')->willReturn($executable); |
36 | 36 | $repo->method('isPharRelease')->willReturn($isPhar); |
@@ -47,8 +47,8 @@ discard block |
||
47 | 47 | public function createRepositoryMock(string $root = ''): Repository |
48 | 48 | { |
49 | 49 | $repo = $this->getMockBuilder(Repository::class) |
50 | - ->disableOriginalConstructor() |
|
51 | - ->getMock(); |
|
50 | + ->disableOriginalConstructor() |
|
51 | + ->getMock(); |
|
52 | 52 | |
53 | 53 | $repo->method('getRoot')->willReturn($root); |
54 | 54 | $repo->method('getHooksDir')->willReturn($root . '/.git/hooks'); |
@@ -65,8 +65,8 @@ discard block |
||
65 | 65 | public function createGitInfoOperator(string $tag = 'v1.0.0'): Info |
66 | 66 | { |
67 | 67 | $operator = $this->getMockBuilder(Info::class) |
68 | - ->disableOriginalConstructor() |
|
69 | - ->getMock(); |
|
68 | + ->disableOriginalConstructor() |
|
69 | + ->getMock(); |
|
70 | 70 | |
71 | 71 | $operator->method('getCurrentTag')->willReturn($tag); |
72 | 72 | |
@@ -82,8 +82,8 @@ discard block |
||
82 | 82 | public function createGitDiffOperator(array $changedFiles = []): Diff |
83 | 83 | { |
84 | 84 | $operator = $this->getMockBuilder(Diff::class) |
85 | - ->disableOriginalConstructor() |
|
86 | - ->getMock(); |
|
85 | + ->disableOriginalConstructor() |
|
86 | + ->getMock(); |
|
87 | 87 | |
88 | 88 | $operator->method('getChangedFiles')->willReturn($changedFiles); |
89 | 89 | |
@@ -99,8 +99,8 @@ discard block |
||
99 | 99 | public function createGitIndexOperator(array $stagedFiles = []): Index |
100 | 100 | { |
101 | 101 | $operator = $this->getMockBuilder(Index::class) |
102 | - ->disableOriginalConstructor() |
|
103 | - ->getMock(); |
|
102 | + ->disableOriginalConstructor() |
|
103 | + ->getMock(); |
|
104 | 104 | |
105 | 105 | $operator->method('getStagedFiles')->willReturn($stagedFiles); |
106 | 106 |
@@ -26,8 +26,8 @@ discard block |
||
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 |
||
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 |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | } |
106 | 106 | ob_start(); |
107 | 107 | $class::$method(); |
108 | - return (string)ob_get_clean(); |
|
108 | + return (string) ob_get_clean(); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | */ |
135 | 135 | private function isStaticMethodCall(string $class): bool |
136 | 136 | { |
137 | - return (bool)preg_match('#^\\\\.+::.+$#i', $class); |
|
137 | + return (bool) preg_match('#^\\\\.+::.+$#i', $class); |
|
138 | 138 | } |
139 | 139 | |
140 | 140 | /** |