Completed
Push — master ( 6c2bdc...71996f )
by Alex
01:53
created
Mezon/Router/Types/FixPointNumberRouterType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public static function searchRegExp(): string
18 18
     {
19
-        return '(\[fp:'.BaseType::PARAMETER_NAME_REGEXP.'+\])';
19
+        return '(\[fp:' . BaseType::PARAMETER_NAME_REGEXP . '+\])';
20 20
     }
21 21
 
22 22
     /**
Please login to merge, or discard this patch.
Mezon/Router/Types/StringRouterType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public static function searchRegExp(): string
18 18
     {
19
-        return '(\[s:'.BaseType::PARAMETER_NAME_REGEXP.'\])';
19
+        return '(\[s:' . BaseType::PARAMETER_NAME_REGEXP . '\])';
20 20
     }
21 21
 
22 22
     /**
Please login to merge, or discard this patch.
Mezon/Router/Types/IntegerListRouterType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public static function searchRegExp(): string
18 18
     {
19
-        return '(\[il:'.BaseType::PARAMETER_NAME_REGEXP.'\])';
19
+        return '(\[il:' . BaseType::PARAMETER_NAME_REGEXP . '\])';
20 20
     }
21 21
 
22 22
     /**
Please login to merge, or discard this patch.
Mezon/Router/Types/CommandRouterType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public static function searchRegExp(): string
18 18
     {
19
-        return '(\[a:'.BaseType::PARAMETER_NAME_REGEXP.'\])';
19
+        return '(\[a:' . BaseType::PARAMETER_NAME_REGEXP . '\])';
20 20
     }
21 21
 
22 22
     /**
Please login to merge, or discard this patch.
Mezon/Router/Types/IntegerRouterType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public static function searchRegExp(): string
18 18
     {
19
-        return '(\[i:'.BaseType::PARAMETER_NAME_REGEXP.'+\])';
19
+        return '(\[i:' . BaseType::PARAMETER_NAME_REGEXP . '+\])';
20 20
     }
21 21
 
22 22
     /**
Please login to merge, or discard this patch.
Mezon/Router/Types/DateRouterType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public static function searchRegExp(): string
18 18
     {
19
-        return '(\[date:'.BaseType::PARAMETER_NAME_REGEXP.'\])';
19
+        return '(\[date:' . BaseType::PARAMETER_NAME_REGEXP . '\])';
20 20
     }
21 21
 
22 22
     /**
Please login to merge, or discard this patch.
Mezon/Router/Utils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             $methodName[0] = strtolower($methodName[0]);
33 33
         }
34 34
 
35
-        for ($i = 1; $i < strlen($methodName); $i ++) {
35
+        for ($i = 1; $i < strlen($methodName); $i++) {
36 36
             if (ctype_upper($methodName[$i])) {
37 37
                 $methodName = substr_replace($methodName, '-' . strtolower($methodName[$i]), $i, 1);
38 38
             }
Please login to merge, or discard this patch.
Mezon/Router/Tests/GetCallbackUnitTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         // setup
39 39
         $router = new Router();
40
-        $router->addRoute($route, function () {
40
+        $router->addRoute($route, function() {
41 41
             return 'route result';
42 42
         });
43 43
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     {
56 56
         // setup
57 57
         $router = new Router();
58
-        $router->addRoute('existing-route', function () {
58
+        $router->addRoute('existing-route', function() {
59 59
             return 'existing route result';
60 60
         });
61 61
 
Please login to merge, or discard this patch.
Mezon/Router/Tests/RouterUnitTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             # 1, lambda
80 80
             [
81 81
                 '/one-component-lambda/',
82
-                function () {
82
+                function() {
83 83
                     return 'Hello lambda!';
84 84
                 },
85 85
                 'Hello lambda!'
@@ -168,16 +168,16 @@  discard block
 block discarded – undo
168 168
     {
169 169
         $route = '/catalog/';
170 170
         $router = new \Mezon\Router\Router();
171
-        $router->addRoute($route, function () {
171
+        $router->addRoute($route, function() {
172 172
             return 'POST';
173 173
         }, 'POST');
174
-        $router->addRoute($route, function () {
174
+        $router->addRoute($route, function() {
175 175
             return 'GET';
176 176
         }, 'GET');
177
-        $router->addRoute($route, function () {
177
+        $router->addRoute($route, function() {
178 178
             return 'PUT';
179 179
         }, 'PUT');
180
-        $router->addRoute($route, function () {
180
+        $router->addRoute($route, function() {
181 181
             return RouterUnitTest::DELETE_REQUEST_METHOD;
182 182
         }, RouterUnitTest::DELETE_REQUEST_METHOD);
183 183
 
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     {
214 214
         // setup
215 215
         $router = new \Mezon\Router\Router();
216
-        $router->setNoProcessorFoundErrorHandler(function () {
216
+        $router->setNoProcessorFoundErrorHandler(function() {
217 217
             $this->errorHandler();
218 218
         });
219 219
 
Please login to merge, or discard this patch.