@@ -30,7 +30,7 @@ |
||
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 | } |
@@ -31,7 +31,7 @@ |
||
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 { |
@@ -33,5 +33,5 @@ |
||
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 |