euromark 11 years ago
parent
commit
de95b22b0c
2 changed files with 3 additions and 2 deletions
  1. 1 1
      src/Utility/Text.php
  2. 2 1
      tests/TestCase/Utility/TextTest.php

+ 1 - 1
src/Utility/Text.php

@@ -323,7 +323,7 @@ class Text
         return implode($break, $paragraphs);
     }
 
-   /**
+    /**
      * Unicode aware version of wordwrap as helper method.
      *
      * @param string $text The text to format.

+ 2 - 1
tests/TestCase/Utility/TextTest.php

@@ -394,7 +394,8 @@ TEXT;
      *
      * @return void
      */
-    public function testWordWrapNewlineAware() {
+    public function testWordWrapNewlineAware()
+    {
         $text = 'This is a line that is almost the 55 chars long.
 This is a new sentence which is manually newlined, but is so long it needs two lines.';
         $result = Text::wordWrap($text, 55);