Skip to content

Commit

Permalink
PHCPS
Browse files Browse the repository at this point in the history
  • Loading branch information
antograssiot committed May 31, 2015
1 parent 105163c commit 45fd683
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/Shell/Helper/TableHelper.php
Expand Up @@ -72,6 +72,7 @@ protected function _rowSeparator($widths)
*
* @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 = [])
Expand Down Expand Up @@ -125,6 +126,6 @@ public function output($rows)
*/
protected function _addStyle($text, $style)
{
return '<' . $style .'>' . $text . '</' . $style .'>';
return '<' . $style . '>' . $text . '</' . $style . '>';
}
}
9 changes: 6 additions & 3 deletions tests/TestCase/Shell/Helper/TableHelperTest.php
Expand Up @@ -141,7 +141,8 @@ public function testOutputWithDifferentHeaderStyle()
*
* @return void
*/
public function testOutputWithoutHeaders() {
public function testOutputWithoutHeaders()
{
$data = [
['short', 'Longish thing', 'short'],
['Longer thing', 'short', 'Longest Value'],
Expand All @@ -162,7 +163,8 @@ public function testOutputWithoutHeaders() {
*
* @return void
*/
public function testOutputWithRowSeparator() {
public function testOutputWithRowSeparator()
{
$data = [
['Header 1', 'Header', 'Long Header'],
['short', 'Longish thing', 'short'],
Expand All @@ -187,7 +189,8 @@ public function testOutputWithRowSeparator() {
*
* @return void
*/
public function testOutputWithRowSeparatorAndHeaders() {
public function testOutputWithRowSeparatorAndHeaders()
{
$data = [
['Header 1', 'Header', 'Long Header'],
['short', 'Longish thing', 'short'],
Expand Down

0 comments on commit 45fd683

Please sign in to comment.