1 | <?php namespace Magestead\Service; |
||
7 | class UsageApi |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $_apiUrl = "https://api.magestead.com/v1/usage"; |
||
13 | // protected $_apiUrl = "http://magestead-api.app/v1/usage"; |
||
|
|||
14 | |||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $_params = []; |
||
19 | |||
20 | /** |
||
21 | * UsageApi constructor. |
||
22 | * @param $data |
||
23 | */ |
||
24 | public function __construct($data) |
||
37 | |||
38 | /** |
||
39 | * |
||
40 | */ |
||
41 | public function send() |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | protected function getFieldsString() |
||
70 | } |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.