public function logReview($data = [], string $note = '', string $event = ''): int
    {
        if (func_num_args() === 1 && is_string($data)) {
            $note = $data; // Use data as note.
            $data = []; // Data empty in this case.
        }
        $event = $event ?: $this->traceLogEventTrigger();

        if (mb_strpos($event, '#') === false) {
            $event .= '#review';
        } // Assume this is for review.

        return $this->maybeLog($data, $note, $event);
    }
public function logReview($data = [], string $note = '', string $event = ''): int
    {
        if (func_num_args() === 1 && is_string($data)) {
            $note = $data; // Use data as note.
            $data = []; // Data empty in this case.
        }
        $event = $event ?: $this->traceLogEventTrigger();

        if (mb_strpos($event, '#') === false) {
            $event .= '#review';
        } // Assume this is for review.

        return $this->maybeLog($data, $note, $event);
    }
public function logReview ( $ data = [ ] , string $ note = '' , string $ event = '' ) : int { if ( func_num_args ( ) === 1 && is_string ( $ data ) ) { $ note = $ data ; // Use data as note. $ data = [ ] ; // Data empty in this case. } $ event = $ event ? : $ this -> traceLogEventTrigger ( ) ; if ( mb_strpos ( $ event , '#' ) === false ) { $ event .= '#review' ; } // Assume this is for review. return $ this -> maybeLog ( $ data , $ note , $ event ) ; }
Log for review.

@since 160522 Debugging utilities.

@param mixed  $data  Data to log (e.g., {@link vars()}).
@param string $note  A brief note or description of the issue.
@param string $event Event name (e.g., {@link __METHOD__}).

@return int Total number of bytes written.

@internal If only one parameter is passed and it's a string, it's treated as the `$note`.
Log for review .