Completed
Push — master ( 650d31...1f25f1 )
by AJ
02:01
created
tests/config/bootstrap.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
 EventManager::instance()->on(
30 30
     'Server.buildMiddleware',
31
-    function ($event, $middleware) {
31
+    function($event, $middleware) {
32 32
         $middleware->add(new SubdomainMiddleware());
33 33
     }
34 34
 );
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,8 @@
 block discarded – undo
28 28
 
29 29
 EventManager::instance()->on(
30 30
     'Server.buildMiddleware',
31
-    function ($event, $middleware) {
31
+    function ($event, $middleware)
32
+    {
32 33
         $middleware->add(new SubdomainMiddleware());
33 34
     }
34 35
 );
Please login to merge, or discard this patch.
tests/config/routes.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 Router::scope(
23 23
     '/',
24 24
     ['prefix' => 'admin'],
25
-    function ($routes) {
25
+    function($routes) {
26 26
         $routes->fallbacks('Multidimensional/Subdomains.SubdomainRoute');
27 27
     }
28 28
 );
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,8 @@
 block discarded – undo
22 22
 Router::scope(
23 23
     '/',
24 24
     ['prefix' => 'admin'],
25
-    function ($routes) {
25
+    function ($routes)
26
+    {
26 27
         $routes->fallbacks('Multidimensional/Subdomains.SubdomainRoute');
27 28
     }
28 29
 );
Please login to merge, or discard this patch.
src/Routing/Route/SubdomainRoute.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     /**
44 44
      * @param array $url
45 45
      * @param array $context
46
-     * @return bool|array
46
+     * @return false|string
47 47
      */
48 48
     public function match(array $url, array $context = [])
49 49
     {
Please login to merge, or discard this patch.
tests/TestCase/Routing/Route/SubdomainRouteTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $url = ['prefix' => 'users', 'Controller' => 'pages', 'action' => 'index'];
58 58
         $response = $this->SubdomainRoute->parse($url, '');
59 59
         //assertwrong*/
60
-     }
60
+        }
61 61
     
62 62
     /**
63 63
      * @return void
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,8 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * @return void
51 51
      */
52
-    public function testParse() {
52
+    public function testParse()
53
+    {
53 54
         $this->markTestIncomplete('Not implemented yet.');
54 55
         /*$url = ['prefix' => 'admin', 'Controller' => 'pages', 'action' => 'index'];
55 56
         $response = $this->SubdomainRoute->parse($url, '');
@@ -62,7 +63,8 @@  discard block
 block discarded – undo
62 63
     /**
63 64
      * @return void
64 65
      */
65
-    public function testMatch() {
66
+    public function testMatch()
67
+    {
66 68
         $this->markTestIncomplete('Not implemented yet.');
67 69
         /*$url = ['prefix' => 'admin', 'Controller' => 'pages', 'action' => 'index'];
68 70
         $response = $this->SubdomainRoute->match($url, '');
Please login to merge, or discard this patch.
tests/TestCase/Middleware/SubdomainMiddlewareTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,8 @@
 block discarded – undo
72 72
     /**
73 73
      * @return void
74 74
      */
75
-    public function testInvoke() {
75
+    public function testInvoke()
76
+    {
76 77
         $this->markTestIncomplete('Not implemented yet.');
77 78
         /*$this->configRequest(['uri' => ['_host' => 'admin.example.com']]);
78 79
         $request = $this->getMockBuilder('Psr\Http\Message\ServerRequestInterface')->getMock();
Please login to merge, or discard this patch.
tests/TestCase/Shell/Helper/HeaderHelperTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,8 @@
 block discarded – undo
32 32
     /**
33 33
      * @return void
34 34
      */
35
-    public function testOutput() {
35
+    public function testOutput()
36
+    {
36 37
         $this->markTestIncomplete('Not implemented yet.');
37 38
     }
38 39
     
Please login to merge, or discard this patch.