(string $path)
| 2811 | } |
| 2812 | |
| 2813 | private static function readAuthFileLinks(string $path): array |
| 2814 | { |
| 2815 | if (!is_file($path)) { |
| 2816 | return []; |
| 2817 | } |
| 2818 | $decoded = json_decode((string)@file_get_contents($path), true); |
| 2819 | return is_array($decoded) ? $decoded : []; |
| 2820 | } |
| 2821 | |
| 2822 | private static function cleanAuthFileLinks(array $links, int $now): array |
| 2823 | { |
no outgoing calls
no test coverage detected