1 | <?php |
||
13 | class ClamavValidator extends Validator |
||
14 | { |
||
15 | /** |
||
16 | * Creates a new instance of ClamavValidator. |
||
17 | * |
||
18 | * ClamavValidator constructor. |
||
19 | * @param Translator $translator |
||
20 | * @param array $data |
||
21 | * @param array $rules |
||
22 | * @param array $messages |
||
23 | * @param array $customAttributes |
||
24 | */ |
||
25 | 4 | public function __construct( |
|
34 | |||
35 | /** |
||
36 | * Validate the uploaded file for virus/malware with ClamAV. |
||
37 | * |
||
38 | * @param $attribute string |
||
39 | * @param $value mixed |
||
40 | * @param $parameters array |
||
41 | * |
||
42 | * @return boolean |
||
43 | * @throws ClamavValidatorException |
||
44 | */ |
||
45 | 3 | public function validateClamav($attribute, $value, $parameters) |
|
71 | |||
72 | /** |
||
73 | * Guess the ClamAV socket. |
||
74 | * |
||
75 | * @return string |
||
76 | */ |
||
77 | 2 | protected function getClamavSocket() |
|
91 | |||
92 | /** |
||
93 | * Return the file path from the passed object. |
||
94 | * |
||
95 | * @param mixed $file |
||
96 | * @return string |
||
97 | */ |
||
98 | 3 | protected function getFilePath($file) |
|
113 | |||
114 | /** |
||
115 | * Create a new quahog ClamAV scanner client. |
||
116 | * |
||
117 | * @param string $socket |
||
118 | * @return QuahogClient |
||
119 | */ |
||
120 | 2 | protected function createQuahogScannerClient($socket) |
|
127 | } |
||
128 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.