@@ -13,11 +13,11 @@ |
||
| 13 | 13 | public function model() |
| 14 | 14 | { |
| 15 | 15 | if (!isset($this->eloquent) || !is_string($this->eloquent)) |
| 16 | - throw new RepositoryException("Model not defined on " . static::class); |
|
| 16 | + throw new RepositoryException("Model not defined on ".static::class); |
|
| 17 | 17 | return $this->eloquent; |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | - public function resolve($id){ |
|
| 20 | + public function resolve($id) { |
|
| 21 | 21 | if ($id instanceof $this->model) { |
| 22 | 22 | return $id; |
| 23 | 23 | } |
@@ -12,8 +12,9 @@ |
||
| 12 | 12 | |
| 13 | 13 | public function model() |
| 14 | 14 | { |
| 15 | - if (!isset($this->eloquent) || !is_string($this->eloquent)) |
|
| 16 | - throw new RepositoryException("Model not defined on " . static::class); |
|
| 15 | + if (!isset($this->eloquent) || !is_string($this->eloquent)) { |
|
| 16 | + throw new RepositoryException("Model not defined on " . static::class); |
|
| 17 | + } |
|
| 17 | 18 | return $this->eloquent; |
| 18 | 19 | } |
| 19 | 20 | |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | class ProxyDeletedEvent extends Event implements ShouldBroadcast |
| 18 | 18 | { |
| 19 | - public $listeners = []; |
|
| 19 | + public $listeners = [ ]; |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * @var proxy |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | |
| 15 | 15 | class ProxyCreatedEvent extends Event |
| 16 | 16 | { |
| 17 | - public $listeners = []; |
|
| 17 | + public $listeners = [ ]; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @var Proxy |