@@ -16,7 +16,7 @@ |
||
| 16 | 16 | public function __construct($filePath, $section = null) |
| 17 | 17 | { |
| 18 | 18 | $this->filePath = (string)$filePath; |
| 19 | - $this->section = is_null($section) ? null : (string) $section; |
|
| 19 | + $this->section = is_null($section) ? null : (string)$section; |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -183,7 +183,7 @@ |
||
| 183 | 183 | */ |
| 184 | 184 | public function getSetting($setting) |
| 185 | 185 | { |
| 186 | - $setting = (string) $setting; |
|
| 186 | + $setting = (string)$setting; |
|
| 187 | 187 | return isset($this->settings[$setting]) ? $this->settings[$setting] : null; |
| 188 | 188 | } |
| 189 | 189 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | if (is_float($value) && ((int)$value === 0)) { |
| 32 | 32 | return false; |
| 33 | 33 | } |
| 34 | - $valueTest = (int) $value; |
|
| 34 | + $valueTest = (int)$value; |
|
| 35 | 35 | return ($valueTest === 0) ? is_numeric($value) : ($valueTest == $value); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function format($value) |
| 29 | 29 | { |
| 30 | - $value = (string) $value; |
|
| 30 | + $value = (string)$value; |
|
| 31 | 31 | if ($value == "") { |
| 32 | 32 | $this->hasError = true; |
| 33 | 33 | return ""; |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | */ |
| 69 | 69 | public function getValue() |
| 70 | 70 | { |
| 71 | - return $this->getAuthorizationType() . ' ' . ($this->getToken() ? : ''); |
|
| 71 | + return $this->getAuthorizationType() . ' ' . ($this->getToken() ?: ''); |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | /** |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | public function setFileName($fileName = null) |
| 45 | 45 | { |
| 46 | - $this->fileName = is_null($fileName) ? null : (string) $fileName; |
|
| 46 | + $this->fileName = is_null($fileName) ? null : (string)$fileName; |
|
| 47 | 47 | return $this; |
| 48 | 48 | } |
| 49 | 49 | |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | |
| 15 | 15 | const VALUE_OK = '200 OK'; |
| 16 | 16 | |
| 17 | - const VALUE_BAD_REQUEST= '400 Bad Request'; |
|
| 17 | + const VALUE_BAD_REQUEST = '400 Bad Request'; |
|
| 18 | 18 | const VALUE_UNAUTHORIZED = '401 Unauthorized'; |
| 19 | 19 | const VALUE_PAYMENT_REQUIRED = '402 Payment Required'; |
| 20 | 20 | const VALUE_FORBIDDEN = '403 Forbidden'; |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | */ |
| 230 | 230 | public function get($name) |
| 231 | 231 | { |
| 232 | - $name = (string) $name; |
|
| 232 | + $name = (string)$name; |
|
| 233 | 233 | return $this->has($name) ? $_SESSION[$name] : null; |
| 234 | 234 | } |
| 235 | 235 | |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | */ |
| 242 | 242 | public function has($name) |
| 243 | 243 | { |
| 244 | - $name = (string) $name; |
|
| 244 | + $name = (string)$name; |
|
| 245 | 245 | return $this->start() && array_key_exists($name, $_SESSION); |
| 246 | 246 | } |
| 247 | 247 | |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | public function set($name, $value) |
| 256 | 256 | { |
| 257 | 257 | if ($this->start()) { |
| 258 | - $name = (string) $name; |
|
| 258 | + $name = (string)$name; |
|
| 259 | 259 | $_SESSION[$name] = $value; |
| 260 | 260 | } |
| 261 | 261 | return $this; |
@@ -183,7 +183,7 @@ |
||
| 183 | 183 | */ |
| 184 | 184 | public function getSetting($setting) |
| 185 | 185 | { |
| 186 | - $setting = (string) $setting; |
|
| 186 | + $setting = (string)$setting; |
|
| 187 | 187 | return isset($this->settings[$setting]) ? $this->settings[$setting] : null; |
| 188 | 188 | } |
| 189 | 189 | } |