MDL-61667 analytics: Fix coding style issues in the existing code
authorDavid Mudrák <david@moodle.com>
Wed, 6 Mar 2019 11:20:20 +0000 (12:20 +0100)
committerDavid Mudrák <david@moodle.com>
Mon, 1 Apr 2019 12:23:06 +0000 (14:23 +0200)
These coding style issues were spotted while working on the issue. No
real changes here, just the coding style fixes attached to the patchset
for convenience.

analytics/classes/manager.php

index 2994616..da9d26e 100644 (file)
@@ -112,7 +112,9 @@ class manager {
                 $params['trained'] = 1;
             }
             if ($predictioncontext) {
-                $conditions[] = "EXISTS (SELECT 'x' FROM {analytics_predictions} ap WHERE ap.modelid = am.id AND ap.contextid = :contextid)";
+                $conditions[] = "EXISTS (SELECT 'x'
+                                           FROM {analytics_predictions} ap
+                                          WHERE ap.modelid = am.id AND ap.contextid = :contextid)";
                 $params['contextid'] = $predictioncontext->id;
             }
             $sql .= ' WHERE ' . implode(' AND ', $conditions);