Skip to content

Commit 542a2b8

Browse files
authored
Merge pull request #191 from lecneri/patch-2
Back to old output method and create of printOutput
2 parents b0bb4f6 + 1630af1 commit 542a2b8

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)