@@ -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; |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | |
214 | 214 | /** |
215 | 215 | * @param string $key |
216 | - * @param mixed $value |
|
216 | + * @param string $value |
|
217 | 217 | * |
218 | 218 | * @return $this |
219 | 219 | */ |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | } |
318 | 318 | |
319 | 319 | /** |
320 | - * @param null $locale |
|
320 | + * @param string $locale |
|
321 | 321 | * |
322 | 322 | * @return string |
323 | 323 | */ |
@@ -739,7 +739,7 @@ discard block |
||
739 | 739 | /** |
740 | 740 | * Set the default locale on the model. |
741 | 741 | * |
742 | - * @param $locale |
|
742 | + * @param string|null $locale |
|
743 | 743 | * |
744 | 744 | * @return $this |
745 | 745 | */ |
@@ -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) |
@@ -144,6 +153,9 @@ discard block |
||
144 | 153 | }); |
145 | 154 | } |
146 | 155 | |
156 | + /** |
|
157 | + * @param string $query |
|
158 | + */ |
|
147 | 159 | private function beautifyQuery($query) |
148 | 160 | { |
149 | 161 | $capitalizeWords = ['select ', ' from ', ' where ', ' on ', ' join ']; |
@@ -81,7 +81,7 @@ |
||
81 | 81 | /** |
82 | 82 | * Get the translate model class name. |
83 | 83 | * |
84 | - * @param $table |
|
84 | + * @param string $table |
|
85 | 85 | * @return string |
86 | 86 | */ |
87 | 87 | protected function getModelName($table) |