@@ -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'); |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | public function createGitInfoOperator(string $tag = 'v1.0.0', string $branch = 'master'): Info |
67 | 67 | { |
68 | 68 | $operator = $this->getMockBuilder(Info::class) |
69 | - ->disableOriginalConstructor() |
|
70 | - ->getMock(); |
|
69 | + ->disableOriginalConstructor() |
|
70 | + ->getMock(); |
|
71 | 71 | |
72 | 72 | $operator->method('getCurrentTag')->willReturn($tag); |
73 | 73 | $operator->method('getCurrentBranch')->willReturn($branch); |
@@ -84,8 +84,8 @@ discard block |
||
84 | 84 | public function createGitDiffOperator(array $changedFiles = []): Diff |
85 | 85 | { |
86 | 86 | $operator = $this->getMockBuilder(Diff::class) |
87 | - ->disableOriginalConstructor() |
|
88 | - ->getMock(); |
|
87 | + ->disableOriginalConstructor() |
|
88 | + ->getMock(); |
|
89 | 89 | |
90 | 90 | $operator->method('getChangedFiles')->willReturn($changedFiles); |
91 | 91 | |
@@ -101,8 +101,8 @@ discard block |
||
101 | 101 | public function createGitIndexOperator(array $stagedFiles = []): Index |
102 | 102 | { |
103 | 103 | $operator = $this->getMockBuilder(Index::class) |
104 | - ->disableOriginalConstructor() |
|
105 | - ->getMock(); |
|
104 | + ->disableOriginalConstructor() |
|
105 | + ->getMock(); |
|
106 | 106 | |
107 | 107 | $operator->method('getStagedFiles')->willReturn($stagedFiles); |
108 | 108 |