@@ -16,7 +16,7 @@ |
||
| 16 | 16 | * @param $className |
| 17 | 17 | */ |
| 18 | 18 | spl_autoload_register( |
| 19 | - function ($className) {
|
|
| 19 | + function($className) {
|
|
| 20 | 20 | if (strpos($className, 'O2System\Psr\\') === false) {
|
| 21 | 21 | return; |
| 22 | 22 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | if ( ! $this->__isset($offset)) {
|
| 106 | - $this->registry[ $offset ] = $object; |
|
| 106 | + $this->registry[$offset] = $object; |
|
| 107 | 107 | } |
| 108 | 108 | } |
| 109 | 109 | } |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | */ |
| 139 | 139 | public function exists($offset) |
| 140 | 140 | {
|
| 141 | - return (bool)isset($this->registry[ $offset ]); |
|
| 141 | + return (bool)isset($this->registry[$offset]); |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | // ------------------------------------------------------------------------ |
@@ -155,13 +155,13 @@ discard block |
||
| 155 | 155 | */ |
| 156 | 156 | public function &getObject($offset) |
| 157 | 157 | {
|
| 158 | - $get[ $offset ] = null; |
|
| 158 | + $get[$offset] = null; |
|
| 159 | 159 | |
| 160 | 160 | if ($this->__isset($offset)) {
|
| 161 | - return $this->registry[ $offset ]; |
|
| 161 | + return $this->registry[$offset]; |
|
| 162 | 162 | } |
| 163 | 163 | |
| 164 | - return $get[ $offset ]; |
|
| 164 | + return $get[$offset]; |
|
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | // ------------------------------------------------------------------------ |
@@ -195,11 +195,11 @@ discard block |
||
| 195 | 195 | public function remove($offset) |
| 196 | 196 | {
|
| 197 | 197 | if ($this->__isset($offset)) {
|
| 198 | - if (method_exists($this->registry[ $offset ], '__destruct')) {
|
|
| 199 | - $this->registry[ $offset ]->__destruct(); |
|
| 198 | + if (method_exists($this->registry[$offset], '__destruct')) {
|
|
| 199 | + $this->registry[$offset]->__destruct(); |
|
| 200 | 200 | } |
| 201 | 201 | |
| 202 | - unset($this->registry[ $offset ]); |
|
| 202 | + unset($this->registry[$offset]); |
|
| 203 | 203 | } |
| 204 | 204 | } |
| 205 | 205 | |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | if (method_exists($object, '__destruct')) {
|
| 219 | 219 | $object->__destruct(); |
| 220 | 220 | } |
| 221 | - unset($this->registry[ $offset ]); |
|
| 221 | + unset($this->registry[$offset]); |
|
| 222 | 222 | } |
| 223 | 223 | } |
| 224 | 224 | |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | final public function getObjectHash($offset) |
| 237 | 237 | {
|
| 238 | 238 | if ($this->__isset($offset)) {
|
| 239 | - return spl_object_hash($this->registry[ $offset ]); |
|
| 239 | + return spl_object_hash($this->registry[$offset]); |
|
| 240 | 240 | } |
| 241 | 241 | |
| 242 | 242 | return false; |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | final public function getObjectId($offset) |
| 257 | 257 | {
|
| 258 | 258 | if ($this->__isset($offset)) {
|
| 259 | - return spl_object_id($this->registry[ $offset ]); |
|
| 259 | + return spl_object_id($this->registry[$offset]); |
|
| 260 | 260 | } |
| 261 | 261 | |
| 262 | 262 | return false; |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | */ |
| 108 | 108 | public function store($offset, $data) |
| 109 | 109 | {
|
| 110 | - $this->storage[ $offset ] = $data; |
|
| 110 | + $this->storage[$offset] = $data; |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | // ------------------------------------------------------------------------ |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | public function get($offset) |
| 126 | 126 | {
|
| 127 | 127 | if ($this->__isset($offset)) {
|
| 128 | - return $this->storage[ $offset ]; |
|
| 128 | + return $this->storage[$offset]; |
|
| 129 | 129 | } |
| 130 | 130 | } |
| 131 | 131 | |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | */ |
| 162 | 162 | public function exists($offset) |
| 163 | 163 | {
|
| 164 | - return (bool)isset($this->storage[ $offset ]); |
|
| 164 | + return (bool)isset($this->storage[$offset]); |
|
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | // ------------------------------------------------------------------------ |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | public function remove($offset) |
| 237 | 237 | {
|
| 238 | 238 | if ($this->__isset($offset)) {
|
| 239 | - unset($this->storage[ $offset ]); |
|
| 239 | + unset($this->storage[$offset]); |
|
| 240 | 240 | } |
| 241 | 241 | } |
| 242 | 242 | |
@@ -330,9 +330,9 @@ discard block |
||
| 330 | 330 | public function search($offset, $return = false) |
| 331 | 331 | {
|
| 332 | 332 | if (array_key_exists($offset, $this->storage)) {
|
| 333 | - return $this->storage[ $offset ]; |
|
| 333 | + return $this->storage[$offset]; |
|
| 334 | 334 | } elseif (false !== ($offsetKey = array_search($offset, $this->storage))) {
|
| 335 | - return $this->storage[ $offsetKey ]; |
|
| 335 | + return $this->storage[$offsetKey]; |
|
| 336 | 336 | } |
| 337 | 337 | |
| 338 | 338 | return $return; |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | protected function __construct() |
| 38 | 38 | {
|
| 39 | - static::$instance =& $this; |
|
| 39 | + static::$instance = & $this; |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | // ------------------------------------------------------------------------ |
@@ -860,7 +860,7 @@ |
||
| 860 | 860 | * |
| 861 | 861 | * @var int |
| 862 | 862 | */ |
| 863 | - const STATUS_BANDWIDTH_LIMIT_EXCEEDED = 509; // Apache bw/limited extension |
|
| 863 | + const STATUS_BANDWIDTH_LIMIT_EXCEEDED = 509; // Apache bw/limited extension |
|
| 864 | 864 | |
| 865 | 865 | /** |
| 866 | 866 | * 510 Not Extended |