Completed
Push — master ( 3c5908...24f2d0 )
by Nil
06:40
created
Laravel5/HalJsonSerializer/Laravel5HalJsonSerializerServiceProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
     /**
107 107
      * Get the services provided by the provider.
108 108
      *
109
-     * @return array
109
+     * @return string[]
110 110
      */
111 111
     public function provides()
112 112
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,13 +45,13 @@
 block discarded – undo
45 45
         $this->mergeConfigFrom(__DIR__.self::PATH, 'haljson');
46 46
         $this->app->singleton(
47 47
             \NilPortugues\Laravel5\HalJsonSerializer\HalJsonSerializer::class,
48
-            function ($app) {
48
+            function($app) {
49 49
                 $mapping = $app['config']->get('haljson');
50 50
                 $key = \md5(\json_encode($mapping));
51 51
 
52 52
                 return Cache::rememberForever(
53 53
                     $key,
54
-                    function () use ($mapping) {
54
+                    function() use ($mapping) {
55 55
                         return new HalJsonSerializer(new HalJsonTransformer(self::parseRoutes(new Mapper($mapping))));
56 56
                     }
57 57
                 );
Please login to merge, or discard this patch.
src/NilPortugues/Laravel5/HalJsonSerializer/HalJsonResponseTrait.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Author: Nil Portugués Calderó <[email protected]>
4
- * Date: 8/18/15
5
- * Time: 11:19 PM.
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: 8/18/15
5
+     * Time: 11:19 PM.
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\HalJsonSerializer;
12 12
 
Please login to merge, or discard this patch.
src/NilPortugues/Laravel5/HalJsonSerializer/Mapper/Mapper.php 2 patches
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
     protected function buildMapping($mappedClass)
21 21
     {
22 22
         return (\is_string($mappedClass) && \class_exists($mappedClass, true)) ?
23
-            MappingFactory::fromClass($mappedClass) :
24
-            MappingFactory::fromArray($mappedClass);
23
+            MappingFactory::fromClass($mappedClass) : MappingFactory::fromArray($mappedClass);
25 24
     }
26 25
 }
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Author: Nil Portugués Calderó <[email protected]>
4
- * Date: 10/16/15
5
- * Time: 8:59 PM.
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: 10/16/15
5
+     * Time: 8:59 PM.
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\HalJsonSerializer\Mapper;
12 12
 
Please login to merge, or discard this patch.
src/NilPortugues/Laravel5/HalJsonSerializer/Mapper/MappingFactory.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Author: Nil Portugués Calderó <[email protected]>
4
- * Date: 10/16/15
5
- * Time: 8:59 PM.
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: 10/16/15
5
+     * Time: 8:59 PM.
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\HalJsonSerializer\Mapper;
12 12
 
Please login to merge, or discard this patch.