Passed
Push — develop ( 8947c9...ff37e3 )
by Andrew
18:29 queued 09:12
created
src/helpers/Schema.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             // Go from most specific type to least specific type
83 83
             foreach (self::SCHEMA_TYPES as $schemaType) {
84 84
                 if (!empty($settings[$schemaType]) && ($settings[$schemaType] !== 'none')) {
85
-                    $result = $settings[$schemaType] . self::SCHEMA_PATH_DELIMITER . $result;
85
+                    $result = $settings[$schemaType].self::SCHEMA_PATH_DELIMITER.$result;
86 86
                 }
87 87
             }
88 88
         }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     {
129 129
         $result = [];
130 130
         while ($schemaType) {
131
-            $className = 'nystudio107\\seomatic\\models\\jsonld\\' . $schemaType;
131
+            $className = 'nystudio107\\seomatic\\models\\jsonld\\'.$schemaType;
132 132
             if (class_exists($className)) {
133 133
                 try {
134 134
                     $classRef = new \ReflectionClass($className);
@@ -291,11 +291,11 @@  discard block
 block discarded – undo
291 291
         foreach ($typesArray as $key => $value) {
292 292
             $indent = html_entity_decode(str_repeat(' ', $indentLevel));
293 293
             if (\is_array($value)) {
294
-                $result[$key] = $indent . $key;
294
+                $result[$key] = $indent.$key;
295 295
                 $value = self::flattenSchemaArray($value, $indentLevel + self::MENU_INDENT_STEP);
296 296
                 $result = array_merge($result, $value);
297 297
             } else {
298
-                $result[$key] = $indent . $value;
298
+                $result[$key] = $indent.$value;
299 299
             }
300 300
         }
301 301
 
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
             $children = [];
390 390
             $name = $typesArray['name'];
391 391
             // Construct a path-based $id, excluding the top-level `Thing` schema
392
-            $id = $name === 'Thing' ? '' : $path . self::SCHEMA_PATH_DELIMITER . $name;
392
+            $id = $name === 'Thing' ? '' : $path.self::SCHEMA_PATH_DELIMITER.$name;
393 393
             $id = ltrim($id, self::SCHEMA_PATH_DELIMITER);
394 394
             // Make sure we have at most 3 specifiers in the schema path
395 395
             $parts = explode(self::SCHEMA_PATH_DELIMITER, $id);
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
                 $schemaPath = explode(self::SCHEMA_PATH_DELIMITER, $id);
427 427
                 // Use only the specific (last) type for now, rather than the complete path of types
428 428
                 $schemaPath = [end($schemaPath)];
429
-                if ((bool)array_intersect($schemaPath, array_keys(self::$googleRichSnippetTypes))) {
429
+                if ((bool) array_intersect($schemaPath, array_keys(self::$googleRichSnippetTypes))) {
430 430
                     $name .= ' (rich snippet)';
431 431
                 }
432 432
             }
Please login to merge, or discard this patch.