Completed
Pull Request — master (#89)
by Josh
46:41 queued 24:56
created
Zewa/HTTP/Cookie.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/Post.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   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Zewa/HTTP/Request.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/Session.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 {
Please login to merge, or discard this patch.
Zewa/HTTP/Get.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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Zewa/HTTP/File.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/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.