Passed
Push — master ( 939396...bdeb2c )
by Vitalii
01:16 queued 23s
created
html/inc/text_transform.inc 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 // for example inside <pre> containers
285 285
 // The original \n was retained after the br when it was added
286 286
 //
287
-function remove_br($text){
287
+function remove_br($text) {
288 288
     return str_replace("<br />", "", $text);
289 289
 }
290 290
 
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
     $i=0;
296 296
     $linkpos=true;
297 297
     $out = "";
298
-    while (true){
298
+    while (true) {
299 299
         //Find a link
300 300
         //
301 301
         $linkpos=strpos($text, "<a ", $i);
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
 
313 313
 // Converts image tags to links to the images.
314 314
 
315
-function image_as_link($text){
315
+function image_as_link($text) {
316 316
     /* This function depends on sanitized HTML */
317 317
     // Build some regex (should be a *lot* faster)
318 318
     $pattern = '@<img([\S\s]+?)src=([^>]+?)>@si';
Please login to merge, or discard this patch.