@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | 96 | * createForModel |
| 97 | - * @param Versionable|Model $model |
|
| 97 | + * @param Model $model |
|
| 98 | 98 | * @return Version |
| 99 | 99 | * @throws NotVersionableModel |
| 100 | 100 | */ |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | |
| 131 | 131 | /** |
| 132 | 132 | * diff |
| 133 | - * @param Versionable|Model|null $model |
|
| 133 | + * @param null|Model $model |
|
| 134 | 134 | * |
| 135 | 135 | * @return string |
| 136 | 136 | * @throws NotVersionableModel |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | { |
| 103 | 103 | if (!in_array(Versionable::class, class_uses($model), true)) { |
| 104 | 104 | throw new NotVersionableModel( |
| 105 | - "{$model} not use Versionable " . config('versionable.version_model') |
|
| 105 | + "{$model} not use Versionable ".config('versionable.version_model') |
|
| 106 | 106 | ); |
| 107 | 107 | } |
| 108 | 108 | $versionClass = $model->getVersionModel(); |
@@ -24,14 +24,14 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public function boot(): void |
| 26 | 26 | { |
| 27 | - $this->loadMigrationsFrom(__DIR__ . '/../migrations'); |
|
| 27 | + $this->loadMigrationsFrom(__DIR__.'/../migrations'); |
|
| 28 | 28 | |
| 29 | 29 | $this->publishes([ |
| 30 | - __DIR__ . '/../migrations' => database_path('migrations'), |
|
| 30 | + __DIR__.'/../migrations' => database_path('migrations'), |
|
| 31 | 31 | ], 'migrations'); |
| 32 | 32 | |
| 33 | 33 | $this->publishes([ |
| 34 | - __DIR__ . '/../config/versionable.php' => config_path('versionable.php'), |
|
| 34 | + __DIR__.'/../config/versionable.php' => config_path('versionable.php'), |
|
| 35 | 35 | ], 'config'); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | public function register(): void |
| 42 | 42 | { |
| 43 | 43 | $this->mergeConfigFrom( |
| 44 | - __DIR__ . '/../config/versionable.php', |
|
| 44 | + __DIR__.'/../config/versionable.php', |
|
| 45 | 45 | 'versionable' |
| 46 | 46 | ); |
| 47 | 47 | } |