@@ -10,9 +10,9 @@ |
||
10 | 10 | private function __construct() { |
11 | 11 | |
12 | 12 | $this->oLogger = new \Monolog\Logger("PHPUtils"); |
13 | - $this->oLogger->pushHandler( new \Monolog\Handler\StreamHandler("/tmp/PHPUtils.log") ); |
|
14 | - $this->oLogger->pushHandler( new \Monolog\Handler\ChromePHPHandler() ); |
|
15 | - $this->oLogger->pushHandler( new \Monolog\Handler\FirePHPHandler() ); |
|
13 | + $this->oLogger->pushHandler(new \Monolog\Handler\StreamHandler("/tmp/PHPUtils.log")); |
|
14 | + $this->oLogger->pushHandler(new \Monolog\Handler\ChromePHPHandler()); |
|
15 | + $this->oLogger->pushHandler(new \Monolog\Handler\FirePHPHandler()); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | public function log() {} |
@@ -19,6 +19,9 @@ |
||
19 | 19 | return call_user_func_array('parent::__construct', func_get_args()); |
20 | 20 | } |
21 | 21 | |
22 | + /** |
|
23 | + * @param string $type |
|
24 | + */ |
|
22 | 25 | public function sendLog($type, $key, $value = null, array $backtrace ) { |
23 | 26 | |
24 | 27 | $logger = $this->logger; |
@@ -19,7 +19,7 @@ |
||
19 | 19 | return call_user_func_array('parent::__construct', func_get_args()); |
20 | 20 | } |
21 | 21 | |
22 | - public function sendLog($type, $key, $value = null, array $backtrace ) { |
|
22 | + public function sendLog($type, $key, $value = null, array $backtrace) { |
|
23 | 23 | |
24 | 24 | $logger = $this->logger; |
25 | 25 | $retorno['type'] = $type; |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | |
4 | 4 | $sSql = "SELECT * FROM testes.teste inner join coisa.neh on teste.codigo = neh.codigo where teste.xoxo = 1 and teste.xoxb is true;"; |
5 | 5 | $oObjeto = new StdClass(); |
6 | -$oObjeto->aArray = array(1,2,3,4,5,"6", array(7)); |
|
6 | +$oObjeto->aArray = array(1, 2, 3, 4, 5, "6", array(7)); |
|
7 | 7 | $oObjeto->backtrace = debug_backtrace(); |
8 | 8 | |
9 | 9 | //\PHP\Utils::dump_sql($sSql); |
@@ -20,5 +20,5 @@ discard block |
||
20 | 20 | |
21 | 21 | isset($test_array['cinco']); |
22 | 22 | |
23 | -$teste = $test_array["4"]; |
|
23 | +$teste = $test_array["4"]; |
|
24 | 24 |