Minor - Format code and PSR

1.10.x
Angel Fernando Quiroz Campos 10 years ago
parent 22263820bf
commit fca2160069
  1. 17
      plugin/buycourses/src/buy_course_plugin.class.php
  2. 3
      src/Chamilo/CoreBundle/Entity/Skill.php

@ -1,16 +1,13 @@
<?php
/* For license terms, see /license.txt */
/**
* Description of buy_courses_plugin
* Plugin class for the BuyCourses plugin
* @package chamilo.plugin.buycourses
* @author Jose Angel Ruiz <jaruiz@nosolored.com>
* @author Imanol Losada <imanol.losada@beeznest.com>
* @author Alex Aragón <alex.aragon@beeznest.com>
* @author Jose Angel Ruiz <jaruiz@nosolored.com>
* @author Imanol Losada <imanol.losada@beeznest.com>
* @author Alex Aragón <alex.aragon@beeznest.com>
* @author Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com>
*/
/**
* Plugin class for the BuyCourses plugin
*/
class BuyCoursesPlugin extends Plugin
{
const TABLE_PAYPAL = 'plugin_buycourses_paypal_account';
@ -72,9 +69,9 @@ class BuyCoursesPlugin extends Plugin
self::TABLE_CURRENCY
);
$em = Database::getManager();
$cn = $em -> getConnection();
$sm = $cn -> getSchemaManager();
$tables = $sm ->tablesExist($tablesToBeCompared);
$cn = $em->getConnection();
$sm = $cn->getSchemaManager();
$tables = $sm->tablesExist($tablesToBeCompared);
if ($tables) {
return false;

@ -198,7 +198,8 @@ class Skill
* Get the icon URL
* @return string
*/
public function getWebIconPath(){
public function getWebIconPath()
{
if ($this->getIcon()) {
return api_get_path(WEB_UPLOAD_PATH) . "badges/{$this->getIcon()}";
}

Loading…
Cancel
Save