@@ -147,11 +147,13 @@
Loading
147 147
     */
148 148
    public function sourceQuery($params)
149 149
    {
150 -
        if ($this->hasMethod('sourceRecords')) {
151 -
            return $this->sourceRecords($params, null, null)->dataQuery();
152 -
        } else {
153 -
            user_error("Please override sourceQuery()/sourceRecords() and columns() or, if necessary, override getReportField()", E_USER_ERROR);
150 +
        if (!$this->hasMethod('sourceRecords')) {
151 +
            throw new \RuntimeException(
152 +
                'Please override sourceQuery()/sourceRecords() and columns() or, if necessary, override getReportField()'
153 +
            );
154 154
        }
155 +
156 +
        return $this->sourceRecords($params, null, null)->dataQuery();
155 157
    }
156 158
157 159
    /**

@@ -75,7 +75,9 @@
Loading
75 75
            $this->afterQuery();
76 76
            return $query;
77 77
        } else {
78 -
            user_error("Please override sourceQuery()/sourceRecords() and columns() in your base report", E_USER_ERROR);
78 +
            throw new \RuntimeException(
79 +
                "Please override sourceQuery()/sourceRecords() and columns() in your base report"
80 +
            );
79 81
        }
80 82
    }
81 83
Files Complexity Coverage
code 124 32.05%
Project Totals (5 files) 124 32.05%
579.3
7.3=.3
TRAVIS_OS_NAME=linux
1
comment: false
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading