Passed
Push — v3 ( 35bf58...2c6c1d )
by Andrew
34:25 queued 22:13
created
src/seomatic-config/globalmeta/TagContainer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         'name'         => 'General',
25 25
         'description'  => 'General Meta Tags',
26 26
         'handle'       => TagService::GENERAL_HANDLE,
27
-        'class'        => (string)MetaTagContainer::class,
27
+        'class'        => (string) MetaTagContainer::class,
28 28
         'include'      => true,
29 29
         'dependencies' => [
30 30
         ],
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         'name'         => 'Facebook',
81 81
         'description'  => 'Facebook OpenGraph Meta Tags',
82 82
         'handle'       => TagService::FACEBOOK_HANDLE,
83
-        'class'        => (string)MetaTagContainer::class,
83
+        'class'        => (string) MetaTagContainer::class,
84 84
         'include'      => true,
85 85
         'dependencies' => [
86 86
         ],
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         'description'  => 'Twitter Card Meta Tags',
196 196
         'handle'       => TagService::TWITTER_HANDLE,
197 197
         'include'      => true,
198
-        'class'        => (string)MetaTagContainer::class,
198
+        'class'        => (string) MetaTagContainer::class,
199 199
         'dependencies' => [
200 200
             Dependency::SITE_DEPENDENCY => ['twitterHandle'],
201 201
         ],
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
         'name'         => 'Miscellaneous',
279 279
         'description'  => 'Miscellaneous Meta Tags',
280 280
         'handle'       => TagService::MISC_HANDLE,
281
-        'class'        => (string)MetaTagContainer::class,
281
+        'class'        => (string) MetaTagContainer::class,
282 282
         'include'      => true,
283 283
         'dependencies' => [
284 284
         ],
Please login to merge, or discard this patch.
src/models/metatag/DescriptionTag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         if ($shouldRender) {
69 69
             if (!empty($data['content'])) {
70 70
                 // Truncate the Description tag content
71
-                $data['content'] = (string)Stringy::create($data['content'])->safeTruncate(
71
+                $data['content'] = (string) Stringy::create($data['content'])->safeTruncate(
72 72
                     Seomatic::$settings->maxDescriptionLength,
73 73
                     '…'
74 74
                 );
Please login to merge, or discard this patch.
src/models/metatag/TwitterDescriptionTag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         if ($shouldRender) {
69 69
             if (!empty($data['content'])) {
70 70
                 // Truncate the Description tag content
71
-                $data['content'] = (string)Stringy::create($data['content'])->safeTruncate(
71
+                $data['content'] = (string) Stringy::create($data['content'])->safeTruncate(
72 72
                     200,
73 73
                     '…'
74 74
                 );
Please login to merge, or discard this patch.
src/models/metatag/OgTitleTag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
             }
129 129
             $lengthAdjust = mb_strlen($prefix.$suffix);
130 130
             // Truncate the og:title tag content
131
-            $data['content'] = (string)Stringy::create($data['content'])->safeTruncate(
131
+            $data['content'] = (string) Stringy::create($data['content'])->safeTruncate(
132 132
                 Seomatic::$settings->maxTitleLength - $lengthAdjust,
133 133
                 '…'
134 134
             );
Please login to merge, or discard this patch.
src/models/metatag/OgDescriptionTag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         if ($shouldRender) {
69 69
             if (!empty($data['content'])) {
70 70
                 // Truncate the Description tag content
71
-                $data['content'] = (string)Stringy::create($data['content'])->safeTruncate(
71
+                $data['content'] = (string) Stringy::create($data['content'])->safeTruncate(
72 72
                     300,
73 73
                     '…'
74 74
                 );
Please login to merge, or discard this patch.
src/models/metatag/TwitterTitleTag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
             }
131 131
             $lengthAdjust = mb_strlen($prefix.$suffix);
132 132
             // Truncate the twitter:title tag content
133
-            $data['content'] = (string)Stringy::create($data['content'])->safeTruncate(
133
+            $data['content'] = (string) Stringy::create($data['content'])->safeTruncate(
134 134
                 Seomatic::$settings->maxTitleLength - $lengthAdjust,
135 135
                 '…'
136 136
             );
Please login to merge, or discard this patch.
src/models/MetaLink.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         $className = MetaLink::class;
56 56
         if ($tagType) {
57 57
             // Potentially load a sub-type of MetaTag
58
-            $tagClassName = 'nystudio107\\seomatic\\models\\metalink\\' . ucfirst($tagType) . 'Link';
58
+            $tagClassName = 'nystudio107\\seomatic\\models\\metalink\\'.ucfirst($tagType).'Link';
59 59
             /** @var $model MetaLink */
60 60
             if (class_exists($tagClassName)) {
61 61
                 $className = $tagClassName;
Please login to merge, or discard this patch.
src/models/jsonld/BowlingAlley.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/FollowAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
      * @var array
130 130
      */
131 131
     static protected $_schemaPropertyExpectedTypes = [
132
-        'followee' => ['Organization','Person']
132
+        'followee' => ['Organization', 'Person']
133 133
     ];
134 134
 
135 135
     /**
Please login to merge, or discard this patch.