src/Paraunit/Parser/JSON/LogPrinter.php 1 location
|
@@ 269-276 (lines=8) @@
|
| 266 |
|
$this->writeToLog(json_encode($buffer, JSON_PRETTY_PRINT)); |
| 267 |
|
} |
| 268 |
|
|
| 269 |
|
private function writeToLog($buffer) |
| 270 |
|
{ |
| 271 |
|
// ignore everything that is not a JSON object |
| 272 |
|
if ($buffer != '' && $buffer[0] === '{') { |
| 273 |
|
\fwrite($this->logFile, $buffer); |
| 274 |
|
\fflush($this->logFile); |
| 275 |
|
} |
| 276 |
|
} |
| 277 |
|
|
| 278 |
|
/** |
| 279 |
|
* @return string |
src/Paraunit/Parser/JSON/LogPrinterV6.php 1 location
|
@@ 262-269 (lines=8) @@
|
| 259 |
|
$this->writeToLog(json_encode($buffer, JSON_PRETTY_PRINT)); |
| 260 |
|
} |
| 261 |
|
|
| 262 |
|
private function writeToLog($buffer) |
| 263 |
|
{ |
| 264 |
|
// ignore everything that is not a JSON object |
| 265 |
|
if ($buffer != '' && $buffer[0] === '{') { |
| 266 |
|
\fwrite($this->logFile, $buffer); |
| 267 |
|
\fflush($this->logFile); |
| 268 |
|
} |
| 269 |
|
} |
| 270 |
|
|
| 271 |
|
/** |
| 272 |
|
* @return string |