1 | <?php |
||
17 | class ErrorDetector |
||
18 | { |
||
19 | /** |
||
20 | * @param ResponseInterface $response |
||
21 | * @param string $path |
||
22 | * @param array $options |
||
23 | * |
||
24 | * @return string |
||
25 | */ |
||
26 | 7 | public function detect(ResponseInterface $response, $path, array $options = []) |
|
53 | |||
54 | /** |
||
55 | * @param string $content |
||
56 | * |
||
57 | * @return bool |
||
58 | */ |
||
59 | 6 | private function isBanned($content) |
|
66 | |||
67 | /** |
||
68 | * Is not a Akira. |
||
69 | * |
||
70 | * @see http://www.world-art.ru/animation/animation.php?id=1 |
||
71 | * |
||
72 | * @param int $id |
||
73 | * @param string $content |
||
74 | * |
||
75 | * @return bool |
||
76 | */ |
||
77 | 4 | private function isNotAkira($id, $content) |
|
81 | } |
||
82 |