@@ -1,5 +1,5 @@ |
||
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; |
@@ -1,5 +1,5 @@ |
||
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; |
@@ -168,7 +168,7 @@ |
||
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']) |
@@ -1,5 +1,5 @@ |
||
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; |
@@ -48,7 +48,7 @@ |
||
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 | } |
@@ -1,5 +1,5 @@ |
||
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; |
@@ -1,5 +1,5 @@ |
||
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; |
@@ -1,5 +1,5 @@ |
||
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; |
@@ -35,7 +35,7 @@ discard block |
||
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 |
||
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 | } |