@@ -59,7 +59,7 @@ |
||
| 59 | 59 | */ |
| 60 | 60 | private function getValue($path) |
| 61 | 61 | { |
| 62 | - $val = $this->xml->xpath($path . '/text()'); |
|
| 62 | + $val = $this->xml->xpath($path.'/text()'); |
|
| 63 | 63 | return (string) $val[0]; |
| 64 | 64 | } |
| 65 | 65 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | if (array_key_exists($name, $this->properties)) { |
| 28 | 28 | return $this->properties[$name]; |
| 29 | 29 | } |
| 30 | - throw new Fio\TransactionPropertyException('Property does not exists. ' . $name); |
|
| 30 | + throw new Fio\TransactionPropertyException('Property does not exists. '.$name); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | public function clearTemporaryValues() |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | public function bindProperty($name, $type, $value) |
| 39 | 39 | { |
| 40 | - $method = 'set' . ucfirst($name); |
|
| 40 | + $method = 'set'.ucfirst($name); |
|
| 41 | 41 | if (method_exists($this, $method)) { |
| 42 | 42 | $value = $this->{$method}($value); |
| 43 | 43 | } elseif ($value !== NULL) { |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | } |
| 94 | 94 | return intval($value); |
| 95 | 95 | case 'string|null': |
| 96 | - return trim($value) ? : NULL; |
|
| 96 | + return trim($value) ?: NULL; |
|
| 97 | 97 | } |
| 98 | 98 | return $value; |
| 99 | 99 | } |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | throw $e; |
| 94 | 94 | } elseif ($i >= $this->limitLoop) { |
| 95 | 95 | fclose($file); |
| 96 | - throw new Fio\QueueLimitException('You have limit up requests to server ' . $this->limitLoop); |
|
| 96 | + throw new Fio\QueueLimitException('You have limit up requests to server '.$this->limitLoop); |
|
| 97 | 97 | } |
| 98 | 98 | self::sleep($tempFile); |
| 99 | 99 | $next = TRUE; |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | { |
| 121 | 121 | $key = substr($token, 10, -10); |
| 122 | 122 | if (!isset(self::$tokens[$key])) { |
| 123 | - self::$tokens[$key] = $this->tempDir . DIRECTORY_SEPARATOR . md5($key); |
|
| 123 | + self::$tokens[$key] = $this->tempDir.DIRECTORY_SEPARATOR.md5($key); |
|
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | return self::$tokens[$key]; |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | |
| 129 | 129 | private static function safeProtocol($filename) |
| 130 | 130 | { |
| 131 | - return Utils\SafeStream::PROTOCOL . '://' . $filename; |
|
| 131 | + return Utils\SafeStream::PROTOCOL.'://'.$filename; |
|
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | |
| 30 | 30 | private function setTemp($temp) |
| 31 | 31 | { |
| 32 | - $this->temp = $temp ? : sys_get_temp_dir(); |
|
| 32 | + $this->temp = $temp ?: sys_get_temp_dir(); |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |