| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function render() |
||
| 33 | { |
||
| 34 | if (!\is_object($this->arguments['date'])) { |
||
| 35 | $this->logger->error('Do not call year viewhelper without date'); |
||
| 36 | |||
| 37 | return $this->renderChildren(); |
||
| 38 | } |
||
| 39 | $date = $this->arguments['date']; |
||
| 40 | $additionalParams = [ |
||
| 41 | 'tx_calendarize_calendar' => [ |
||
| 42 | 'year' => $date->format('Y'), |
||
| 43 | 'quarter' => DateTimeUtility::getQuartar($date), |
||
| 44 | ], |
||
| 45 | ]; |
||
| 46 | |||
| 47 | return parent::renderLink($this->getPageUid($this->arguments['pageUid']), $additionalParams); |
||
|
|
|||
| 48 | } |
||
| 49 | } |
||
| 50 |
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.