Passed
Push — v1 ( 873cf4...a87ffd )
by Andrew
04:46 queued 14s
created
src/variables/TypogrifyVariable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@
 block discarded – undo
301 301
         if (empty($text)) {
302 302
             $text = '';
303 303
         }
304
-        $text = (string)$text;
304
+        $text = (string) $text;
305 305
 
306 306
         $settings = Typogrify::$plugin->getSettings();
307 307
 
Please login to merge, or discard this patch.
src/services/TypogrifyService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 
146 146
         if (!empty($string)) {
147 147
             $string = strip_tags($string);
148
-            $result = (string)Stringy::create($string)->truncate($length, $substring);
148
+            $result = (string) Stringy::create($string)->truncate($length, $substring);
149 149
         }
150 150
 
151 151
         return $result;
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 
170 170
         if (!empty($string)) {
171 171
             $string = strip_tags($string);
172
-            $result = (string)Stringy::create($string)->safeTruncate($length, $substring);
172
+            $result = (string) Stringy::create($string)->safeTruncate($length, $substring);
173 173
         }
174 174
 
175 175
         return $result;
@@ -374,6 +374,6 @@  discard block
 block discarded – undo
374 374
         $words = preg_split("/[\s]+/u", strip_tags($string));
375 375
         $result = implode(' ', array_slice($words, 0, $length));
376 376
 
377
-        return count($words) > $length ? $result . $substring : $result;
377
+        return count($words) > $length ? $result.$substring : $result;
378 378
     }
379 379
 }
Please login to merge, or discard this patch.
ecs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 
6 6
 return static function(ECSConfig $ecsConfig): void {
7 7
     $ecsConfig->paths([
8
-        __DIR__ . '/src',
8
+        __DIR__.'/src',
9 9
         __FILE__,
10 10
     ]);
11 11
     $ecsConfig->parallel();
Please login to merge, or discard this patch.