Minor - format code

pull/3357/head
Julio Montoya 6 years ago
parent 039984b97a
commit 07e11708a6
  1. 4
      main/lp/learnpath.class.php
  2. 7
      main/lp/learnpathItem.class.php
  3. 1
      main/lp/lp_admin_view.php
  4. 1
      main/lp/lp_move_item.php

@ -54,7 +54,7 @@ class learnpath
public $error = '';
public $force_commit = false; // For SCORM only- if true will send a scorm LMSCommit() request on each LMSSetValue()
public $index; // The index of the active learnpath_item in $ordered_items array.
/** @var learnpathItem[] */
/** @var learnpathItem[] */
public $items = [];
public $last; // item_id of last item viewed in the learning path.
public $last_item_seen = 0; // In case we have already come in this lp, reuse the last item seen if authorized.
@ -8242,7 +8242,7 @@ class learnpath
$previousId = $extra_info['previous_item_id'];
}
if ($extra_info instanceOf learnpathItem) {
if ($extra_info instanceof learnpathItem) {
$item_title = $extra_info->get_title();
$item_description = $extra_info->get_description();
$path = $extra_info->get_path();

@ -75,12 +75,12 @@ class learnpathItem
public $view_id;
public $oldTotalTime;
public $view_max_score;
public $courseInfo;
public $courseId;
//var used if absolute session time mode is used
private $last_scorm_session_time = 0;
private $prerequisiteMaxScore;
private $prerequisiteMinScore;
public $courseInfo;
public $courseId;
/**
* Prepares the learning path item for later launch.
@ -89,7 +89,7 @@ class learnpathItem
*
* @param int $id Learning path item ID
* @param int $user_id User ID
* @param int $courseId Course int id
* @param int $courseId Course int id
* @param array|null $item_content An array with the contents of the item
*/
public function __construct(
@ -206,7 +206,6 @@ class learnpathItem
$file = api_get_path(SYS_COURSE_PATH).$courseInfo['path'].'/document'.$audio;
if (file_exists($file)) {
return $audio;
}

@ -11,7 +11,6 @@ use ChamiloSession as Session;
* @author Denes Nagy
* @author Roan Embrechts, refactoring and code cleaning
* @author Yannick Warnier <ywarnier@beeznest.org> - cleaning and update for new SCORM tool
*
*/
$this_section = SECTION_COURSES;

@ -12,7 +12,6 @@ use ChamiloSession as Session;
* @author Roan Embrechts, refactoring and code cleaning
* @author Yannick Warnier <ywarnier@beeznest.org> - cleaning and update for new SCORM tool
*/
$this_section = SECTION_COURSES;
api_protect_course_script();

Loading…
Cancel
Save