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