Test Failed
Pull Request — develop (#149)
by
unknown
05:03
created
src/Util/StringHelper.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $wordArray = explode(" ", $text);
62 62
 
63
-        array_walk($wordArray, function (&$word) {
63
+        array_walk($wordArray, function(&$word) {
64 64
             $word = ucfirst($word);
65 65
         });
66 66
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             return "";
78 78
         }
79 79
         if (preg_match('/(.+[^\<\>][\.:\/;\?\!]\s?)([a-z])(.+)/', $titleString, $match)) {
80
-            $titleString = $match[1].StringHelper::mb_ucfirst($match[2]).$match[3];
80
+            $titleString = $match[1] . StringHelper::mb_ucfirst($match[2]) . $match[3];
81 81
         }
82 82
         $pattern = "/(\s|\/)/";
83 83
         if (!preg_match($pattern, $titleString, $matches)) {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
         /** @noinspection PhpInternalEntityUsedInspection */
132 132
         $encoding = mb_detect_encoding($firstChar);
133
-        return $encoding ? mb_strtoupper($firstChar, $encoding).$then : $firstChar.$then;
133
+        return $encoding ? mb_strtoupper($firstChar, $encoding) . $then : $firstChar . $then;
134 134
     }
135 135
     // phpcs:disable
136 136
     public static function mb_strrev($string)
@@ -179,13 +179,13 @@  discard block
 block discarded – undo
179 179
             foreach ($spaceExploded as $givenPart) {
180 180
                 $firstLetter = mb_substr($givenPart, 0, 1, "UTF-8");
181 181
                 if (StringHelper::isLatinString($firstLetter)) {
182
-                    $res .= ctype_upper($firstLetter) ? $firstLetter.$initializeSign : " ".$givenPart." ";
182
+                    $res .= ctype_upper($firstLetter) ? $firstLetter . $initializeSign : " " . $givenPart . " ";
183 183
                 } else {
184
-                    $res .= $firstLetter.$initializeSign;
184
+                    $res .= $firstLetter . $initializeSign;
185 185
                 }
186 186
             }
187 187
             if ($i < count($exploded) - 1 && $initializeWithHyphen) {
188
-                $res = rtrim($res)."-";
188
+                $res = rtrim($res) . "-";
189 189
             }
190 190
             ++$i;
191 191
         }
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         $innerCloseQuote
249 249
     ) {
250 250
         if (preg_match("/(.*)$outerOpenQuote(.+)$outerCloseQuote(.*)/u", $text, $match)) {
251
-            return $match[1].$innerOpenQuote.$match[2].$innerCloseQuote.$match[3];
251
+            return $match[1] . $innerOpenQuote . $match[2] . $innerCloseQuote . $match[3];
252 252
         }
253 253
         return $text;
254 254
     }
Please login to merge, or discard this patch.