Completed
Branch master (3108bc)
by Igor
03:02
created
src/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
  * Autoload without composer.
4 4
  */
5 5
 $srcRoot = dirname(__FILE__);
6
-spl_autoload_register(function ($path) use ($srcRoot) {
6
+spl_autoload_register(function($path) use ($srcRoot) {
7 7
     $srcRoot = rtrim($srcRoot, '/') . '/';
8 8
     $path = str_replace('Dspbee\\Test\\', '', $path);
9 9
     $path = str_replace('Dspbee\\', '', $path);
Please login to merge, or discard this patch.
src/Bundle/Common/Bag/CookieBag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
      */
57 57
     public function fetch($key, $default = null)
58 58
     {
59
-        return $_COOKIE[$key] ?? $default;
59
+        return $_COOKIE[$key] ? ? $default;
60 60
     }
61 61
 
62 62
     /**
Please login to merge, or discard this patch.
src/Bundle/Common/Bag/GetBag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      */
58 58
     public function fetch($key, $default = null)
59 59
     {
60
-        return $_GET[$key] ?? $default;
60
+        return $_GET[$key] ? ? $default;
61 61
     }
62 62
 
63 63
     /**
Please login to merge, or discard this patch.
src/Bundle/Common/Bag/EnvBag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
      */
57 57
     public function fetch($key, $default = null)
58 58
     {
59
-        return $_ENV[$key] ?? $default;
59
+        return $_ENV[$key] ? ? $default;
60 60
     }
61 61
 
62 62
     /**
Please login to merge, or discard this patch.
src/Bundle/Common/Bag/ServerBag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
             return $_SERVER[$key];
60 60
         } else {
61 61
             $key = 'HTTP_' . $key;
62
-            return $_SERVER[$key] ?? $default;
62
+            return $_SERVER[$key] ? ? $default;
63 63
         }
64 64
     }
65 65
 
Please login to merge, or discard this patch.
src/Bundle/Common/Bag/PostBag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
      */
57 57
     public function fetch($key, $default = null)
58 58
     {
59
-        return $_POST[$key] ?? $default;
59
+        return $_POST[$key] ? ? $default;
60 60
     }
61 61
 
62 62
     /**
Please login to merge, or discard this patch.
src/Bundle/Common/Bag/ValueBag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
      */
60 60
     public function fetch($key, $default = null)
61 61
     {
62
-        return $this->bag[$key] ?? $default;
62
+        return $this->bag[$key] ? ? $default;
63 63
     }
64 64
 
65 65
     /**
Please login to merge, or discard this patch.
src/Bundle/Common/Session/SessionBag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
      */
80 80
     public function fetch($key, $default = null)
81 81
     {
82
-        return $_SESSION[$key] ?? $default;
82
+        return $_SESSION[$key] ? ? $default;
83 83
     }
84 84
 
85 85
     /**
Please login to merge, or discard this patch.
src/Bundle/Console/Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             $objects = scandir($dir);
44 44
             foreach ($objects as $object) {
45 45
                 if ('.' != $object && '..' != $object) {
46
-                    if ('dir' == filetype($dir . '/' .$object)) {
46
+                    if ('dir' == filetype($dir . '/' . $object)) {
47 47
                         self::removeFromDir($dir . '/' . $object, true);
48 48
                     } else {
49 49
                         unlink($dir . '/' . $object);
Please login to merge, or discard this patch.