Passed
Push — develop ( d6a48f...1eaf0a )
by Andrew
06:52
created
src/controllers/ContentSeoController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             ->where(['!=', 'sourceBundleType', Seomatic::$plugin->metaBundles::GLOBAL_META_BUNDLE])
88 88
             ;
89 89
         $currentSiteHandle = '';
90
-        if ((int)$siteId !== 0) {
90
+        if ((int) $siteId !== 0) {
91 91
             $query->andWhere(['sourceSiteId' => $siteId]);
92 92
             $site = Craft::$app->getSites()->getSiteById($siteId);
93 93
             if ($site !== null) {
@@ -134,11 +134,11 @@  discard block
 block discarded – undo
134 134
                     $numGrades = \count(SettingsController::SETUP_GRADES);
135 135
                     $numFields = \count(SettingsController::SEO_SETUP_FIELDS);
136 136
                     foreach (SettingsController::SEO_SETUP_FIELDS as $setupField => $setupLabel) {
137
-                        $stat += (int)!empty($metaBundle->metaGlobalVars[$setupField]);
137
+                        $stat += (int) !empty($metaBundle->metaGlobalVars[$setupField]);
138 138
                         $value = $variables['contentSetupChecklist'][$setupField]['value'] ?? 0;
139 139
                         $variables['contentSetupChecklist'][$setupField] = [
140 140
                             'label' => $setupLabel,
141
-                            'value' => $value + (int)!empty($metaBundle->metaGlobalVars[$setupField]),
141
+                            'value' => $value + (int) !empty($metaBundle->metaGlobalVars[$setupField]),
142 142
                         ];
143 143
                     }
144 144
                     $stat = round($numGrades - (($stat * $numGrades) / $numFields));
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 ->orderBy("{$sortField} {$sortType}")
158 158
                 ->where(['!=', 'sourceBundleType', Seomatic::$plugin->metaBundles::GLOBAL_META_BUNDLE])
159 159
             ;
160
-            if ((int)$siteId !== 0) {
160
+            if ((int) $siteId !== 0) {
161 161
                 $query->andWhere(['sourceSiteId' => $siteId]);
162 162
             }
163 163
             if ($filter !== '') {
Please login to merge, or discard this patch.