@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | } catch (DynamoDbException $ex) { |
| 146 | 146 | $this->throwAwsPutError($ex); |
| 147 | 147 | } catch (\Exception $ex) { |
| 148 | - throw new RestException($ex->getMessage(), ['result'=>empty($res)?null:$res]); |
|
| 148 | + throw new RestException($ex->getMessage(), ['result'=>empty($res) ? null : $res]); |
|
| 149 | 149 | } |
| 150 | 150 | } |
| 151 | 151 | |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | $res = $this->client->deleteItem($query); |
| 168 | 168 | return $resourceId; |
| 169 | 169 | } catch (\Exception $ex) { |
| 170 | - throw new RestException($ex->getMessage(), ['result'=>empty($res)?null:$res]); |
|
| 170 | + throw new RestException($ex->getMessage(), ['result'=>empty($res) ? null : $res]); |
|
| 171 | 171 | } |
| 172 | 172 | } |
| 173 | 173 | |