@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Author: Nil Portugués Calderó <[email protected]> |
|
4 | - * Date: 12/7/15 |
|
5 | - * Time: 12:17 AM. |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - */ |
|
3 | + * Author: Nil Portugués Calderó <[email protected]> |
|
4 | + * Date: 12/7/15 |
|
5 | + * Time: 12:17 AM. |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace NilPortugues\Laravel5\JsonApi\Controller; |
12 | 12 |
@@ -45,11 +45,11 @@ |
||
45 | 45 | $this->mergeConfigFrom(__DIR__.self::PATH, 'jsonapi'); |
46 | 46 | $this->app->singleton( |
47 | 47 | JsonApiSerializer::class, |
48 | - function ($app) { |
|
48 | + function($app) { |
|
49 | 49 | $mapping = $app['config']->get('jsonapi'); |
50 | 50 | $transformer = new JsonApiTransformer(self::parseRoutes(new Mapper($mapping))); |
51 | 51 | |
52 | - $cacheableConfig = function () use ($transformer) { |
|
52 | + $cacheableConfig = function() use ($transformer) { |
|
53 | 53 | return new JsonApiSerializer($transformer); |
54 | 54 | }; |
55 | 55 |