@@ -28,7 +28,7 @@ protected function setUp(): void
28
28
public function it_can_instantiate (): void
29
29
{
30
30
/** @var GithubTagType $github */
31
- $ github = ( resolve (GithubRepositoryType::class) )->create ();
31
+ $ github = resolve (GithubRepositoryType::class)->create ();
32
32
33
33
$ this ->assertInstanceOf (GithubTagType::class, $ github );
34
34
}
@@ -39,7 +39,7 @@ public function it_can_instantiate_branch_type(): void
39
39
config (['self-update.repository_types.github.use_branch ' => 'v2 ' ]);
40
40
41
41
/** @var GithubBranchType $github */
42
- $ github = ( resolve (GithubRepositoryType::class) )->create ();
42
+ $ github = resolve (GithubRepositoryType::class)->create ();
43
43
44
44
$ this ->assertInstanceOf (GithubBranchType::class, $ github );
45
45
}
@@ -52,14 +52,14 @@ public function it_cannot_instantiate_and_fails_with_exception(): void
52
52
$ this ->expectException (\Exception::class);
53
53
54
54
/** @var GithubTagType $github */
55
- $ github = ( resolve (GithubRepositoryType::class) )->create ();
55
+ $ github = resolve (GithubRepositoryType::class)->create ();
56
56
}
57
57
58
58
/** @test */
59
59
public function it_can_run_update (): void
60
60
{
61
61
/** @var GithubTagType $github */
62
- $ github = ( resolve (GithubRepositoryType::class) )->create ();
62
+ $ github = resolve (GithubRepositoryType::class)->create ();
63
63
64
64
Http::fake ([
65
65
'* ' => $ this ->getResponse200ZipFile (),
@@ -89,7 +89,7 @@ public function it_can_run_update(): void
89
89
public function it_can_get_the_version_installed (): void
90
90
{
91
91
/** @var GithubTagType $github */
92
- $ github = ( resolve (GithubRepositoryType::class) )->create ();
92
+ $ github = resolve (GithubRepositoryType::class)->create ();
93
93
$ this ->assertEmpty ($ github ->getVersionInstalled ());
94
94
95
95
config (['self-update.version_installed ' => '1.0 ' ]);
@@ -103,15 +103,15 @@ public function it_cannot_get_new_version_available_and_fails_with_exception():
103
103
$ this ->expectExceptionMessage ('Version installed not found. ' );
104
104
105
105
/** @var GithubTagType $github */
106
- $ github = ( resolve (GithubRepositoryType::class) )->create ();
106
+ $ github = resolve (GithubRepositoryType::class)->create ();
107
107
$ github ->isNewVersionAvailable ();
108
108
}
109
109
110
110
/** @test */
111
111
public function it_can_get_new_version_available_from_type_tag_without_version_file (): void
112
112
{
113
113
/** @var GithubTagType $github */
114
- $ github = ( resolve (GithubRepositoryType::class) )->create ();
114
+ $ github = resolve (GithubRepositoryType::class)->create ();
115
115
$ github ->deleteVersionFile ();
116
116
117
117
Event::fake ();
@@ -132,7 +132,7 @@ public function it_can_get_new_version_available_from_type_tag_without_version_f
132
132
public function it_can_get_new_version_available_from_type_tag_with_version_file (): void
133
133
{
134
134
/** @var GithubTagType $github */
135
- $ github = ( resolve (GithubRepositoryType::class) )->create ();
135
+ $ github = resolve (GithubRepositoryType::class)->create ();
136
136
$ github ->setVersionFile ('v2.7 ' );
137
137
138
138
$ this ->assertFalse ($ github ->isNewVersionAvailable ('v2.7 ' ));
@@ -149,7 +149,7 @@ public function it_can_get_new_version_available_from_type_branch_without_versio
149
149
config (['self-update.repository_types.github.use_branch ' => 'v2 ' ]);
150
150
151
151
/** @var GithubBranchType $github */
152
- $ github = ( resolve (GithubRepositoryType::class) )->create ();
152
+ $ github = resolve (GithubRepositoryType::class)->create ();
153
153
$ github ->deleteVersionFile ();
154
154
155
155
Http::fake ([
@@ -166,7 +166,7 @@ public function it_can_get_new_version_available_from_type_branch_with_version_f
166
166
config (['self-update.repository_types.github.use_branch ' => 'v2 ' ]);
167
167
168
168
/** @var GithubBranchType $github */
169
- $ github = ( resolve (GithubRepositoryType::class) )->create ();
169
+ $ github = resolve (GithubRepositoryType::class)->create ();
170
170
$ github ->setVersionFile ('2020-02-07T21:09:15Z ' );
171
171
172
172
$ this ->assertFalse ($ github ->isNewVersionAvailable ('2020-02-08T21:09:15Z ' ));
@@ -177,7 +177,7 @@ public function it_can_get_new_version_available_from_type_branch_with_version_f
177
177
public function it_can_fetch_github_tag_releases_latest (): void
178
178
{
179
179
/** @var GithubTagType $github */
180
- $ github = ( resolve (GithubRepositoryType::class) )->create ();
180
+ $ github = resolve (GithubRepositoryType::class)->create ();
181
181
182
182
Http::fakeSequence ()
183
183
->pushResponse ($ this ->getResponse200Type ('tag ' ))
@@ -194,7 +194,7 @@ public function it_can_fetch_github_tag_releases_latest(): void
194
194
public function it_can_fetch_github_tag_releases_specific_version (): void
195
195
{
196
196
/** @var GithubTagType $github */
197
- $ github = ( resolve (GithubRepositoryType::class) )->create ();
197
+ $ github = resolve (GithubRepositoryType::class)->create ();
198
198
199
199
Http::fakeSequence ()
200
200
->pushResponse ($ this ->getResponse200Type ('tag ' ))
@@ -211,7 +211,7 @@ public function it_can_fetch_github_tag_releases_specific_version(): void
211
211
public function it_can_fetch_github_tag_releases_and_takes_latest_if_version_not_available (): void
212
212
{
213
213
/** @var GithubTagType $github */
214
- $ github = ( resolve (GithubRepositoryType::class) )->create ();
214
+ $ github = resolve (GithubRepositoryType::class)->create ();
215
215
216
216
Http::fakeSequence ()
217
217
->pushResponse ($ this ->getResponse200Type ('tag ' ))
@@ -230,7 +230,7 @@ public function it_can_fetch_github_branch_releases_latest(): void
230
230
config (['self-update.repository_types.github.use_branch ' => 'v2 ' ]);
231
231
232
232
/** @var GithubBranchType $github */
233
- $ github = ( resolve (GithubRepositoryType::class) )->create ();
233
+ $ github = resolve (GithubRepositoryType::class)->create ();
234
234
235
235
Http::fakeSequence ()
236
236
->pushResponse ($ this ->getResponse200Type ('branch ' ))
@@ -249,7 +249,7 @@ public function it_can_fetch_github_branch_releases_specific_version(): void
249
249
config (['self-update.repository_types.github.use_branch ' => 'v2 ' ]);
250
250
251
251
/** @var GithubBranchType $github */
252
- $ github = ( resolve (GithubRepositoryType::class) )->create ();
252
+ $ github = resolve (GithubRepositoryType::class)->create ();
253
253
254
254
Http::fakeSequence ()
255
255
->pushResponse ($ this ->getResponse200Type ('branch ' ))
@@ -268,7 +268,7 @@ public function it_can_fetch_github_branch_releases_and_takes_latest_if_version_
268
268
config (['self-update.repository_types.github.use_branch ' => 'v2 ' ]);
269
269
270
270
/** @var GithubBranchType $github */
271
- $ github = ( resolve (GithubRepositoryType::class) )->create ();
271
+ $ github = resolve (GithubRepositoryType::class)->create ();
272
272
273
273
Http::fakeSequence ()
274
274
->pushResponse ($ this ->getResponse200Type ('branch ' ))
@@ -287,7 +287,7 @@ public function it_cannot_fetch_github_branch_releases_if_response_empty(): void
287
287
config (['self-update.repository_types.github.use_branch ' => 'v2 ' ]);
288
288
289
289
/** @var GithubBranchType $github */
290
- $ github = ( resolve (GithubRepositoryType::class) )->create ();
290
+ $ github = resolve (GithubRepositoryType::class)->create ();
291
291
292
292
Http::fake ([
293
293
'* ' => $ this ->getResponseEmpty (),
0 commit comments