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

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

Loading…
Cancel
Save