Minor - format code

pull/2487/head
jmontoyaa 10 years ago
parent 97dc7d9b6b
commit 6006cb9a9c
  1. 2
      cli-config.php
  2. 12
      src/Chamilo/SkillBundle/Entity/Level.php
  3. 10
      src/Chamilo/SkillBundle/Entity/Profile.php

@ -31,7 +31,7 @@ $dbParams = array(
'host' => $_configuration['db_host'], 'host' => $_configuration['db_host'],
'user' => $_configuration['db_user'], 'user' => $_configuration['db_user'],
'password' => $_configuration['db_password'], 'password' => $_configuration['db_password'],
'dbname' => $_configuration['main_database'], 'dbname' => $_configuration['main_database']
); );
$database->connect($dbParams, realpath(__DIR__).'/', realpath(__DIR__).'/'); $database->connect($dbParams, realpath(__DIR__).'/', realpath(__DIR__).'/');

@ -1,12 +1,6 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/**
* Profile Level
*
* @package chamilo.skill
*/
namespace Chamilo\SkillBundle\Entity; namespace Chamilo\SkillBundle\Entity;
use Gedmo\Mapping\Annotation as Gedmo; use Gedmo\Mapping\Annotation as Gedmo;
@ -15,9 +9,7 @@ use Doctrine\ORM\Mapping as ORM;
/** /**
* Level * Level
* *
* @ORM\Table( * @ORM\Table(name="skill_level")
* name="skill_level"
* )
* @ORM\Entity * @ORM\Entity
*/ */
class Level class Level
@ -161,6 +153,4 @@ class Level
return $this; return $this;
} }
} }

@ -1,13 +1,6 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/**
* Profile Entity
*
* @package chamilo.skill
*/
namespace Chamilo\SkillBundle\Entity; namespace Chamilo\SkillBundle\Entity;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
@ -49,6 +42,9 @@ class Profile
**/ **/
protected $levels; protected $levels;
/**
* @return string
*/
public function __toString() public function __toString()
{ {
return (string) $this->getName(); return (string) $this->getName();

Loading…
Cancel
Save