Skip to content

Commit 0ebf4f2

Browse files
committed
Log typos changes
1 parent a5971a6 commit 0ebf4f2

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

system/Log/Logger.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public function __construct($config, bool $debug = CI_DEBUG)
198198
*
199199
* @return boolean
200200
*/
201-
public function emergency($message, array $context = [])
201+
public function emergency($message, array $context = []): bool
202202
{
203203
return $this->log('emergency', $message, $context);
204204
}
@@ -216,7 +216,7 @@ public function emergency($message, array $context = [])
216216
*
217217
* @return boolean
218218
*/
219-
public function alert($message, array $context = [])
219+
public function alert($message, array $context = []): bool
220220
{
221221
return $this->log('alert', $message, $context);
222222
}
@@ -233,7 +233,7 @@ public function alert($message, array $context = [])
233233
*
234234
* @return boolean
235235
*/
236-
public function critical($message, array $context = [])
236+
public function critical($message, array $context = []): bool
237237
{
238238
return $this->log('critical', $message, $context);
239239
}
@@ -249,7 +249,7 @@ public function critical($message, array $context = [])
249249
*
250250
* @return boolean
251251
*/
252-
public function error($message, array $context = [])
252+
public function error($message, array $context = []): bool
253253
{
254254
return $this->log('error', $message, $context);
255255
}
@@ -267,7 +267,7 @@ public function error($message, array $context = [])
267267
*
268268
* @return boolean
269269
*/
270-
public function warning($message, array $context = [])
270+
public function warning($message, array $context = []): bool
271271
{
272272
return $this->log('warning', $message, $context);
273273
}
@@ -282,7 +282,7 @@ public function warning($message, array $context = [])
282282
*
283283
* @return boolean
284284
*/
285-
public function notice($message, array $context = [])
285+
public function notice($message, array $context = []): bool
286286
{
287287
return $this->log('notice', $message, $context);
288288
}
@@ -299,7 +299,7 @@ public function notice($message, array $context = [])
299299
*
300300
* @return boolean
301301
*/
302-
public function info($message, array $context = [])
302+
public function info($message, array $context = []): bool
303303
{
304304
return $this->log('info', $message, $context);
305305
}
@@ -314,7 +314,7 @@ public function info($message, array $context = [])
314314
*
315315
* @return boolean
316316
*/
317-
public function debug($message, array $context = [])
317+
public function debug($message, array $context = []): bool
318318
{
319319
return $this->log('debug', $message, $context);
320320
}
@@ -407,10 +407,10 @@ public function log($level, $message, array $context = []): bool
407407
* {file}
408408
* {line}
409409
*
410-
* @param $message
410+
* @param mixed $message
411411
* @param array $context
412412
*
413-
* @return string
413+
* @return mixed
414414
*/
415415
protected function interpolate($message, array $context = [])
416416
{
@@ -481,7 +481,7 @@ protected function interpolate($message, array $context = [])
481481
*
482482
* @return array
483483
*/
484-
public function determineFile()
484+
public function determineFile(): array
485485
{
486486
// Determine the file and line by finding the first
487487
// backtrace that is not part of our logging system.
@@ -519,9 +519,9 @@ public function determineFile()
519519
*
520520
* @param $file
521521
*
522-
* @return mixed
522+
* @return string
523523
*/
524-
protected function cleanFileNames($file)
524+
protected function cleanFileNames(string $file): string
525525
{
526526
$file = str_replace(APPPATH, 'APPPATH/', $file);
527527
$file = str_replace(SYSTEMPATH, 'SYSTEMPATH/', $file);

0 commit comments

Comments
 (0)