src/Data/HookLogFactory.php
private function extract_log_objects_in_args( array $args, $hook_level ) {

		$logs = [];
		foreach ( $args as $arg ) {
			if ( $arg instanceof LogDataInterface ) {
				$logs[] = $this->maybe_raise_level( $hook_level, $arg );
			}

		}

		return $logs;
	}
private function extract_log_objects_in_args( array $args, $hook_level ) {

		$logs = [];
		foreach ( $args as $arg ) {
			if ( $arg instanceof LogDataInterface ) {
				$logs[] = $this->maybe_raise_level( $hook_level, $arg );
			}

		}

		return $logs;
	}
private function extract_log_objects_in_args ( array $ args , $ hook_level ) { $ logs = [ ] ; foreach ( $ args as $ arg ) { if ( $ arg instanceof LogDataInterface ) { $ logs [ ] = $ this -> maybe_raise_level ( $ hook_level , $ arg ) ; } } return $ logs ; }
If one or more LogData objects are passed as argument, extract all of them and return remaining objects.

@param array $args
@param int   $hook_level

@return LogDataInterface[]
If one or more LogData objects are passed as argument extract all of them and return remaining objects .