Completed
Push — master ( 9442e1...116254 )
by Tomas
02:50
created
src/Authorization/BearerTokenAuthorization.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,12 +68,12 @@
 block discarded – undo
68 68
             $range .= '/32';
69 69
         }
70 70
         // $range is in IP/CIDR format eg 127.0.0.1/24
71
-        list( $range, $netmask ) = explode('/', $range, 2);
71
+        list($range, $netmask) = explode('/', $range, 2);
72 72
         $range_decimal = ip2long($range);
73 73
         $ip_decimal = ip2long($ip);
74 74
         $wildcard_decimal = pow(2, (32 - $netmask)) - 1;
75 75
         $netmask_decimal = ~ $wildcard_decimal;
76
-        return ( ( $ip_decimal & $netmask_decimal ) == ( $range_decimal & $netmask_decimal ) );
76
+        return (($ip_decimal & $netmask_decimal) == ($range_decimal & $netmask_decimal));
77 77
     }
78 78
 
79 79
     public function getErrorMessage()
Please login to merge, or discard this patch.
src/Presenters/ApiPresenter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
                 $_SERVER['REQUEST_URI'],
85 85
                 $this->ipDetector->getRequestIp(),
86 86
                 $_SERVER['HTTP_USER_AGENT'],
87
-                ($end-$start) * 1000
87
+                ($end - $start) * 1000
88 88
             );
89 89
         }
90 90
 
Please login to merge, or discard this patch.
src/Params/ParamsProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         $result = [];
28 28
         foreach ($this->params as $param) {
29
-            $result[ $param->getKey() ] = $param->getValue();
29
+            $result[$param->getKey()] = $param->getValue();
30 30
         }
31 31
 
32 32
         return $result;
Please login to merge, or discard this patch.
src/Handlers/EchoHandler.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,20 +7,20 @@
 block discarded – undo
7 7
 
8 8
 class EchoHandler extends BaseHandler
9 9
 {
10
-	public function params()
11
-	{
12
-		return [
13
-			new InputParam(InputParam::TYPE_GET, 'status', InputParam::REQUIRED, ['ok', 'error']),
14
-			new InputParam(InputParam::TYPE_GET, 'message'),
15
-		];
16
-	}
10
+    public function params()
11
+    {
12
+        return [
13
+            new InputParam(InputParam::TYPE_GET, 'status', InputParam::REQUIRED, ['ok', 'error']),
14
+            new InputParam(InputParam::TYPE_GET, 'message'),
15
+        ];
16
+    }
17 17
 
18 18
     /**
19 19
      * {@inheritdoc}
20 20
      */
21 21
     public function handle($params)
22 22
     {
23
-    	$status = $params['status'];
23
+        $status = $params['status'];
24 24
         return new ApiResponse(200, ['status' => $status, 'params' => $params]);
25 25
     }
26 26
 }
Please login to merge, or discard this patch.