@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | $this->failOnError($res); |
| 51 | 51 | return $this->toObject($res); |
| 52 | 52 | } catch (\Exception $ex) { |
| 53 | - throw new RestException($ex->getMessage(), ['result'=>empty($res)?null:$res]); |
|
| 53 | + throw new RestException($ex->getMessage(), ['result'=>empty($res) ? null : $res]); |
|
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $this->failOnError($res); |
| 62 | 62 | return $this->toObject($res); |
| 63 | 63 | } catch (\Exception $ex) { |
| 64 | - throw new RestException($ex->getMessage(), ['result'=>empty($res)?null:$res]); |
|
| 64 | + throw new RestException($ex->getMessage(), ['result'=>empty($res) ? null : $res]); |
|
| 65 | 65 | } |
| 66 | 66 | } |
| 67 | 67 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | $this->failOnError($res); |
| 73 | 73 | return $this->toObject($res); |
| 74 | 74 | } catch (\Exception $ex) { |
| 75 | - throw new RestException($ex->getMessage(), ['result'=>empty($res)?null:$res]); |
|
| 75 | + throw new RestException($ex->getMessage(), ['result'=>empty($res) ? null : $res]); |
|
| 76 | 76 | } |
| 77 | 77 | } |
| 78 | 78 | |