Completed
Push — master ( b02197...088acd )
by Mahmoud
03:21
created
app/Ship/Engine/Traits/HashIdTrait.php 1 patch
Spacing   +2 added lines, -2 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();
Please login to merge, or discard this patch.