| Total Complexity | 5 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | abstract class AbstractJsCall extends AbstractCall |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * A function to call when the expression is created |
||
| 24 | * |
||
| 25 | * @var Closure |
||
| 26 | */ |
||
| 27 | protected $xExprCb; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * The constructor. |
||
| 31 | * |
||
| 32 | * @param DialogCommand $xDialog |
||
| 33 | * @param Closure|null $xExprCb |
||
| 34 | */ |
||
| 35 | protected function __construct(DialogCommand $xDialog, ?Closure $xExprCb) |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Call the js expression callback |
||
| 43 | * |
||
| 44 | * @param JsExpr $xJsExpr |
||
| 45 | * |
||
| 46 | * @return JsExpr |
||
| 47 | */ |
||
| 48 | protected function _initExpr(JsExpr $xJsExpr): JsExpr |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Get the value of an attribute of the current object |
||
| 56 | * |
||
| 57 | * @param string $sAttribute |
||
| 58 | * |
||
| 59 | * @return JsExpr |
||
| 60 | */ |
||
| 61 | public function __get(string $sAttribute): JsExpr |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Set the value of an attribute of the current object |
||
| 68 | * |
||
| 69 | * @param string $sAttribute |
||
| 70 | * @param mixed $xValue |
||
| 71 | * |
||
| 72 | * @return void |
||
| 73 | */ |
||
| 74 | public function __set(string $sAttribute, $xValue) |
||
| 79 |
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.