Completed
Pull Request — master (#2)
by Andreas
07:58
created
src/View/Helper/Mailto.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,14 +76,14 @@
 block discarded – undo
76 76
 
77 77
 }');
78 78
 
79
-        if ( null === $linktext ) {
79
+        if (null === $linktext) {
80 80
             $linktext = strrev($address);
81 81
             $classes = array();
82 82
             if (isset($params['class'])) {
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);
Please login to merge, or discard this patch.
tests/Controller/ProxyControllerTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Module.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,13 +69,13 @@
 block discarded – undo
69 69
 
70 70
     public function onBootstrap($e)
71 71
     {
72
-    	$eventManager        = $e->getApplication()->getEventManager();
73
-    	$moduleRouteListener = new ModuleRouteListener();
74
-    	$moduleRouteListener->attach($eventManager);
72
+        $eventManager        = $e->getApplication()->getEventManager();
73
+        $moduleRouteListener = new ModuleRouteListener();
74
+        $moduleRouteListener->attach($eventManager);
75 75
     }
76 76
     
77 77
     public function getConfig()
78 78
     {
79
-    	return include __DIR__ . '/config/module.config.php';
79
+        return include __DIR__ . '/config/module.config.php';
80 80
     }
81 81
 }
Please login to merge, or discard this patch.
config/module.config.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -39,21 +39,21 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 );
Please login to merge, or discard this patch.