| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 14 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 32 | public function title() : string  | 
            ||
| 33 |     { | 
            ||
| 34 |         if (isset($this->getView()->viewVars['_title'])) { | 
            ||
| 35 | return $this->getView()->viewVars['_title'];  | 
            ||
| 36 | }  | 
            ||
| 37 |         $title = Inflector::humanize($this->getView()->request->getParam('controller', '')); | 
            ||
| 38 |         $suffix = Inflector::humanize($this->getView()->request->getParam('action', '')); | 
            ||
| 39 |         if (empty($title)) { | 
            ||
| 40 | $title = $suffix;  | 
            ||
| 41 |         } elseif (!empty($suffix)) { | 
            ||
| 42 |             $title .= sprintf(' - %s', $suffix); | 
            ||
| 43 | }  | 
            ||
| 44 | |||
| 45 | return $title;  | 
            ||
| 46 | }  | 
            ||
| 48 |