| @@ -46,22 +46,14 @@ | ||
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | 48 | * @see ini_get() |
| 49 | 49 | */ |
| 50 | - public function iniGet(string $variableName): int|string|false | |
| 50 | + public function iniGet(string $variableName): int|string | |
| 51 | 51 | { |
| 52 | 52 | return ini_get($variableName); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @see header() | |
| 57 | - */ | |
| 58 | - public function header(string $header, bool $replace = true, int $responseCode = 0): void | |
| 59 | - { | |
| 60 | - header($header, $replace, $responseCode); | |
| 61 | - } | |
| 62 | - | |
| 63 | - /** | |
| 64 | 56 | * @see set_time_limit() |
| 65 | 57 | */ |
| 66 | 58 | public function setTimeLimit(int $seconds): bool |
| 67 | 59 | { |
| @@ -70,9 +62,9 @@ | ||
| 70 | 62 | |
| 71 | 63 | /** |
| 72 | 64 | * @see fread() |
| 73 | 65 | */ |
| 74 | - public function fread($handle, int $length): false|string | |
| 66 | + public function fread($handle, int $length): bool|string | |
| 75 | 67 | { |
| 76 | 68 | return fread($handle, $length); |
| 77 | 69 | } |
| 78 | 70 | |
| @@ -99,49 +91,17 @@ | ||
| 99 | 91 | |
| 100 | 92 | /** |
| 101 | 93 | * @see file_put_contents() |
| 102 | 94 | */ |
| 103 | - public function filePutContents(string $filename, mixed $data, int $flags = 0, $context = null): false|int | |
| 95 | + public function filePutContents(string $filename, mixed $data, int $flags = 0, $context = null): bool|int | |
| 104 | 96 | { |
| 105 | 97 | return file_put_contents($filename, $data, $flags, $context); |
| 106 | 98 | } |
| 107 | 99 | |
| 108 | 100 | /** |
| 109 | - * @see is_file() | |
| 110 | - */ | |
| 111 | - public function isFile(string $filename): bool | |
| 112 | - { | |
| 113 | - return is_file($filename); | |
| 114 | - } | |
| 115 | - | |
| 116 | - /** | |
| 117 | - * @see filemtime() | |
| 118 | - */ | |
| 119 | - public function fileMTime(string $filename): int|false | |
| 120 | - { | |
| 121 | - return filemtime($filename); | |
| 122 | - } | |
| 123 | - | |
| 124 | - /** | |
| 125 | - * @see file_get_contents() | |
| 126 | - */ | |
| 127 | - public function fileGetContents(string $filename): string|false | |
| 128 | - { | |
| 129 | - return @file_get_contents($filename); | |
| 130 | - } | |
| 131 | - | |
| 132 | - /** | |
| 133 | - * @see realpath() | |
| 134 | - */ | |
| 135 | - public function realpath(string $path): string|false | |
| 136 | - { | |
| 137 | - return realpath($path); | |
| 138 | - } | |
| 139 | - | |
| 140 | - /** | |
| 141 | 101 | * @see igbinary_serialize() |
| 142 | 102 | */ |
| 143 | - public function igbinarySerialize(mixed $value): ?string | |
| 103 | + public function igbinarySerialize(mixed $value): string | |
| 144 | 104 | { |
| 145 | 105 | return igbinary_serialize($value); |
| 146 | 106 | } |
| 147 | 107 | |
| @@ -157,11 +117,10 @@ | ||
| 157 | 117 | * @see mkdir() |
| 158 | 118 | */ |
| 159 | 119 | public function mkdir(string $pathname, int $mode = 0777, bool $recursive = false, $context = null): bool |
| 160 | 120 | { |
| 161 | - return ($context !== null) | |
| 162 | - ? mkdir($pathname, $mode, $recursive, $context) | |
| 163 | - : mkdir($pathname, $mode, $recursive); | |
| 121 | + return ($context !== null) ? | |
| 122 | + mkdir($pathname, $mode, $recursive, $context) : mkdir($pathname, $mode, $recursive); | |
| 164 | 123 | } |
| 165 | 124 | |
| 166 | 125 | /** |
| 167 | 126 | * @see connection_status() |
| @@ -176,54 +135,6 @@ | ||
| 176 | 135 | */ |
| 177 | 136 | public function fClose($handle): bool |
| 178 | 137 | { |
| 179 | 138 | return fclose($handle); |
| 180 | - } | |
| 181 | - | |
| 182 | - /** | |
| 183 | - * @see fseek() | |
| 184 | - */ | |
| 185 | - public function fseek($handle, int $offset, int $whence = SEEK_SET): int | |
| 186 | - { | |
| 187 | - return fseek($handle, $offset, $whence); | |
| 188 | - } | |
| 189 | - | |
| 190 | - /** | |
| 191 | - * @see flush() | |
| 192 | - */ | |
| 193 | - public function flush(): void | |
| 194 | - { | |
| 195 | - flush(); | |
| 196 | - } | |
| 197 | - | |
| 198 | - /** | |
| 199 | - * @see finfo_open() | |
| 200 | - */ | |
| 201 | - public function fInfoOpen(int $flags) | |
| 202 | - { | |
| 203 | - return finfo_open($flags); | |
| 204 | - } | |
| 205 | - | |
| 206 | - /** | |
| 207 | - * @see finfo_file() | |
| 208 | - */ | |
| 209 | - public function fInfoFile($fileInfo, string $file) | |
| 210 | - { | |
| 211 | - return finfo_file($fileInfo, $file); | |
| 212 | - } | |
| 213 | - | |
| 214 | - /** | |
| 215 | - * @see finfo_close() | |
| 216 | - */ | |
| 217 | - public function fInfoClose($fileInfo): bool | |
| 218 | - { | |
| 219 | - return finfo_close($fileInfo); | |
| 220 | - } | |
| 221 | - | |
| 222 | - /** | |
| 223 | - * @see mime_content_type() | |
| 224 | - */ | |
| 225 | - public function mimeContentType(string $file) | |
| 226 | - { | |
| 227 | - return mime_content_type($file); | |
| 228 | 139 | } |
| 229 | 140 | } |