@@ -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}
0 commit comments