Browse Source

Fix PHPCS.

Mark Story 10 years ago
parent
commit
692a36e571
1 changed files with 4 additions and 4 deletions
  1. 4 4
      tests/TestCase/Utility/TextTest.php

+ 4 - 4
tests/TestCase/Utility/TextTest.php

@@ -588,19 +588,19 @@ TEXT;
     {
         $text = '<a href="http://example.org">hello</a> world';
         $expected = '<a href="http://example.org">hell..</a>';
-        $result = Text::truncate($text, 6, array(
+        $result = Text::truncate($text, 6, [
             'ellipsis' => '..',
             'exact' => true,
             'html' => true
-        ));
+        ]);
         $this->assertEquals($expected, $result);
 
         $expected = '<a href="http://example.org">hell..</a>';
-        $result = Text::truncate($text, 6, array(
+        $result = Text::truncate($text, 6, [
             'ellipsis' => '..',
             'exact' => false,
             'html' => true
-        ));
+        ]);
         $this->assertEquals($expected, $result);
     }