These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /** |
||
3 | * NoopFactory.php |
||
4 | * |
||
5 | * @copyright More in license.md |
||
6 | * @license http://www.ipublikuj.eu |
||
7 | * @author Adam Kadlec http://www.ipublikuj.eu |
||
8 | * @package iPublikuj:Flysystem! |
||
9 | * @subpackage Cache |
||
10 | * @since 1.0.0 |
||
11 | * |
||
12 | * @date 26.04.16 |
||
13 | */ |
||
14 | |||
15 | namespace IPub\Flysystem\Factories\Cache; |
||
16 | |||
17 | use Nette; |
||
18 | use Nette\DI; |
||
19 | use Nette\Utils; |
||
20 | |||
21 | use League\Flysystem; |
||
22 | use League\Flysystem\Cached; |
||
23 | |||
24 | /** |
||
25 | * Noop cache |
||
26 | * |
||
27 | * @package iPublikuj:Flysystem! |
||
28 | * @subpackage Cache |
||
29 | * |
||
30 | * @author Adam Kadlec <[email protected]> |
||
31 | */ |
||
32 | class NoopFactory |
||
33 | { |
||
34 | /** |
||
35 | * @param Utils\ArrayHash $parameters |
||
36 | * |
||
37 | * @return Cached\Storage\Noop |
||
38 | */ |
||
39 | public static function create(Utils\ArrayHash $parameters) |
||
0 ignored issues
–
show
|
|||
40 | { |
||
41 | return new Cached\Storage\Noop(); |
||
42 | } |
||
43 | } |
||
44 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.