Passed
Push — develop ( ba8d86...8a28b9 )
by Andrew
10:18 queued 05:46
created
src/Recipe.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         Event::on(
55 55
             Fields::class,
56 56
             Fields::EVENT_REGISTER_FIELD_TYPES,
57
-            function (RegisterComponentTypesEvent $event) {
57
+            function(RegisterComponentTypesEvent $event) {
58 58
                 $event->types[] = RecipeField::class;
59 59
             }
60 60
         );
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         Event::on(
64 64
             Plugins::class,
65 65
             Plugins::EVENT_AFTER_INSTALL_PLUGIN,
66
-            function (PluginEvent $event) {
66
+            function(PluginEvent $event) {
67 67
                 if (!Craft::$app->getRequest()->getIsConsoleRequest()
68 68
                 && ($event->plugin === $this)) {
69 69
                     Craft::$app->getResponse()->redirect(UrlHelper::cpUrl('recipe/welcome'))->send();
Please login to merge, or discard this patch.
src/helpers/PluginTemplate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             }
69 69
             // Render the template with our vars passed in
70 70
             try {
71
-                $htmlText = Craft::$app->view->renderTemplate('recipe/' .$templatePath, $params);
71
+                $htmlText = Craft::$app->view->renderTemplate('recipe/'.$templatePath, $params);
72 72
                 $templateRendered = true;
73 73
             } catch (\Exception $e) {
74 74
                 $templateRendered = false;
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             }
84 84
             // Render the template with our vars passed in
85 85
             try {
86
-                $htmlText = Craft::$app->view->renderTemplate('recipe/' . $templatePath, $params);
86
+                $htmlText = Craft::$app->view->renderTemplate('recipe/'.$templatePath, $params);
87 87
                 $templateRendered = true;
88 88
             } catch (\Exception $e) {
89 89
                 $templateRendered = false;
Please login to merge, or discard this patch.
src/models/Recipe.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
                 $review = [
286 286
                     'type' => 'Review',
287 287
                     'author' => $rating['author'],
288
-                    'name' => $this->name . ' ' . Craft::t('recipe', 'Review'),
288
+                    'name' => $this->name.' '.Craft::t('recipe', 'Review'),
289 289
                     'description' => $rating['review'],
290 290
                     'reviewRating' => [
291 291
                         'type' => 'Rating',
@@ -301,13 +301,13 @@  discard block
 block discarded – undo
301 301
         }
302 302
 
303 303
         if ($this->prepTime) {
304
-            $recipeJSONLD['prepTime'] = 'PT' . $this->prepTime . 'M';
304
+            $recipeJSONLD['prepTime'] = 'PT'.$this->prepTime.'M';
305 305
         }
306 306
         if ($this->cookTime) {
307
-            $recipeJSONLD['cookTime'] = 'PT' . $this->cookTime . 'M';
307
+            $recipeJSONLD['cookTime'] = 'PT'.$this->cookTime.'M';
308 308
         }
309 309
         if ($this->totalTime) {
310
-            $recipeJSONLD['totalTime'] = 'PT' . $this->totalTime . 'M';
310
+            $recipeJSONLD['totalTime'] = 'PT'.$this->totalTime.'M';
311 311
         }
312 312
 
313 313
         return $recipeJSONLD;
@@ -476,11 +476,11 @@  discard block
 block discarded – undo
476 476
                             $units = rtrim($units);
477 477
                             $units = rtrim($units, 's');
478 478
                         }
479
-                        $ingredient .= ' ' . $units;
479
+                        $ingredient .= ' '.$units;
480 480
                     }
481 481
                 }
482 482
                 if ($row['ingredient']) {
483
-                    $ingredient .= ' ' . $row['ingredient'];
483
+                    $ingredient .= ' '.$row['ingredient'];
484 484
                 }
485 485
                 if ($raw) {
486 486
                     $ingredient = Template::raw($ingredient);
Please login to merge, or discard this patch.