1 | <?php |
||
10 | class MediaProvider implements MediaProviderInterface |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * |
||
15 | * @var EntityManager |
||
16 | */ |
||
17 | private $em; |
||
|
|||
18 | |||
19 | /** |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | private $path; |
||
24 | |||
25 | /** |
||
26 | * |
||
27 | * @param EntityManager $em |
||
28 | * @param string $path |
||
29 | */ |
||
30 | public function __construct(EntityManager $em, $path) |
||
35 | |||
36 | /** |
||
37 | * |
||
38 | * @param UploadedFile $file |
||
39 | * @param string $directory |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function generateName(UploadedFile $file, $directory) |
||
55 | |||
56 | public function save(MediaInterface $media, $class, $options) |
||
94 | |||
95 | } |
||
96 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.