@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | $review = [ |
| 289 | 289 | 'type' => 'Review', |
| 290 | 290 | 'author' => $rating['author'], |
| 291 | - 'name' => $this->name . ' ' . Craft::t('recipe', 'Review'), |
|
| 291 | + 'name' => $this->name.' '.Craft::t('recipe', 'Review'), |
|
| 292 | 292 | 'description' => $rating['review'], |
| 293 | 293 | 'reviewRating' => [ |
| 294 | 294 | 'type' => 'Rating', |
@@ -304,13 +304,13 @@ discard block |
||
| 304 | 304 | } |
| 305 | 305 | |
| 306 | 306 | if ($this->prepTime) { |
| 307 | - $recipeJSONLD['prepTime'] = 'PT' . $this->prepTime . 'M'; |
|
| 307 | + $recipeJSONLD['prepTime'] = 'PT'.$this->prepTime.'M'; |
|
| 308 | 308 | } |
| 309 | 309 | if ($this->cookTime) { |
| 310 | - $recipeJSONLD['cookTime'] = 'PT' . $this->cookTime . 'M'; |
|
| 310 | + $recipeJSONLD['cookTime'] = 'PT'.$this->cookTime.'M'; |
|
| 311 | 311 | } |
| 312 | 312 | if ($this->totalTime) { |
| 313 | - $recipeJSONLD['totalTime'] = 'PT' . $this->totalTime . 'M'; |
|
| 313 | + $recipeJSONLD['totalTime'] = 'PT'.$this->totalTime.'M'; |
|
| 314 | 314 | } |
| 315 | 315 | |
| 316 | 316 | return $this->renderJsonLd($recipeJSONLD, $raw); |
@@ -449,11 +449,11 @@ discard block |
||
| 449 | 449 | $units = rtrim($units); |
| 450 | 450 | $units = rtrim($units, 's'); |
| 451 | 451 | } |
| 452 | - $ingredient .= ' ' . $units; |
|
| 452 | + $ingredient .= ' '.$units; |
|
| 453 | 453 | } |
| 454 | 454 | } |
| 455 | 455 | if ($row['ingredient']) { |
| 456 | - $ingredient .= ' ' . $row['ingredient']; |
|
| 456 | + $ingredient .= ' '.$row['ingredient']; |
|
| 457 | 457 | } |
| 458 | 458 | if ($raw) { |
| 459 | 459 | $ingredient = Template::raw($ingredient); |
@@ -591,8 +591,8 @@ discard block |
||
| 591 | 591 | */ |
| 592 | 592 | public function getServes(): string |
| 593 | 593 | { |
| 594 | - if(!empty($this->servesUnit)) { |
|
| 595 | - return $this->serves . ' ' . $this->servesUnit; |
|
| 594 | + if (!empty($this->servesUnit)) { |
|
| 595 | + return $this->serves.' '.$this->servesUnit; |
|
| 596 | 596 | } else { |
| 597 | 597 | return $this->serves; |
| 598 | 598 | } |