Skip to content

Commit e5ed1c7

Browse files
authored
One day eslint will have a PHP counterpart that works in Atom... 🤔
1 parent 1679d86 commit e5ed1c7

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

app/Http/Controllers/Daemon/PackController.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct()
4040
}
4141

4242
/**
43-
* Pulls an install pack archive from the system
43+
* Pulls an install pack archive from the system.
4444
*
4545
* @param \Illuminate\Http\Request $request
4646
* @return \Illuminate\Http\Response
@@ -49,12 +49,12 @@ public function pull(Request $request, $uuid)
4949
{
5050
$pack = Models\ServicePack::where('uuid', $uuid)->first();
5151

52-
if (!$pack) {
53-
return response()->json([ 'error' => 'No such pack.' ], 404);
52+
if (! $pack) {
53+
return response()->json(['error' => 'No such pack.'], 404);
5454
}
5555

5656
if (! Storage::exists('packs/' . $pack->uuid . '/archive.tar.gz')) {
57-
return response()->json([ 'error' => 'There is no archive available for this pack.' ], 503);
57+
return response()->json(['error' => 'There is no archive available for this pack.'], 503);
5858
}
5959

6060
return response()->download(storage_path('app/packs/' . $pack->uuid . '/archive.tar.gz'));
@@ -70,12 +70,12 @@ public function hash(Request $request, $uuid)
7070
{
7171
$pack = Models\ServicePack::where('uuid', $uuid)->first();
7272

73-
if (!$pack) {
74-
return response()->json([ 'error' => 'No such pack.' ], 404);
73+
if (! $pack) {
74+
return response()->json(['error' => 'No such pack.'], 404);
7575
}
7676

7777
if (! Storage::exists('packs/' . $pack->uuid . '/archive.tar.gz')) {
78-
return response()->json([ 'error' => 'There is no archive available for this pack.' ], 503);
78+
return response()->json(['error' => 'There is no archive available for this pack.'], 503);
7979
}
8080

8181
return response()->json([
@@ -84,13 +84,12 @@ public function hash(Request $request, $uuid)
8484
}
8585

8686
/**
87-
* Pulls an update pack archive from the system
87+
* Pulls an update pack archive from the system.
8888
*
8989
* @param \Illuminate\Http\Request $request
9090
* @return \Illuminate\Http\Response
9191
*/
9292
public function pullUpdate(Request $request)
9393
{
94-
9594
}
9695
}

app/Repositories/ServerRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,7 @@ public function deleteServer($id, $force)
786786
}
787787

788788
$server->delete();
789+
789790
return DB::commit();
790791
} catch (\Exception $ex) {
791792
DB::rollBack();

0 commit comments

Comments
 (0)