Passed
Pull Request — develop (#37)
by Andrew
05:00
created
src/models/Recipe.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
                 $review = [
323 323
                     'type' => 'Review',
324 324
                     'author' => $rating['author'],
325
-                    'name' => $this->name . ' ' . Craft::t('recipe', 'Review'),
325
+                    'name' => $this->name.' '.Craft::t('recipe', 'Review'),
326 326
                     'description' => $rating['review'],
327 327
                     'reviewRating' => [
328 328
                         'type' => 'Rating',
@@ -338,13 +338,13 @@  discard block
 block discarded – undo
338 338
         }
339 339
 
340 340
         if ($this->prepTime) {
341
-            $recipeJSONLD['prepTime'] = 'PT' . $this->prepTime . 'M';
341
+            $recipeJSONLD['prepTime'] = 'PT'.$this->prepTime.'M';
342 342
         }
343 343
         if ($this->cookTime) {
344
-            $recipeJSONLD['cookTime'] = 'PT' . $this->cookTime . 'M';
344
+            $recipeJSONLD['cookTime'] = 'PT'.$this->cookTime.'M';
345 345
         }
346 346
         if ($this->totalTime) {
347
-            $recipeJSONLD['totalTime'] = 'PT' . $this->totalTime . 'M';
347
+            $recipeJSONLD['totalTime'] = 'PT'.$this->totalTime.'M';
348 348
         }
349 349
 
350 350
         return $recipeJSONLD;
@@ -538,11 +538,11 @@  discard block
 block discarded – undo
538 538
                             $units = rtrim($units);
539 539
                             $units = rtrim($units, 's');
540 540
                         }
541
-                        $ingredient .= ' ' . $units;
541
+                        $ingredient .= ' '.$units;
542 542
                     }
543 543
                 }
544 544
                 if ($row['ingredient']) {
545
-                    $ingredient .= ' ' . $row['ingredient'];
545
+                    $ingredient .= ' '.$row['ingredient'];
546 546
                 }
547 547
                 if ($raw) {
548 548
                     $ingredient = Template::raw($ingredient);
@@ -703,8 +703,8 @@  discard block
 block discarded – undo
703 703
      */
704 704
     public function getServes(): string
705 705
     {
706
-        if(!empty($this->servesUnit)) {
707
-            return $this->serves . ' ' . $this->servesUnit;
706
+        if (!empty($this->servesUnit)) {
707
+            return $this->serves.' '.$this->servesUnit;
708 708
         } else {
709 709
             return $this->serves;
710 710
         }
Please login to merge, or discard this patch.