Minor - format code.

1.10.x
Julio Montoya 11 years ago
parent 3824a0ed5b
commit 67ee519ab9
  1. 1
      main/admin/filler.php
  2. 7
      tests/datafiller/data_courses.php
  3. 10
      tests/datafiller/fill_courses.php

@ -1,5 +1,6 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Index of the admin tools
*

@ -1,13 +1,12 @@
<?php //$id$
<?php
/* For licensing terms, see /license.txt */
/**
* This script contains the data to fill (or empty) the database with using
* the fillers in this directory.
* @author Yannick Warnier <yannick.warnier@dokeos.com>
*
*/
/**
* Initialisation section
*/
$courses = array();
$courses[] = array(

@ -1,18 +1,19 @@
<?php
/* For licensing terms, see /license.txt */
/**
* This script contains a data filling procedure for users
* @author Yannick Warnier <yannick.warnier@beeznest.com>
*
*/
/**
* Initialisation section
*/
/**
* Loads the data and injects it into the Chamilo database, using the Chamilo
* internal functions.
* @return array List of user IDs for the users that have just been inserted
*/
function fill_courses() {
function fill_courses()
{
$eol = PHP_EOL;
$courses = array(); //declare only to avoid parsing notice
require_once 'data_courses.php'; //fill the $users array
@ -25,5 +26,6 @@ function fill_courses() {
$output[$i]['line-info'] = ($res = CourseManager::create_course($course)? $res: get_lang('NotInserted'));
$i++;
}
return $output;
}

Loading…
Cancel
Save