Passed
Push — develop ( bc902d...8a879b )
by Andrew
97:39 queued 85:07
created
src/models/MetaSiteVars.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,10 +207,10 @@
 block discarded – undo
207 207
         }
208 208
         // Make sure these are strings
209 209
         if (!empty($this->facebookProfileId)) {
210
-            $this->facebookProfileId = (string)$this->facebookProfileId;
210
+            $this->facebookProfileId = (string) $this->facebookProfileId;
211 211
         }
212 212
         if (!empty($this->facebookAppId)) {
213
-            $this->facebookAppId = (string)$this->facebookAppId;
213
+            $this->facebookAppId = (string) $this->facebookAppId;
214 214
         }
215 215
         // Identity
216 216
         if ($this->identity !== null && \is_array($this->identity)) {
Please login to merge, or discard this patch.
src/models/MetaTag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         $className = MetaTag::class;
57 57
         if ($tagType) {
58 58
             // Potentially load a sub-type of MetaTag
59
-            $tagClassName = 'nystudio107\\seomatic\\models\\metatag\\' . ucfirst($tagType) . 'Tag';
59
+            $tagClassName = 'nystudio107\\seomatic\\models\\metatag\\'.ucfirst($tagType).'Tag';
60 60
             /** @var $model MetaTag */
61 61
             if (class_exists($tagClassName)) {
62 62
                 $className = $tagClassName;
Please login to merge, or discard this patch.
src/models/MetaSitemapVars.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,10 +94,10 @@
 block discarded – undo
94 94
     public function init()
95 95
     {
96 96
         // Enforce types
97
-        $this->sitemapUrls = (bool)$this->sitemapUrls;
98
-        $this->sitemapAssets = (bool)$this->sitemapAssets;
99
-        $this->sitemapFiles = (bool)$this->sitemapFiles;
100
-        $this->sitemapAltLinks = (bool)$this->sitemapAltLinks;
97
+        $this->sitemapUrls = (bool) $this->sitemapUrls;
98
+        $this->sitemapAssets = (bool) $this->sitemapAssets;
99
+        $this->sitemapFiles = (bool) $this->sitemapFiles;
100
+        $this->sitemapAltLinks = (bool) $this->sitemapAltLinks;
101 101
     }
102 102
 
103 103
     /**
Please login to merge, or discard this patch.
src/helpers/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
      */
107 107
     private static function getConfigFilePath(string $alias, string $filePath): string
108 108
     {
109
-        $path = DIRECTORY_SEPARATOR . ltrim($filePath, DIRECTORY_SEPARATOR);
109
+        $path = DIRECTORY_SEPARATOR.ltrim($filePath, DIRECTORY_SEPARATOR);
110 110
         $path = Craft::getAlias($alias)
111 111
             . DIRECTORY_SEPARATOR
112 112
             . self::LOCAL_CONFIG_DIR
Please login to merge, or discard this patch.
src/helpers/Schema.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -196,11 +196,11 @@
 block discarded – undo
196 196
         foreach ($typesArray as $key => $value) {
197 197
             $indent = html_entity_decode(str_repeat(' ', $indentLevel));
198 198
             if (\is_array($value)) {
199
-                $result[$key] = $indent . $key;
199
+                $result[$key] = $indent.$key;
200 200
                 $value = self::flattenSchemaArray($value, $indentLevel + self::MENU_INDENT_STEP);
201 201
                 $result = array_merge($result, $value);
202 202
             } else {
203
-                $result[$key] = $indent . $value;
203
+                $result[$key] = $indent.$value;
204 204
             }
205 205
         }
206 206
 
Please login to merge, or discard this patch.
src/helpers/Field.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
                 // Prefix the keys with the global set name
206 206
                 $prefix = $global->handle;
207 207
                 $fields = array_combine(
208
-                    array_map(function ($key) use ($prefix) {
208
+                    array_map(function($key) use ($prefix) {
209 209
                         return $prefix.'.'.$key;
210 210
                     }, array_keys($fields)),
211 211
                     $fields
Please login to merge, or discard this patch.
src/models/jsonld/PawnShop.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@
 block discarded – undo
226 226
     {
227 227
         $rules = parent::rules();
228 228
         $rules = array_merge($rules, [
229
-            [['currenciesAccepted','openingHours','paymentAccepted','priceRange'], 'validateJsonSchema'],
229
+            [['currenciesAccepted', 'openingHours', 'paymentAccepted', 'priceRange'], 'validateJsonSchema'],
230 230
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
231 231
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
232 232
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/PublicSwimmingPool.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@
 block discarded – undo
226 226
     {
227 227
         $rules = parent::rules();
228 228
         $rules = array_merge($rules, [
229
-            [['currenciesAccepted','openingHours','paymentAccepted','priceRange'], 'validateJsonSchema'],
229
+            [['currenciesAccepted', 'openingHours', 'paymentAccepted', 'priceRange'], 'validateJsonSchema'],
230 230
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
231 231
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
232 232
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/Specialty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
      * @var array
122 122
      */
123 123
     static protected $_schemaPropertyExpectedTypes = [
124
-        'supersededBy' => ['Class','Enumeration','Property']
124
+        'supersededBy' => ['Class', 'Enumeration', 'Property']
125 125
     ];
126 126
 
127 127
     /**
Please login to merge, or discard this patch.