@@ -3,7 +3,7 @@ |
||
| 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); |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @license MIT |
|
| 4 | - * @author Igor Sorokin <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @license MIT |
|
| 4 | + * @author Igor Sorokin <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace Dspbee\Bundle\Database; |
| 7 | 7 | |
| 8 | 8 | /** |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @license MIT |
|
| 4 | - * @author Igor Sorokin <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @license MIT |
|
| 4 | + * @author Igor Sorokin <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace Dspbee\Bundle\Common\Bag; |
| 7 | 7 | |
| 8 | 8 | /** |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @license MIT |
|
| 4 | - * @author Igor Sorokin <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @license MIT |
|
| 4 | + * @author Igor Sorokin <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace Dspbee\Bundle\Common\Bag; |
| 7 | 7 | |
| 8 | 8 | /** |
@@ -56,7 +56,7 @@ |
||
| 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 | /** |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @license MIT |
|
| 4 | - * @author Igor Sorokin <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @license MIT |
|
| 4 | + * @author Igor Sorokin <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace Dspbee\Bundle\Common\Bag; |
| 7 | 7 | |
| 8 | 8 | /** |
@@ -57,7 +57,7 @@ |
||
| 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 | /** |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @license MIT |
|
| 4 | - * @author Igor Sorokin <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @license MIT |
|
| 4 | + * @author Igor Sorokin <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace Dspbee\Bundle\Common\Bag; |
| 7 | 7 | |
| 8 | 8 | /** |
@@ -56,7 +56,7 @@ |
||
| 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 | /** |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @license MIT |
|
| 4 | - * @author Igor Sorokin <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @license MIT |
|
| 4 | + * @author Igor Sorokin <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace Dspbee\Bundle\Common\Bag; |
| 7 | 7 | |
| 8 | 8 | /** |
@@ -59,7 +59,7 @@ |
||
| 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 | |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @license MIT |
|
| 4 | - * @author Igor Sorokin <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @license MIT |
|
| 4 | + * @author Igor Sorokin <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace Dspbee\Bundle\Common\Bag; |
| 7 | 7 | |
| 8 | 8 | /** |
@@ -56,7 +56,7 @@ |
||
| 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 | /** |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @license MIT |
|
| 4 | - * @author Igor Sorokin <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @license MIT |
|
| 4 | + * @author Igor Sorokin <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace Dspbee\Bundle\Common\Bag; |
| 7 | 7 | |
| 8 | 8 | /** |
@@ -59,7 +59,7 @@ |
||
| 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 | /** |