@@ -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 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | namespace Zewa\HTTP; |
| 4 | 4 | |
| 5 | 5 | use Zewa\Interfaces\HTTP\GlobalInterface; |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | public function fetch(string $key = null, $default = null) |
| 36 | 36 | { |
| 37 | 37 | $global = $this->getGlobalName(); |
| 38 | - if($key === null) { |
|
| 38 | + if ($key === null) { |
|
| 39 | 39 | return $this->container->get($global); |
| 40 | 40 | } |
| 41 | 41 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | public function remove(string $key) |
| 46 | 46 | { |
| 47 | 47 | $global = $this->getGlobalName(); |
| 48 | - if($this->container->has($global)) { |
|
| 48 | + if ($this->container->has($global)) { |
|
| 49 | 49 | $this->processRemoval($key); |
| 50 | 50 | } |
| 51 | 51 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | { |
| 60 | 60 | $global = $this->getGlobalName(); |
| 61 | 61 | $container = $this->container->get($global); |
| 62 | - if(isset($container[$key])) { |
|
| 62 | + if (isset($container[$key])) { |
|
| 63 | 63 | unset($container[$key]); |
| 64 | 64 | $this->container->set($global, $container); |
| 65 | 65 | } |
@@ -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 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | namespace Zewa\HTTP; |
| 4 | 4 | |
| 5 | 5 | use Zewa\Container; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | private function incrementFlashStorage(array $storage) |
| 51 | 51 | { |
| 52 | 52 | foreach ($storage as $variable => $data) { |
| 53 | - $storage[$variable]['increment'] ++; |
|
| 53 | + $storage[$variable]['increment']++; |
|
| 54 | 54 | if ($storage[$variable]['increment'] > 1) { |
| 55 | 55 | unset($_SESSION[$variable], $storage[$variable]); |
| 56 | 56 | } else { |
@@ -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 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | namespace Zewa\HTTP; |
| 4 | 4 | |
| 5 | 5 | use Zewa\Container; |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | parent::__construct($container, $security); |
| 13 | 13 | |
| 14 | - if($_SERVER['REQUEST_METHOD'] === "DELETE") { |
|
| 14 | + if ($_SERVER['REQUEST_METHOD'] === "DELETE") { |
|
| 15 | 15 | parse_str(file_get_contents('php://input', "r"), $delete); |
| 16 | 16 | $_POST = []; |
| 17 | 17 | } |
@@ -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; |