public function add_analysable_results(array $results): bool {

        $any = false;

        // Process all provided time splitting methods.
        foreach ($results as $timesplittingid => $result) {
            if (!empty($result->result)) {
                $this->filesbytimesplitting[$timesplittingid][] = $result->result;
                $any = true;
            }
        }

        if (empty($any)) {
            return false;
        }
        return true;
    }
public function add_analysable_results(array $results): bool {

        $any = false;

        // Process all provided time splitting methods.
        foreach ($results as $timesplittingid => $result) {
            if (!empty($result->result)) {
                $this->filesbytimesplitting[$timesplittingid][] = $result->result;
                $any = true;
            }
        }

        if (empty($any)) {
            return false;
        }
        return true;
    }
public function add_analysable_results ( array $ results ) : bool { $ any = false ; // Process all provided time splitting methods. foreach ( $ results as $ timesplittingid => $ result ) { if ( ! empty ( $ result -> result ) ) { $ this -> filesbytimesplitting [ $ timesplittingid ] [ ] = $ result -> result ; $ any = true ; } } if ( empty ( $ any ) ) { return false ; } return true ; }
Stores the analysis results.
@param  array $results
@return bool            True if anything was successfully analysed
Stores the analysis results .