| Total Complexity | 3 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class videoNote extends types { |
||
|
|
|||
| 12 | /** Keep all of properties which has sub properties */ |
||
| 13 | private const subs = ['thumb' => 'BPT\types\photoSize']; |
||
| 14 | |||
| 15 | /** Identifier for this file, which can be used to download or reuse the file */ |
||
| 16 | public string $file_id; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be |
||
| 20 | * used to download or reuse the file. |
||
| 21 | */ |
||
| 22 | public string $file_unique_id; |
||
| 23 | |||
| 24 | /** Video width and height (diameter of the video message) as defined by sender */ |
||
| 25 | public int $length; |
||
| 26 | |||
| 27 | /** Duration of the video in seconds as defined by sender */ |
||
| 28 | public int $duration; |
||
| 29 | |||
| 30 | /** Optional. Video thumbnail */ |
||
| 31 | public photoSize $thumb; |
||
| 32 | |||
| 33 | /** Optional. File size in bytes */ |
||
| 34 | public int $file_size; |
||
| 35 | |||
| 36 | |||
| 37 | public function __construct(stdClass|null $object = null) { |
||
| 38 | if ($object != null) { |
||
| 39 | parent::__construct($object, self::subs); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * download this file and save it in destination |
||
| 45 | * |
||
| 46 | * if destination doesn't set , it will return the downloaded file(as string) |
||
| 47 | * |
||
| 48 | * It has 20MB download limit(same as telegram) |
||
| 49 | * |
||
| 50 | * e.g. => $video_note->download(); |
||
| 51 | * |
||
| 52 | * e.g. => $video_note->download('test.mp4'); |
||
| 53 | * |
||
| 54 | * @param string|null $destination destination for save the file |
||
| 55 | * |
||
| 56 | * @return bool|string string will be returned when destination doesn't set |
||
| 57 | */ |
||
| 58 | public function download(string|null $destination = null): bool|string { |
||
| 60 | } |
||
| 61 | } |
||
| 62 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths