Completed
Branch master (e20bb5)
by Lars
06:30
created
Category
app/Providers/AuthServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         // should return either a User instance or null. You're free to obtain
31 31
         // the User instance via an API token or any other method necessary.
32 32
 
33
-        $this->app['auth']->viaRequest('api', function ($request) {
33
+        $this->app[ 'auth' ]->viaRequest('api', function($request) {
34 34
             if ($request->input('api_token')) {
35 35
                 return User::where('api_token', $request->input('api_token'))->first();
36 36
             }
Please login to merge, or discard this patch.
app/Http/Controllers/BlogController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 
32 32
         if ($blogResult != null) {
33 33
             $blogArticle = new BlogArticle();
34
-            $blogResult["articles"] = $blogArticle->where("blogId", $blogResult["id"])->get();
34
+            $blogResult[ "articles" ] = $blogArticle->where("blogId", $blogResult[ "id" ])->get();
35 35
 
36 36
             return $blogResult != null ? FormatHelper::formatData($blogResult) : FormatHelper::formatData(array(), FALSE);
37 37
         } else {
Please login to merge, or discard this patch.
app/BlogArticle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,5 +33,5 @@
 block discarded – undo
33 33
         'blogId', 'title', 'author', 'url'
34 34
     ];
35 35
 
36
-    protected $hidden = [];
36
+    protected $hidden = [ ];
37 37
 }
38 38
\ No newline at end of file
Please login to merge, or discard this patch.