Skip to content

Commit 1630af1

Browse files
authored
Back to old output method and create of printOutput
Output method returns string again and created printOutput method to print command into default
1 parent b0bb4f6 commit 1630af1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/PHPJasper.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,17 @@ public function execute($user = false)
229229
*/
230230
public function output()
231231
{
232-
print $this->command . "\n";
232+
return $this->command;
233+
}
234+
235+
/**
236+
* Prints the command.
237+
*
238+
* @return void
239+
*/
240+
public function printOutput()
241+
{
242+
print $this->output() . "\n";
233243
}
234244

235245
/**

0 commit comments

Comments
 (0)