Passed
Push — hotfix/fix-counts ( 4b43d1...cc9e05 )
by Paul
03:52
created
plugin/Controllers/Controller.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,8 @@
 block discarded – undo
38 38
         }
39 39
         try {
40 40
             return glsr($handlerClass)->handle($command);
41
-        } catch (Exception $e) {
41
+        }
42
+        catch (Exception $e) {
42 43
             status_header(400);
43 44
             glsr(Notice::class)->addError(new WP_Error('site_reviews_error', $e->getMessage()));
44 45
             glsr_log()->error($e->getMessage());
Please login to merge, or discard this patch.
plugin/Controllers/SettingsController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,8 @@
 block discarded – undo
102 102
         if (!glsr(Polylang::class)->isActive()) {
103 103
             glsr(Notice::class)->addError(__('Please install/activate the Polylang plugin to enable integration.', 'site-reviews'));
104 104
             return false;
105
-        } elseif (!glsr(Polylang::class)->isSupported()) {
105
+        }
106
+        elseif (!glsr(Polylang::class)->isSupported()) {
106 107
             glsr(Notice::class)->addError(__('Please update the Polylang plugin to v2.3.0 or greater to enable integration.', 'site-reviews'));
107 108
             return false;
108 109
         }
Please login to merge, or discard this patch.
plugin/Actions.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,8 @@
 block discarded – undo
33 33
     protected $settings;
34 34
     protected $taxonomy;
35 35
 
36
-    public function __construct(Application $app ) {
36
+    public function __construct(Application $app )
37
+    {
37 38
         $this->app = $app;
38 39
         $this->admin = $app->make(AdminController::class);
39 40
         $this->blocks = $app->make(BlocksController::class);
Please login to merge, or discard this patch.
plugin/Database.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,8 @@
 block discarded – undo
116 116
         ];
117 117
         if (is_numeric($searchTerm)) {
118 118
             $args['post__in'] = [$searchTerm];
119
-        } else {
119
+        }
120
+        else {
120 121
             $args['orderby'] = 'relevance';
121 122
             $args['posts_per_page'] = 10;
122 123
             $args['s'] = $searchTerm;
Please login to merge, or discard this patch.