Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
1 | <?php |
||
28 | 21 | public function performSpecialConditions(): TelegramMethods |
|
29 | { |
||
30 | 21 | if (!empty($this->reply_markup)) { |
|
31 | 1 | $this->reply_markup = json_encode($this->reply_markup); |
|
1 ignored issue
–
show
|
|||
32 | } |
||
33 | |||
34 | 21 | return $this; |
|
35 | } |
||
36 | } |
||
37 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: