We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -9,19 +9,19 @@ |
||
| 9 | 9 | trait CanChangeRouteKey{ |
| 10 | 10 | |
| 11 | 11 | |
| 12 | - /** |
|
| 13 | - * Get the route key for the model. |
|
| 14 | - * |
|
| 15 | - * @return string |
|
| 16 | - */ |
|
| 17 | - public function getRouteKeyName() |
|
| 18 | - { |
|
| 19 | - return $this->routeKey ?? parent::getRouteKeyName(); |
|
| 20 | - } |
|
| 12 | + /** |
|
| 13 | + * Get the route key for the model. |
|
| 14 | + * |
|
| 15 | + * @return string |
|
| 16 | + */ |
|
| 17 | + public function getRouteKeyName() |
|
| 18 | + { |
|
| 19 | + return $this->routeKey ?? parent::getRouteKeyName(); |
|
| 20 | + } |
|
| 21 | 21 | |
| 22 | 22 | |
| 23 | - public function getKey() |
|
| 24 | - { |
|
| 25 | - return $this->routeKey ? $this->{$this->getRouteKeyName()} : parent::getKey(); |
|
| 26 | - } |
|
| 23 | + public function getKey() |
|
| 24 | + { |
|
| 25 | + return $this->routeKey ? $this->{$this->getRouteKeyName()} : parent::getKey(); |
|
| 26 | + } |
|
| 27 | 27 | } |
| 28 | 28 | \ No newline at end of file |