@@ -69,8 +69,7 @@ |
||
| 69 | 69 | 'transFatContent' => round($result->totalNutrients->FATRN->quantity / $yield, 1), |
| 70 | 70 | 'unsaturatedFatContent' => round(($result->totalNutrients->FAMS->quantity + $result->totalNutrients->FAPU->quantity) / $yield, 1), |
| 71 | 71 | ]; |
| 72 | - } |
|
| 73 | - catch (Exception $exception) { |
|
| 72 | + } catch (Exception $exception) { |
|
| 74 | 73 | $message = 'Error fetching nutritional information from API. '; |
| 75 | 74 | |
| 76 | 75 | switch ($exception->getCode()) { |
@@ -114,8 +114,7 @@ |
||
| 114 | 114 | if (!Craft::$app->getElements()->saveElement($entry)) { |
| 115 | 115 | $failed++; |
| 116 | 116 | } |
| 117 | - } |
|
| 118 | - else { |
|
| 117 | + } else { |
|
| 119 | 118 | $failed++; |
| 120 | 119 | } |
| 121 | 120 | |