@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | /** |
38 | 38 | * Returns MimeType |
39 | - * @return string |
|
39 | + * @return string[] |
|
40 | 40 | */ |
41 | 41 | public function getMimeType() |
42 | 42 | { |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * For instance, if you want to decode Yaml files with the extensions ".yml" and ".yaml", |
32 | 32 | * then you want to set the return array to ['yaml', 'yml']. |
33 | 33 | * |
34 | - * @return array |
|
34 | + * @return string[] |
|
35 | 35 | */ |
36 | 36 | public function getMimeType() |
37 | 37 | { |
@@ -101,7 +101,7 @@ |
||
101 | 101 | * Process file bag to load into the data manager. |
102 | 102 | * A file bag is an array of SplFileInfo objects. |
103 | 103 | * |
104 | - * @param array|FileBag $fileBag |
|
104 | + * @param FileBag $fileBag |
|
105 | 105 | * @return array |
106 | 106 | * @throws Exception |
107 | 107 | */ |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Michaels\Manager; |
3 | 3 | |
4 | -use Michaels\Manager\Contracts\DecoderInterface; |
|
4 | +use Exception; |
|
5 | 5 | use Michaels\Manager\Bags\FileBag; |
6 | -use Michaels\Manager\Exceptions\UnsupportedFilesException; |
|
6 | +use Michaels\Manager\Contracts\DecoderInterface; |
|
7 | 7 | use Michaels\Manager\Exceptions\BadFileDataException; |
8 | -use Exception; |
|
8 | +use Michaels\Manager\Exceptions\UnsupportedFilesException; |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Loads configuration files and converts them to php arrays using Decoders |
@@ -435,7 +435,7 @@ |
||
435 | 435 | |
436 | 436 | /** |
437 | 437 | * Cycle through the nests to see if an item is protected |
438 | - * @param $item |
|
438 | + * @param string $item |
|
439 | 439 | */ |
440 | 440 | protected function checkIfProtected($item) |
441 | 441 | { |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use Michaels\Manager\Exceptions\NestingUnderNonArrayException; |
8 | 8 | use Michaels\Manager\Helpers; |
9 | 9 | use Michaels\Manager\Messages\NoItemFoundMessage; |
10 | -use Traversable; |
|
11 | 10 | |
12 | 11 | /** |
13 | 12 | * Manages complex, nested data |
@@ -25,7 +25,7 @@ |
||
25 | 25 | return iterator_to_array($items); |
26 | 26 | } |
27 | 27 | |
28 | - return (array)$items; |
|
28 | + return (array) $items; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * For instance, if you want to decode Yaml files with the extensions ".yml" and ".yaml", |
32 | 32 | * then you want to set the return array to ['yaml', 'yml']. |
33 | 33 | * |
34 | - * @return array |
|
34 | + * @return string[] |
|
35 | 35 | */ |
36 | 36 | public function getMimeType() |
37 | 37 | { |
@@ -142,7 +142,7 @@ |
||
142 | 142 | * |
143 | 143 | * @param string $method name |
144 | 144 | * @param array $arguments to be passed along |
145 | - * @param object $instance of the Collection |
|
145 | + * @param CollectionTrait $instance of the Collection |
|
146 | 146 | * @param string $flag corresponding to the properties above |
147 | 147 | * @param string $subject Alias of data in Manager |
148 | 148 | * @return mixed |