@@ -34,6 +34,11 @@ discard block |
||
34 | 34 | return $this; |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param integer $columnsCount |
|
39 | + * @param integer $localesCount |
|
40 | + * @param integer $headerRowsCount |
|
41 | + */ |
|
37 | 42 | public static function emptySheet($columnsCount, $localesCount, $headerRowsCount) |
38 | 43 | { |
39 | 44 | $instance = new self; |
@@ -46,6 +51,12 @@ discard block |
||
46 | 51 | return $instance; |
47 | 52 | } |
48 | 53 | |
54 | + /** |
|
55 | + * @param integer $dataRowsCount |
|
56 | + * @param integer $columnsCount |
|
57 | + * @param integer $localesCount |
|
58 | + * @param integer $headerRowsCount |
|
59 | + */ |
|
49 | 60 | public static function sheetWithData($dataRowsCount, $columnsCount, $localesCount, $headerRowsCount) |
50 | 61 | { |
51 | 62 | $instance = new self; |
@@ -35,6 +35,9 @@ discard block |
||
35 | 35 | $this->nullOutput(); |
36 | 36 | } |
37 | 37 | |
38 | + /** |
|
39 | + * @param Collection $translations |
|
40 | + */ |
|
38 | 41 | public function setTranslations($translations) |
39 | 42 | { |
40 | 43 | $this->translations = $translations; |
@@ -54,6 +57,9 @@ discard block |
||
54 | 57 | }); |
55 | 58 | } |
56 | 59 | |
60 | + /** |
|
61 | + * @param string $file |
|
62 | + */ |
|
57 | 63 | protected function writeFile($file, $items) |
58 | 64 | { |
59 | 65 | $this->output->writeln(' '.$file); |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace Nikaia\TranslationSheet\Translation; |
4 | 4 | |
5 | -use Illuminate\Support\Arr; |
|
6 | -use Nikaia\TranslationSheet\Util; |
|
7 | -use Illuminate\Support\Collection; |
|
8 | 5 | use Illuminate\Filesystem\Filesystem; |
9 | 6 | use Illuminate\Foundation\Application; |
10 | -use Nikaia\TranslationSheet\Spreadsheet; |
|
7 | +use Illuminate\Support\Arr; |
|
8 | +use Illuminate\Support\Collection; |
|
11 | 9 | use Nikaia\TranslationSheet\Commands\Output; |
10 | +use Nikaia\TranslationSheet\Spreadsheet; |
|
11 | +use Nikaia\TranslationSheet\Util; |
|
12 | 12 | |
13 | 13 | class Writer |
14 | 14 | { |
@@ -109,8 +109,8 @@ discard block |
||
109 | 109 | * Load all directory file translation (multiple group) into translations collection. |
110 | 110 | * |
111 | 111 | * @param $directory |
112 | - * @param $locale |
|
113 | - * @param $namespace |
|
112 | + * @param string $locale |
|
113 | + * @param null|string $namespace |
|
114 | 114 | */ |
115 | 115 | private function loadTranslationsInDirectory($directory, $locale, $namespace) |
116 | 116 | { |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | * @param $locale |
132 | 132 | * @param $group |
133 | 133 | * @param $namespace |
134 | - * @param $file |
|
134 | + * @param \Symfony\Component\Finder\SplFileInfo $file |
|
135 | 135 | */ |
136 | 136 | private function loadTranslations($locale, $group, $namespace, $file) |
137 | 137 | { |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | * Return relative path of language file. |
180 | 180 | * |
181 | 181 | * @param $file |
182 | - * @return mixed |
|
182 | + * @return string |
|
183 | 183 | */ |
184 | 184 | private function sourceFile($file) |
185 | 185 | { |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | /** |
190 | 190 | * Return relative path related to base_path(). |
191 | 191 | * |
192 | - * @param $path |
|
192 | + * @param string $path |
|
193 | 193 | * @return string |
194 | 194 | */ |
195 | 195 | private function toRelative($path) |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Nikaia\TranslationSheet\Translation; |
4 | 4 | |
5 | -use Illuminate\Support\Collection; |
|
6 | 5 | use Illuminate\Filesystem\Filesystem; |
7 | 6 | use Illuminate\Foundation\Application; |
7 | +use Illuminate\Support\Collection; |
|
8 | 8 | |
9 | 9 | class Reader |
10 | 10 | { |
@@ -6,12 +6,12 @@ |
||
6 | 6 | use Nikaia\TranslationSheet\Client\Client; |
7 | 7 | use Nikaia\TranslationSheet\Commands\Lock; |
8 | 8 | use Nikaia\TranslationSheet\Commands\Open; |
9 | +use Nikaia\TranslationSheet\Commands\Prepare; |
|
9 | 10 | use Nikaia\TranslationSheet\Commands\Pull; |
10 | 11 | use Nikaia\TranslationSheet\Commands\Push; |
11 | 12 | use Nikaia\TranslationSheet\Commands\Setup; |
12 | 13 | use Nikaia\TranslationSheet\Commands\Status; |
13 | 14 | use Nikaia\TranslationSheet\Commands\Unlock; |
14 | -use Nikaia\TranslationSheet\Commands\Prepare; |
|
15 | 15 | |
16 | 16 | class TranslationSheetServiceProvider extends ServiceProvider |
17 | 17 | { |