Total Complexity | 12 |
Total Lines | 66 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
16 | class Utiles |
||
17 | { |
||
18 | /** |
||
19 | * @param string $str |
||
20 | * @return string |
||
21 | */ |
||
22 | public static function appendSlash(string $str): string |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param array $array |
||
29 | * @param string $glue |
||
30 | */ |
||
31 | public static function concatKeyValue(array &$array, string $glue = ""): void |
||
35 | }); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @param array $array |
||
40 | * @param string $start_with |
||
41 | * @return array |
||
42 | */ |
||
43 | public static function arrayToFFmpegOpt(array $array, string $start_with = "-"): array |
||
44 | { |
||
45 | $new = []; |
||
46 | foreach ($array as $key => $value) { |
||
47 | if(is_string($key)){ |
||
48 | array_push($new, $start_with . $key, $value); |
||
49 | }else{ |
||
50 | $new = null; |
||
51 | break; |
||
52 | } |
||
53 | } |
||
54 | |||
55 | return $new ?? $array; |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | public static function getOS(): string |
||
72 | } |
||
73 | } |
||
74 | |||
75 | /** |
||
76 | * @param bool $isAutoSelect |
||
77 | * @return string |
||
78 | */ |
||
79 | public static function convertBooleanToYesNo(bool $isAutoSelect): string |
||
82 | } |
||
83 | } |