Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
54 | protected function debugNotify($msg, $timeout = 2000, $type = 'info') |
||
55 | { |
||
56 | $title = get_class($this) . '::' . $this->getName(false); |
||
57 | $msg = trim(addslashes(preg_replace('~[[:space:]]+~', ' ', nl2br($msg)))); |
||
58 | $args = '"' . $title . '", "' . $msg . '", ' . $timeout . ', "' . $type . '"'; |
||
59 | $cmd = '("function" === typeof _debugNotify) && _debugNotify(' . $args . ');'; |
||
60 | |||
61 | $this->getSession()->execute(['script' => $cmd, 'args' => []]); |
||
62 | sleep($timeout / 1000); |
||
63 | return $this; |
||
64 | } |
||
65 | } |
||
66 |