MDL-57791 analytics: Add missing 'new' to throw

Also other code refinements. Credit to Mark Nelson.
This commit is contained in:
David Monllao
2017-07-24 08:37:01 +02:00
parent 2db6e9811b
commit 08015e1895
3 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -76,7 +76,7 @@ class manager {
*
* @param bool $enabled
* @param bool $trained
* @param \context $predictioncontext
* @param \context|false $predictioncontext
* @return \core_analytics\model[]
*/
public static function get_all_models($enabled = false, $trained = false, $predictioncontext = false) {
@@ -163,7 +163,7 @@ class manager {
/**
* Return all system predictions processors.
*
* @return \core_analytics\predictor
* @return \core_analytics\predictor[]
*/
public static function get_all_prediction_processors() {