@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | 181 | * @param string $key |
| 182 | - * @param mixed $value |
|
| 182 | + * @param string $value |
|
| 183 | 183 | * |
| 184 | 184 | * @return $this |
| 185 | 185 | */ |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | } |
| 284 | 284 | |
| 285 | 285 | /** |
| 286 | - * @param null $locale |
|
| 286 | + * @param string $locale |
|
| 287 | 287 | * |
| 288 | 288 | * @return string |
| 289 | 289 | */ |
@@ -633,7 +633,7 @@ discard block |
||
| 633 | 633 | /** |
| 634 | 634 | * Set the default locale on the model. |
| 635 | 635 | * |
| 636 | - * @param $locale |
|
| 636 | + * @param string|null $locale |
|
| 637 | 637 | * |
| 638 | 638 | * @return $this |
| 639 | 639 | */ |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Dimsav\Translatable; |
| 4 | 4 | |
| 5 | -use App; |
|
| 6 | 5 | use Illuminate\Database\Eloquent\Model; |
| 7 | 6 | use Illuminate\Database\Eloquent\Builder; |
| 8 | 7 | use Illuminate\Database\Eloquent\Relations\Relation; |
@@ -41,11 +41,17 @@ discard block |
||
| 41 | 41 | $seeder->run(); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @param string $dbName |
|
| 46 | + */ |
|
| 44 | 47 | private function makeSureDatabaseExists($dbName) |
| 45 | 48 | { |
| 46 | 49 | $this->runQuery('CREATE DATABASE IF NOT EXISTS '.$dbName); |
| 47 | 50 | } |
| 48 | 51 | |
| 52 | + /** |
|
| 53 | + * @param string $dbConnectionName |
|
| 54 | + */ |
|
| 49 | 55 | private function makeSureSchemaIsCreated($dbConnectionName) |
| 50 | 56 | { |
| 51 | 57 | $migrationsPath = '../../../../tests/migrations'; |
@@ -58,6 +64,9 @@ discard block |
||
| 58 | 64 | ]); |
| 59 | 65 | } |
| 60 | 66 | |
| 67 | + /** |
|
| 68 | + * @param string $dbName |
|
| 69 | + */ |
|
| 61 | 70 | private function truncateAllTablesButMigrations($dbName) |
| 62 | 71 | { |
| 63 | 72 | $db = $this->app->make('db'); |
@@ -73,7 +82,7 @@ discard block |
||
| 73 | 82 | } |
| 74 | 83 | |
| 75 | 84 | /** |
| 76 | - * @param $query |
|
| 85 | + * @param string $query |
|
| 77 | 86 | * return void |
| 78 | 87 | */ |
| 79 | 88 | private function runQuery($query) |