antograssiot 10 years ago
parent
commit
45fd68337e

+ 2 - 1
src/Shell/Helper/TableHelper.php

@@ -72,6 +72,7 @@ class TableHelper extends Helper
      *
      * @param array $row The row to output.
      * @param array $widths The widths of each column to output.
+     * @param array $options Options to be passed.
      * @return void
      */
     protected function _render($row, $widths, $options = [])
@@ -125,6 +126,6 @@ class TableHelper extends Helper
      */
     protected function _addStyle($text, $style)
     {
-        return '<' . $style .'>' . $text . '</' . $style .'>';
+        return '<' . $style . '>' . $text . '</' . $style . '>';
     }
 }

+ 6 - 3
tests/TestCase/Shell/Helper/TableHelperTest.php

@@ -141,7 +141,8 @@ class TableHelperTest extends TestCase
      *
      * @return void
      */
-    public function testOutputWithoutHeaders() {
+    public function testOutputWithoutHeaders()
+    {
         $data = [
             ['short', 'Longish thing', 'short'],
             ['Longer thing', 'short', 'Longest Value'],
@@ -162,7 +163,8 @@ class TableHelperTest extends TestCase
      *
      * @return void
      */
-    public function testOutputWithRowSeparator() {
+    public function testOutputWithRowSeparator()
+    {
         $data = [
             ['Header 1', 'Header', 'Long Header'],
             ['short', 'Longish thing', 'short'],
@@ -187,7 +189,8 @@ class TableHelperTest extends TestCase
      *
      * @return void
      */
-    public function testOutputWithRowSeparatorAndHeaders() {
+    public function testOutputWithRowSeparatorAndHeaders()
+    {
         $data = [
             ['Header 1', 'Header', 'Long Header'],
             ['short', 'Longish thing', 'short'],