@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | } catch (DynamoDbException $ex) { |
116 | 116 | $this->throwAwsPutError($ex); |
117 | 117 | } catch (\Exception $ex) { |
118 | - throw new RestException($ex->getMessage(), ['result'=>empty($res)?null:$res]); |
|
118 | + throw new RestException($ex->getMessage(), ['result'=>empty($res) ? null : $res]); |
|
119 | 119 | } |
120 | 120 | return $newResource; |
121 | 121 | } |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | $res = $this->client->deleteItem($query); |
128 | 128 | return $resourceId; |
129 | 129 | } catch (\Exception $ex) { |
130 | - throw new RestException($ex->getMessage(), ['result'=>empty($res)?null:$res]); |
|
130 | + throw new RestException($ex->getMessage(), ['result'=>empty($res) ? null : $res]); |
|
131 | 131 | } |
132 | 132 | } |
133 | 133 | } |