Minor - format code

pull/3250/head
Julio Montoya 6 years ago
parent b887b38473
commit ff0bd4d643
  1. 3
      main/auth/external_login/login.ldap.php
  2. 3
      main/lp/lp_add_category.php
  3. 5
      plugin/bbb/install.php
  4. 9
      src/Chamilo/CoreBundle/Entity/Repository/CourseRepository.php
  5. 3
      src/Chamilo/CoreBundle/Entity/Repository/ItemPropertyRepository.php

@ -37,8 +37,7 @@ use ChamiloSession as Session;
* - index.php?loginFailed=1&error=account_inactive
* - index.php?loginFailed=1&error=user_password_incorrect
* - index.php?loginFailed=1&error=unrecognize_sso_origin');
*
**/
*/
require_once __DIR__.'/ldap.inc.php';
require_once __DIR__.'/functions.inc.php';

@ -1,10 +1,9 @@
<?php
/* For licensing terms, see /license.txt */
/**
* @author Julio Montoya <gugli100@gmail.com> Adding formvalidator support
*
* @package chamilo.learnpath
*/
$this_section = SECTION_COURSES;
api_protect_course_script();

@ -1,9 +1,10 @@
<?php
/* For license terms, see /license.txt */
/**
* This script is included by main/admin/settings.lib.php and generally
* includes things to execute in the main database (settings_current table).
*
* @package chamilo.plugin.bigbluebutton
*/
require_once __DIR__.'/config.php';
BBBPlugin::create()->install();

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity\Repository;
@ -12,8 +13,6 @@ use Doctrine\ORM\QueryBuilder;
/**
* Class CourseRepository
* The functions inside this class must return an instance of QueryBuilder.
*
* @package Chamilo\CoreBundle\Entity\Repository
*/
class CourseRepository extends EntityRepository
{
@ -49,14 +48,8 @@ class CourseRepository extends EntityRepository
// Get only users subscribed to this course
$wherePart->add($queryBuilder->expr()->eq('c.id', $course->getId()));
// $wherePart->add($queryBuilder->expr()->eq('c.status', $status));
$queryBuilder->where($wherePart);
//var_dump($queryBuilder->getQuery()->getSQL());
//$q = $queryBuilder->getQuery();
//return $q->execute();
return $queryBuilder;
}

@ -47,8 +47,9 @@ class ItemPropertyRepository extends EntityRepository
/**
* Get Groups subscribed to a item: LP, Doc, etc.
*
* @param string $tool learnpath | document | etc
* @param string $tool learnpath | document | etc
* @param int $itemId
* @param Course $course
* @param Session $session
*
* @return array

Loading…
Cancel
Save