Skip to content

Commit 77fdc19

Browse files
author
Geoffroy Letournel
committed
Adding missing method visibility
1 parent 5a14be4 commit 77fdc19

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

SimpleLogger.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct($loglevel, $logfile)
4848
$this->open();
4949
}
5050

51-
function __destruct()
51+
public function __destruct()
5252
{
5353
/* Only close the logfile when we opened it ourselves */
5454
if (!is_resource($this->logfile)) {
@@ -97,37 +97,37 @@ public function check()
9797
return $this->logfile_fd !== false;
9898
}
9999

100-
function debug()
100+
public function debug()
101101
{
102102
$args = func_get_args();
103103
$this->_log(DEBUG, $args);
104104
}
105105

106-
function verbose()
106+
public function verbose()
107107
{
108108
$args = func_get_args();
109109
$this->_log(VERBOSE, $args);
110110
}
111111

112-
function notice()
112+
public function notice()
113113
{
114114
$args = func_get_args();
115115
$this->_log(NOTICE, $args);
116116
}
117117

118-
function warning()
118+
public function warning()
119119
{
120120
$args = func_get_args();
121121
$this->_log(WARNING, $args);
122122
}
123123

124-
function error()
124+
public function error()
125125
{
126126
$args = func_get_args();
127127
$this->_log(ERROR, $args);
128128
}
129129

130-
function fatal()
130+
public function fatal()
131131
{
132132
$args = func_get_args();
133133
$this->_log(FATAL, $args);
@@ -154,7 +154,7 @@ function _log($level, $args)
154154
*
155155
* @return string
156156
*/
157-
function strlevel($level)
157+
public function strlevel($level)
158158
{
159159
switch ($level) {
160160
case DEBUG:

SystemDaemon.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ public function handleSignals($sig)
509509
*
510510
* @return bool
511511
*/
512-
function phpFault($errno, $errstr, $errfile, $errline)
512+
public function phpFault($errno, $errstr, $errfile, $errline)
513513
{
514514
$message = "PHP: " . strip_tags($errstr) . " in {$errfile}:{$errline}";
515515

@@ -553,7 +553,7 @@ function phpFault($errno, $errstr, $errfile, $errline)
553553
*
554554
* @param Exception $exception
555555
*/
556-
function exceptFault($exception)
556+
public function exceptFault($exception)
557557
{
558558
$trace = $exception->getTrace();
559559
$message = $exception->getMessage();

0 commit comments

Comments
 (0)