@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | { |
| 35 | 35 | // hash the ID only if hash-id enabled in the config |
| 36 | 36 | if (Config::get('hello.hash-id')) { |
| 37 | - return $this->encoder(($key) ? : $this->getKey()); |
|
| 37 | + return $this->encoder(($key) ?: $this->getKey()); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | return $this->getKey(); |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | // get the last part of the key, which should be the ID that needs decoding |
| 116 | 116 | $idToDecode = substr($key, strrpos($key, '.*.') + 3); |
| 117 | 117 | |
| 118 | - array_walk_recursive($requestData, function (&$value, $key) use ($idToDecode) { |
|
| 118 | + array_walk_recursive($requestData, function(&$value, $key) use ($idToDecode) { |
|
| 119 | 119 | |
| 120 | 120 | if ($key == $idToDecode) { |
| 121 | 121 | $value = $this->decode($value, $key); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | { |
| 133 | 133 | $idToDecode = $this->removeLastOccurrenceFromString($key, '.*'); |
| 134 | 134 | |
| 135 | - $this->findKeyAndReturnValue($requestData, $idToDecode, function ($ids) use ($key) { |
|
| 135 | + $this->findKeyAndReturnValue($requestData, $idToDecode, function($ids) use ($key) { |
|
| 136 | 136 | |
| 137 | 137 | if (!is_array($ids)) { |
| 138 | 138 | throw new IncorrectIdException('Expected ID\'s to be in array. Please wrap your ID\'s in an Array and send them back.'); |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | public function runHashedIdsDecoder() |
| 275 | 275 | { |
| 276 | 276 | if (Config::get('hello.hash-id')) { |
| 277 | - Route::bind('id', function ($id, $route) { |
|
| 277 | + Route::bind('id', function($id, $route) { |
|
| 278 | 278 | // skip decoding some endpoints |
| 279 | 279 | if (!in_array($route->uri(), $this->skippedEndpoints)) { |
| 280 | 280 | |