Passed
Push — develop ( 0ea70a...9f33bf )
by Andrew
17:08 queued 08:58
created
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.
src/models/jsonld/Winery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -147,8 +147,8 @@  discard block
 block discarded – undo
147 147
      * @var array
148 148
      */
149 149
     static protected $_schemaPropertyExpectedTypes = [
150
-        'acceptsReservations' => ['Boolean','Text','URL'],
151
-        'hasMenu' => ['Menu','Text','URL'],
150
+        'acceptsReservations' => ['Boolean', 'Text', 'URL'],
151
+        'hasMenu' => ['Menu', 'Text', 'URL'],
152 152
         'servesCuisine' => ['Text'],
153 153
         'starRating' => ['Rating']
154 154
     ];
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     {
224 224
         $rules = parent::rules();
225 225
         $rules = array_merge($rules, [
226
-            [['acceptsReservations','hasMenu','servesCuisine','starRating'], 'validateJsonSchema'],
226
+            [['acceptsReservations', 'hasMenu', 'servesCuisine', 'starRating'], 'validateJsonSchema'],
227 227
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
228 228
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
229 229
         ]);
Please login to merge, or discard this patch.