| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class CarbonTerm implements TermInterface { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Helper. |
||
| 25 | * |
||
| 26 | * @var CarbonHelper |
||
| 27 | */ |
||
| 28 | protected $helper; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Construct. |
||
| 32 | * |
||
| 33 | * @param CarbonHelper $helper Helper. |
||
| 34 | */ |
||
| 35 | public function __construct( CarbonHelper $helper ) { |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get. |
||
| 41 | * |
||
| 42 | * @param integer $id Id. |
||
| 43 | * @param string $key Key. |
||
| 44 | * @param boolean $single Single. |
||
| 45 | * @return mixed |
||
| 46 | */ |
||
| 47 | public function get( int $id, string $key, bool $single = false ) { |
||
| 48 | return $this->helper::get_term_meta( $id, $key ); |
||
|
1 ignored issue
–
show
|
|||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Set. |
||
| 53 | * |
||
| 54 | * @param integer $id Id. |
||
| 55 | * @param string $key Key. |
||
| 56 | * @param mixed $value Value. |
||
| 57 | * @return IMeta |
||
| 58 | */ |
||
| 59 | public function set( int $id, string $key, $value ) : IMeta { |
||
| 62 | } |
||
| 63 | } |
||
| 64 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.