Completed
Push — master ( 911884...8ba963 )
by Mahmoud
06:08
created
app/Port/HashId/Traits/HashIdTrait.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public function runEndpointsHashedIdsDecoder()
30 30
     {
31 31
         if (Config::get('hello.hash-id')) {
32
-            Route::bind('id', function ($id, $route) {
32
+            Route::bind('id', function($id, $route) {
33 33
                 // skip decoding some endpoints
34 34
                 if (!in_array($route->uri(), $this->skippedEndpoints)) {
35 35
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         // hash the ID only if hash-id enabled in the config
60 60
         if (Config::get('hello.hash-id')) {
61
-            return $this->encoder(($key) ? : $this->getKey());
61
+            return $this->encoder(($key) ?: $this->getKey());
62 62
         }
63 63
 
64 64
         return $this->getKey();
@@ -85,8 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
                 if (Config::get('hello.hash-id')) {
87 87
                     $requestData[$id] = is_array($requestData[$id]) ?
88
-                        $this->decodeThisArrayOfIds($requestData[$id]) :
89
-                        $this->decodeThisId($requestData[$id]);
88
+                        $this->decodeThisArrayOfIds($requestData[$id]) : $this->decodeThisId($requestData[$id]);
90 89
                 }
91 90
 
92 91
             } // do nothing if the input is incorrect, because what if it's not required!
Please login to merge, or discard this patch.