Passed
Push — master ( a9546d...6aabd8 )
by Paul
05:58
created
plugin/Actions.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,8 @@
 block discarded – undo
40 40
     protected $trustalyze;
41 41
     protected $welcome;
42 42
 
43
-    public function __construct(Application $app ) {
43
+    public function __construct(Application $app )
44
+    {
44 45
         $this->app = $app;
45 46
         $this->admin = $app->make(AdminController::class);
46 47
         $this->blocks = $app->make(BlocksController::class);
Please login to merge, or discard this patch.
plugin/Controllers/TrustalyzeController.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,8 @@  discard block
 block discarded – undo
51 51
         }
52 52
         if ('F' === $trustalyzeProductType && 'yes' === glsr_get_option('general.trustalyze')) {
53 53
             $button = $this->buildUpgradeButton();
54
-        } else {
54
+        }
55
+        else {
55 56
             $button = $this->buildCreateButton();
56 57
         }
57 58
         $context['field'].= $button;
@@ -229,7 +230,8 @@  discard block
 block discarded – undo
229 230
         );
230 231
         if ($trustalyze->success) {
231 232
             update_option($this->trustalyzeKey, Arr::get($trustalyze->response, 'producttype'));
232
-        } else {
233
+        }
234
+        else {
233 235
             delete_option($this->trustalyzeKey);
234 236
             $settings = Arr::set($settings, $this->enabledKey, 'no');
235 237
             glsr(Notice::class)->addError(sprintf(
Please login to merge, or discard this patch.