Passed
Push — v1 ( ff21ed...4ea8e1 )
by Andrew
10:09 queued 04:13
created
src/Recipe.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         Event::on(
84 84
             Fields::class,
85 85
             Fields::EVENT_REGISTER_FIELD_TYPES,
86
-            function (RegisterComponentTypesEvent $event) {
86
+            function(RegisterComponentTypesEvent $event) {
87 87
                 $event->types[] = RecipeField::class;
88 88
             }
89 89
         );
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         Event::on(
93 93
             Plugins::class,
94 94
             Plugins::EVENT_AFTER_INSTALL_PLUGIN,
95
-            function (PluginEvent $event) {
95
+            function(PluginEvent $event) {
96 96
                 if (!Craft::$app->getRequest()->getIsConsoleRequest()
97 97
                     && ($event->plugin === $this)) {
98 98
                     Craft::$app->getResponse()->redirect(UrlHelper::cpUrl('recipe/welcome'))->send();
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $feedMeInstalled = Craft::$app->getPlugins()->isPluginInstalled('feed-me') && Craft::$app->getPlugins()->isPluginEnabled('feed-me');
104 104
 
105 105
         if ($feedMeInstalled) {
106
-            Event::on(FeedMeFields::class, FeedMeFields::EVENT_REGISTER_FEED_ME_FIELDS, function (RegisterFeedMeFieldsEvent $e) {
106
+            Event::on(FeedMeFields::class, FeedMeFields::EVENT_REGISTER_FEED_ME_FIELDS, function(RegisterFeedMeFieldsEvent $e) {
107 107
                 $e->fields[] = RecipeFeedMeField::class;
108 108
             });
109 109
         }
Please login to merge, or discard this patch.
src/services/ServicesTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         // ref: https://github.com/craftcms/cms/issues/1989
36 36
         $config = ArrayHelper::merge([
37 37
             'components' => [
38
-                'nutritionApi' => NutritionApi::class,]
38
+                'nutritionApi' => NutritionApi::class, ]
39 39
         ], $config);
40 40
 
41 41
         parent::__construct($id, $parent, $config);
Please login to merge, or discard this patch.