@@ -50,6 +50,7 @@ public function getInstalledMods(Server $server, DaemonFileRepository $fileRepos
5050 ->toArray ();
5151 } catch (Exception $ exception ) {
5252 report ($ exception );
53+
5354 return [];
5455 }
5556 }
@@ -117,6 +118,7 @@ public function addMod(Server $server, DaemonFileRepository $fileRepository, str
117118 return true ;
118119 } catch (Exception $ exception ) {
119120 report ($ exception );
121+
120122 return false ;
121123 }
122124 }
@@ -148,6 +150,7 @@ public function removeMod(Server $server, DaemonFileRepository $fileRepository,
148150 return true ;
149151 } catch (Exception $ exception ) {
150152 report ($ exception );
153+
151154 return false ;
152155 }
153156 }
@@ -209,6 +212,7 @@ public function getModDetails(string $modId): array
209212 return array_filter ($ details , fn ($ v ) => $ v !== null );
210213 } catch (Exception $ exception ) {
211214 report ($ exception );
215+
212216 return ['modId ' => $ modId ];
213217 }
214218 });
@@ -221,7 +225,7 @@ public function getModDetails(string $modId): array
221225 */
222226 public function browseWorkshop (string $ search = '' , int $ page = 1 ): array
223227 {
224- $ cacheKey = " arma_reforger_browse: " . md5 ($ search ) . ": $ page " ;
228+ $ cacheKey = ' arma_reforger_browse: ' . md5 ($ search ) . ": $ page " ;
225229
226230 return cache ()->remember ($ cacheKey , now ()->addMinutes (15 ), function () use ($ search , $ page ) {
227231 try {
@@ -279,6 +283,7 @@ public function browseWorkshop(string $search = '', int $page = 1): array
279283 ];
280284 } catch (Exception $ exception ) {
281285 report ($ exception );
286+
282287 return ['mods ' => [], 'total ' => 0 , 'page ' => $ page , 'perPage ' => 24 ];
283288 }
284289 });
0 commit comments