@@ -42,11 +42,13 @@ public function handle()
42
42
43
43
if ($ this ->option ('fetch ' )) {
44
44
if (! $ this ->fetchLatestBundle ()) {
45
- $ this ->warn ("Latest bundle not yet available. Try again soon. " );
45
+ $ this ->warn ('Latest bundle not yet available. Try again soon. ' );
46
+
46
47
return static ::FAILURE ;
47
48
}
48
49
49
- $ this ->info ("Latest bundle downloaded. " );
50
+ $ this ->info ('Latest bundle downloaded. ' );
51
+
50
52
return static ::SUCCESS ;
51
53
}
52
54
@@ -138,21 +140,21 @@ private function finderToZip(Finder $finder, ZipArchive $zip, ?string $path = nu
138
140
continue ;
139
141
}
140
142
141
- $ zip ->addFile ($ file ->getRealPath (), str ($ path )->finish (DIRECTORY_SEPARATOR ) . $ file ->getRelativePathname ());
143
+ $ zip ->addFile ($ file ->getRealPath (), str ($ path )->finish (DIRECTORY_SEPARATOR ). $ file ->getRelativePathname ());
142
144
}
143
145
}
144
146
145
147
private function sendToZephpyr ()
146
148
{
147
149
return Http::withToken (config ('nativephp-internal.zephpyr.token ' ))
148
150
->attach ('archive ' , fopen ($ this ->zipPath , 'r ' ), $ this ->zipName )
149
- ->post (str (config ('nativephp-internal.zephpyr.host ' ))->finish ('/ ' ) . 'api/build/ ' . $ this ->key );
151
+ ->post (str (config ('nativephp-internal.zephpyr.host ' ))->finish ('/ ' ). 'api/build/ ' . $ this ->key );
150
152
}
151
153
152
154
private function fetchLatestBundle (): bool
153
155
{
154
156
$ response = Http::withToken (config ('nativephp-internal.zephpyr.token ' ))
155
- ->get (str (config ('nativephp-internal.zephpyr.host ' ))->finish ('/ ' ) . 'api/download/ ' . $ this ->key );
157
+ ->get (str (config ('nativephp-internal.zephpyr.host ' ))->finish ('/ ' ). 'api/download/ ' . $ this ->key );
156
158
157
159
if ($ response ->failed ()) {
158
160
return false ;
0 commit comments