@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | /** |
| 12 | 12 | * Initializes IoC Container |
| 13 | 13 | * @param array $components |
| 14 | - * @return mixed |
|
| 14 | + * @return \Michaels\Manager\Traits\ManagesIocTrait |
|
| 15 | 15 | */ |
| 16 | 16 | public function initDi(array $components = []); |
| 17 | 17 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * Turns a dependency into a singleton. |
| 34 | 34 | * @param $alias |
| 35 | - * @return mixed |
|
| 35 | + * @return \Michaels\Manager\Traits\ManagesIocTrait |
|
| 36 | 36 | */ |
| 37 | 37 | public function share($alias); |
| 38 | 38 | |
@@ -40,6 +40,7 @@ discard block |
||
| 40 | 40 | * Add a pipeline to to the que for a specific item |
| 41 | 41 | * @param $alias |
| 42 | 42 | * @param $pipeline |
| 43 | + * @return \Michaels\Manager\Traits\ManagesIocTrait |
|
| 43 | 44 | */ |
| 44 | 45 | public function setup($alias, $pipeline); |
| 45 | 46 | |
@@ -101,7 +101,7 @@ discard block |
||
| 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 | */ |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | * Default decoder class factory method. |
| 173 | 173 | * Checks to make sure we have a default decoder available and if so, adds it as a decoder to the file loader. |
| 174 | 174 | * |
| 175 | - * @param $mimeType |
|
| 175 | + * @param string $mimeType |
|
| 176 | 176 | */ |
| 177 | 177 | protected function checkAndAddDefaultDecoder($mimeType) |
| 178 | 178 | { |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | if (!empty($this->unsupportedFiles)) { |
| 129 | 129 | $badFiles = implode(", ", $this->unsupportedFiles); |
| 130 | 130 | throw new UnsupportedFilesException( |
| 131 | - 'The file(s) ' . $badFiles . ' are not supported by the available decoders.' |
|
| 131 | + 'The file(s) '.$badFiles.' are not supported by the available decoders.' |
|
| 132 | 132 | ); |
| 133 | 133 | } |
| 134 | 134 | |
@@ -176,11 +176,11 @@ discard block |
||
| 176 | 176 | */ |
| 177 | 177 | protected function checkAndAddDefaultDecoder($mimeType) |
| 178 | 178 | { |
| 179 | - $decoderClass = ucfirst($mimeType) . "Decoder"; |
|
| 179 | + $decoderClass = ucfirst($mimeType)."Decoder"; |
|
| 180 | 180 | |
| 181 | - if (file_exists(__DIR__ . '/Decoders/' . $decoderClass . '.php') && !$this->isSupportedMimeType($mimeType)) { |
|
| 181 | + if (file_exists(__DIR__.'/Decoders/'.$decoderClass.'.php') && !$this->isSupportedMimeType($mimeType)) { |
|
| 182 | 182 | $nameSpace = "Michaels\\Manager\\Decoders\\"; |
| 183 | - $fullQualifiedClassName = $nameSpace . $decoderClass; |
|
| 183 | + $fullQualifiedClassName = $nameSpace.$decoderClass; |
|
| 184 | 184 | $decoder = new $fullQualifiedClassName(); |
| 185 | 185 | $this->addDecoder($decoder); |
| 186 | 186 | } |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | |
| 264 | 264 | } else { |
| 265 | 265 | // We are namespacing using the file's name |
| 266 | - $filename = rtrim($file->getBasename(), '.' . $file->getExtension()); |
|
| 266 | + $filename = rtrim($file->getBasename(), '.'.$file->getExtension()); |
|
| 267 | 267 | $namespace = $this->sanitizeNamespace($filename); |
| 268 | 268 | return [$namespace, $file]; |
| 269 | 269 | } |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | } else { |
| 78 | 78 | throw new \BadMethodCallException( |
| 79 | 79 | "Call to undefined method. `$method` does not exist in " |
| 80 | - . get_called_class() . " and it is not part of the Collection API" |
|
| 80 | + . get_called_class()." and it is not part of the Collection API" |
|
| 81 | 81 | ); |
| 82 | 82 | } |
| 83 | 83 | } |