| Conditions | 4 |
| Paths | 4 |
| Total Lines | 33 |
| Code Lines | 28 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function __construct($text = "", $type = self::TYPE_NORMAL, $controlId = null) |
||
| 23 | { |
||
| 24 | parent::__construct($controlId); |
||
| 25 | $this->setText($text) |
||
| 26 | ->setAreaColor("0000") |
||
| 27 | ->setAreaFocusColor('0000') |
||
| 28 | ->setScriptEvents(true) |
||
| 29 | ->setTextColor('fff') |
||
| 30 | ->setWidth(30); |
||
| 31 | |||
| 32 | switch ($type) { |
||
| 33 | case self::TYPE_NORMAL: |
||
| 34 | $this->setTextSize(1) |
||
| 35 | ->setHeight(5) |
||
| 36 | ->setTextFont('BiryaniDemiBold'); |
||
| 37 | break; |
||
| 38 | case self::TYPE_TITLE: |
||
| 39 | $this->setTextSize(1) |
||
| 40 | ->setHeight(5) |
||
| 41 | ->setTextFont('RajdhaniMono'); |
||
| 42 | |||
| 43 | break; |
||
| 44 | case self::TYPE_HEADER: |
||
| 45 | $this->setTextSize(1) |
||
| 46 | ->setHeight(5) |
||
| 47 | ->setTextFont('BiryaniDemiBold'); |
||
| 48 | break; |
||
| 49 | default: |
||
| 50 | $this->setTextSize(1) |
||
| 51 | ->setHeight(5); |
||
| 52 | break; |
||
| 53 | } |
||
| 54 | } |
||
| 55 | |||
| 100 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()method in theSoncalls the wrong method in the parent class.