Browse Source

Minor - format code

Julio Montoya 5 years ago
parent
commit
4c788798ec
1 changed files with 12 additions and 13 deletions
  1. 12 13
      main/gradebook/lib/be/exerciselink.class.php

+ 12 - 13
main/gradebook/lib/be/exerciselink.class.php

@@ -505,9 +505,9 @@ class ExerciseLink extends AbstractLink
     {
         if ($this->is_hp == 1) {
             return 'HotPotatoes';
-        } else {
-            return get_lang('Quiz');
         }
+
+        return get_lang('Quiz');
     }
 
     public function needs_name_and_description()
@@ -555,21 +555,10 @@ class ExerciseLink extends AbstractLink
     {
         switch ($type) {
             case 'best':
-
                 break;
         }
     }
 
-    /**
-     * Lazy load function to get the database table of the exercise.
-     */
-    private function get_exercise_table()
-    {
-        $this->exercise_table = Database::get_course_table(TABLE_QUIZ_TEST);
-
-        return $this->exercise_table;
-    }
-
     /**
      * Lazy load function to get the database contents of this exercise.
      */
@@ -628,4 +617,14 @@ class ExerciseLink extends AbstractLink
 
         return $this->exercise_data;
     }
+
+    /**
+     * Lazy load function to get the database table of the exercise.
+     */
+    private function get_exercise_table()
+    {
+        $this->exercise_table = Database::get_course_table(TABLE_QUIZ_TEST);
+
+        return $this->exercise_table;
+    }
 }