Completed
Pull Request — master (#98)
by
unknown
02:12
created
Zewa/HTTP/Server.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Zewa;
4 4
 
5 5
 use Sabre\Event\Emitter;
Please login to merge, or discard this patch.
Zewa/Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Zewa;
4 4
 
5 5
 use Sabre\Event\Emitter;
Please login to merge, or discard this patch.
Zewa/Router.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
         if (is_null($this->baseURL)) {
169 169
             $self = $_SERVER['PHP_SELF'];
170 170
             $server = $_SERVER['HTTP_HOST']
171
-                      . rtrim(str_replace(strstr($self, 'index.php'), '', $self), '/');
171
+                        . rtrim(str_replace(strstr($self, 'index.php'), '', $self), '/');
172 172
 
173 173
             if ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off')
174 174
                 || !empty($_SERVER['HTTP_X_FORWARDED_PROTO'])
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Zewa;
4 4
 
5 5
 use Sabre\Event\Emitter;
Please login to merge, or discard this patch.
Zewa/Security.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
                 //@TODO this will not accept all float values, this validates /against/ syntax
49 49
 
50 50
                 if (($int === (int)trim($data, '-')) && strlen((string)(int)$data) === strlen($data)) {
51
-                    $data = (int) $data;
51
+                    $data = (int)$data;
52 52
                 } elseif ($int !== $float && preg_match($re, $data) === 1 && strlen($data) === strlen($float)) {
53 53
                     $data = $float;
54 54
                 }
Please login to merge, or discard this patch.
Zewa/HTTP/Put.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Zewa;
4 4
 
5 5
 use Sabre\Event\Emitter;
Please login to merge, or discard this patch.
Zewa/HTTP/SuperGlobal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Zewa;
4 4
 
5 5
 use Sabre\Event\Emitter;
Please login to merge, or discard this patch.
Zewa/HTTP/Delete.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Zewa;
4 4
 
5 5
 use Sabre\Event\Emitter;
Please login to merge, or discard this patch.
Zewa/Collection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     public function isEmpty() : bool
37 37
     {
38
-        if (! empty($this->collection)) {
38
+        if (!empty($this->collection)) {
39 39
             return false;
40 40
         }
41 41
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         $result = [];
135 135
 
136 136
         foreach ($this->collection as $key => $item) {
137
-            if (! $func($key, $item)) {
137
+            if (!$func($key, $item)) {
138 138
                 $result[$key] = $item;
139 139
             }
140 140
         }
Please login to merge, or discard this patch.