@@ -123,28 +123,22 @@ |
||
| 123 | 123 | if (is_array($arg)) |
| 124 | 124 | { |
| 125 | 125 | $params[] = 'array(' . count($arg) . ')'; |
| 126 | - } |
|
| 127 | - else if (is_object($arg)) |
|
| 126 | + } else if (is_object($arg)) |
|
| 128 | 127 | { |
| 129 | 128 | $params[] = get_class($arg); |
| 130 | - } |
|
| 131 | - else if (is_string($arg)) |
|
| 129 | + } else if (is_string($arg)) |
|
| 132 | 130 | { |
| 133 | 131 | $params[] = 'string(' . $arg . ')'; |
| 134 | - } |
|
| 135 | - else if (is_int($arg)) |
|
| 132 | + } else if (is_int($arg)) |
|
| 136 | 133 | { |
| 137 | 134 | $params[] = 'int(' . $arg . ')'; |
| 138 | - } |
|
| 139 | - else if (is_float($arg)) |
|
| 135 | + } else if (is_float($arg)) |
|
| 140 | 136 | { |
| 141 | 137 | $params[] = 'float(' . $arg . ')'; |
| 142 | - } |
|
| 143 | - else if (is_bool($arg)) |
|
| 138 | + } else if (is_bool($arg)) |
|
| 144 | 139 | { |
| 145 | 140 | $params[] = 'bool(' . ($arg ? 'true' : 'false') . ')'; |
| 146 | - } |
|
| 147 | - else |
|
| 141 | + } else |
|
| 148 | 142 | { |
| 149 | 143 | $params[] = (string) $arg; |
| 150 | 144 | } |
@@ -57,8 +57,7 @@ |
||
| 57 | 57 | if ($sslBundlePath === false) |
| 58 | 58 | { |
| 59 | 59 | $this->sslBundlePath = __DIR__ . DIRECTORY_SEPARATOR . 'ca_bundle.crt'; |
| 60 | - } |
|
| 61 | - else |
|
| 60 | + } else |
|
| 62 | 61 | { |
| 63 | 62 | $this->sslBundlePath = $sslBundlePath; |
| 64 | 63 | } |
@@ -32,8 +32,7 @@ |
||
| 32 | 32 | if ($response === false) |
| 33 | 33 | { |
| 34 | 34 | $this->lastError = curl_error($ch); |
| 35 | - } |
|
| 36 | - else |
|
| 35 | + } else |
|
| 37 | 36 | { |
| 38 | 37 | $this->lastError = null; |
| 39 | 38 | } |