Cancelled
Pull Request — master (#11549)
by Steve
57:05
created

ErrorLogPrinter::write()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 2
ccs 0
cts 2
cp 0
crap 2
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Elgg\Printer;
4
5
use Elgg\Printer;
6
7
/**
8
 * Default Log Printer
9
 *
10
 * @access private
11
 */
12
class ErrorLogPrinter implements Printer {
13
14
	/**
15
	 * {@inheritdoc}
16
	 */
17
	public function write($data, $level) {
18
		error_log(print_r($data, true));
19
	}
20
}
21