| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 62.5% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class GreetController |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Greets a specified name. |
||
| 17 | * |
||
| 18 | * @return string |
||
| 19 | */ |
||
| 20 | 4 | public function greet($name = 'Stranger') |
|
| 21 | { |
||
| 22 | 4 | $data = array('name' => (string) $name); |
|
| 23 | |||
| 24 | 4 | return View::make('greet', $data); |
|
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Shouts the specified name. |
||
| 29 | * |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | 2 | public function scream() |
|
| 35 | } |
||
| 36 | } |
||
| 37 |