@@ -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 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $this->createGitInfoOperator('', 'Foo bar baz') |
50 | 50 | ); |
51 | 51 | |
52 | - $action = new Config\Action(EnsureNaming::class, ['regex' => '#bar#']); |
|
52 | + $action = new Config\Action(EnsureNaming::class, ['regex' => '#bar#']); |
|
53 | 53 | |
54 | 54 | $standard = new EnsureNaming(); |
55 | 55 | $standard->execute($config, $io, $repo, $action); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $repo->expects($this->once())->method('getInfoOperator')->willReturn( |
75 | 75 | $this->createGitInfoOperator('', 'Foo bar baz') |
76 | 76 | ); |
77 | - $action = new Config\Action( |
|
77 | + $action = new Config\Action( |
|
78 | 78 | EnsureNaming::class, |
79 | 79 | [ |
80 | 80 | 'regex' => '#.*#', |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | $io = new NullIO(); |
101 | 101 | $config = new Config(CH_PATH_FILES . '/captainhook.json'); |
102 | - $repo = $this->createRepositoryMock(); |
|
102 | + $repo = $this->createRepositoryMock(); |
|
103 | 103 | $action = new Config\Action(EnsureNaming::class); |
104 | 104 | |
105 | 105 | $standard = new EnsureNaming(); |