| 1 | <?php |
||
| 10 | class ConnpassEventService |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Create a new instance. |
||
| 14 | */ |
||
| 15 | public function __construct() |
||
| 18 | |||
| 19 | /** |
||
| 20 | * ConnpassAPIにリクエストするURLの生成 |
||
| 21 | * @param リクエストパラム |
||
| 22 | * @return string ConnpassAPIにリクエストするURL |
||
| 23 | */ |
||
| 24 | private function _createRequestConnpassApiUrl($param) { |
||
| 33 | |||
| 34 | /** |
||
| 35 | * connpassのAPIからJSONを取得する. |
||
| 36 | * |
||
| 37 | * @param array リクエストパラム |
||
| 38 | * @return array connpassのイベントを取得 |
||
| 39 | */ |
||
| 40 | public function getConnpassApiOneMonthEventJson($param) |
||
| 88 | } |
||
| 89 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVarassignment in line 1 and the$higherassignment in line 2 are dead. The first because$myVaris never used and the second because$higheris always overwritten for every possible time line.