@@ -65,7 +65,7 @@ |
||
65 | 65 | * omited |
66 | 66 | * @param array $params Optional parameters |
67 | 67 | * |
68 | - * @return void |
|
68 | + * @return string |
|
69 | 69 | */ |
70 | 70 | public function __invoke($address, $linktext = null, $params = array()) |
71 | 71 | { |
@@ -83,7 +83,7 @@ |
||
83 | 83 | $classes = $params['class']; |
84 | 84 | $classes = explode(' ', $classes); |
85 | 85 | } |
86 | - if (! in_array($this->mailtoclass, $classes)) { |
|
86 | + if ( ! in_array($this->mailtoclass, $classes)) { |
|
87 | 87 | $classes[] = $this->mailtoclass; |
88 | 88 | } |
89 | 89 | $params['class'] = implode(' ', $classes); |
@@ -35,7 +35,6 @@ |
||
35 | 35 | use Zend\Http\Response; |
36 | 36 | use Zend\Mvc\MvcEvent; |
37 | 37 | use Zend\Router\Http\RouteMatch; |
38 | -use Zend\Stdlib\ResponseInterface; |
|
39 | 38 | use Zend\View\Model\ViewModel; |
40 | 39 | |
41 | 40 | class ProxyControllerTest extends TestCase |
@@ -39,21 +39,21 @@ discard block |
||
39 | 39 | 'view_helpers' => array( |
40 | 40 | 'invokables' => array( |
41 | 41 | 'mailto' => Mailto::class, |
42 | - ), |
|
43 | - ), |
|
44 | - 'controllers' => array( |
|
45 | - 'invokables' => array( |
|
46 | - ProxyController::class => ProxyController::class |
|
47 | - ), |
|
48 | - ), |
|
49 | - 'router' => array( |
|
50 | - 'routes' => array( |
|
51 | - 'mailproxy' => array( |
|
52 | - 'type' => 'Segment', |
|
42 | + ), |
|
43 | + ), |
|
44 | + 'controllers' => array( |
|
45 | + 'invokables' => array( |
|
46 | + ProxyController::class => ProxyController::class |
|
47 | + ), |
|
48 | + ), |
|
49 | + 'router' => array( |
|
50 | + 'routes' => array( |
|
51 | + 'mailproxy' => array( |
|
52 | + 'type' => 'Segment', |
|
53 | 53 | 'options' => array( |
54 | - 'route' => '/mailproxy[/:id]', |
|
54 | + 'route' => '/mailproxy[/:id]', |
|
55 | 55 | 'defaults' => array( |
56 | - 'controller' => ProxyController::class, |
|
56 | + 'controller' => ProxyController::class, |
|
57 | 57 | 'action' => 'index', |
58 | 58 | 'id' => 'moc.elpmaxe@ofni', |
59 | 59 | ), |
@@ -68,14 +68,14 @@ discard block |
||
68 | 68 | ), |
69 | 69 | ), |
70 | 70 | 'view_manager' => array( |
71 | - 'display_not_found_reason' => true, |
|
72 | - 'display_exceptions' => true, |
|
73 | - 'doctype' => 'HTML5', |
|
74 | - 'not_found_template' => 'error/404', |
|
75 | - 'exception_template' => 'error/index', |
|
76 | - 'template_map' => array(), |
|
77 | - 'template_path_stack' => array( |
|
78 | - __DIR__ . '/../view', |
|
79 | - ), |
|
71 | + 'display_not_found_reason' => true, |
|
72 | + 'display_exceptions' => true, |
|
73 | + 'doctype' => 'HTML5', |
|
74 | + 'not_found_template' => 'error/404', |
|
75 | + 'exception_template' => 'error/index', |
|
76 | + 'template_map' => array(), |
|
77 | + 'template_path_stack' => array( |
|
78 | + __DIR__ . '/../view', |
|
79 | + ), |
|
80 | 80 | ), |
81 | 81 | ); |