@@ -121,7 +121,7 @@ |
||
121 | 121 | /** |
122 | 122 | * Set's the validations. |
123 | 123 | * |
124 | - * @param array $validations The available validations |
|
124 | + * @param \ArrayAccess $validations The available validations |
|
125 | 125 | * |
126 | 126 | * @return void |
127 | 127 | */ |
@@ -326,7 +326,7 @@ |
||
326 | 326 | * |
327 | 327 | * @param string $v The key that should be used for filtering |
328 | 328 | * |
329 | - * @return int Returns 1 if the pattern matches given subject, 0 if it does not |
|
329 | + * @return boolean Returns 1 if the pattern matches given subject, 0 if it does not |
|
330 | 330 | * @throws \RuntimeException Is thrown, if the pattern can not be evaluated against the passed subject |
331 | 331 | * @link http://www.php.net/manual/en/function.strcmp.php |
332 | 332 | */ |
@@ -55,7 +55,7 @@ |
||
55 | 55 | * Initialize the factory with the DI container instance. |
56 | 56 | * |
57 | 57 | * @param \Symfony\Component\DependencyInjection\ContainerInterface $container The DI container instance |
58 | - * @param \TechDivision\Import\Loaders\LoaderFactoryInterface $handlerFactory The .OK file handler factory instance |
|
58 | + * @param HandlerFactoryInterface $handlerFactory The .OK file handler factory instance |
|
59 | 59 | */ |
60 | 60 | public function __construct( |
61 | 61 | ContainerInterface $container, |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * |
83 | 83 | * @param string $filename Path to the file |
84 | 84 | * |
85 | - * @return TRUE if the filename exists and is a directory, else FALSE |
|
85 | + * @return boolean if the filename exists and is a directory, else FALSE |
|
86 | 86 | */ |
87 | 87 | public function isDir($filename) |
88 | 88 | { |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * @param string $filename The name of the file to write the data to |
121 | 121 | * @param string $data The data to write to the file |
122 | 122 | * |
123 | - * @return number The number of bytes written to the file |
|
123 | + * @return boolean The number of bytes written to the file |
|
124 | 124 | */ |
125 | 125 | public function write($filename, $data) |
126 | 126 | { |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | * |
224 | 224 | * @param string $filename The name of the file to return its content for |
225 | 225 | * |
226 | - * @return array The content of the file as array |
|
226 | + * @return string|false The content of the file as array |
|
227 | 227 | * @throws \Exception Is thrown, if the file is not accessible |
228 | 228 | */ |
229 | 229 | public function read($filename) |
@@ -199,7 +199,7 @@ |
||
199 | 199 | /** |
200 | 200 | * Returns the elements the filenames consists of. |
201 | 201 | * |
202 | - * @return array The array with the filename elements |
|
202 | + * @return string The array with the filename elements |
|
203 | 203 | * @todo Refactorig required, because of duplicate method |
204 | 204 | * @see \TechDivision\Import\Loaders\Filters\OkFileFilter::getOkFileSuffix() |
205 | 205 | */ |
@@ -54,7 +54,7 @@ |
||
54 | 54 | * |
55 | 55 | * @param \TechDivision\Import\Observers\AttributeCodeAndValueAwareObserverInterface|null $observer The observer |
56 | 56 | * |
57 | - * @return mixed The modified value |
|
57 | + * @return null|boolean The modified value |
|
58 | 58 | */ |
59 | 59 | public function handle(AttributeCodeAndValueAwareObserverInterface $observer = null) |
60 | 60 | { |