1 | <?php |
||
5 | class Client |
||
6 | { |
||
7 | protected $http; |
||
8 | |||
9 | protected $pagesUrl = "https://api.github.com/repos/tldr-pages/tldr/contents/pages/index.json?ref=master"; |
||
10 | |||
11 | /** |
||
12 | * Client constructor. |
||
13 | * @param \GuzzleHttp\Client $http |
||
14 | */ |
||
15 | public function __construct($http) |
||
19 | |||
20 | public function setPagesUrl(string $url) |
||
24 | |||
25 | public function getPagesUrl() |
||
29 | |||
30 | public function lookupPage(string $page) |
||
45 | } |
This check looks for
foreach
loops that have no statements or where all statements have been commented out. This may be the result of changes for debugging or the code may simply be obsolete.Consider removing the loop.