Bläddra i källkod

Minor - Format code and PSR

Angel Fernando Quiroz Campos 9 år sedan
förälder
incheckning
fca2160069

+ 12 - 15
plugin/buycourses/src/buy_course_plugin.class.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,14 +69,14 @@ 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;
         }
-        
+
         require_once api_get_path(SYS_PLUGIN_PATH) . 'buycourses/database.php';
     }
 
@@ -237,7 +234,7 @@ class BuyCoursesPlugin extends Plugin
     {
         $entityManager = Database::getManager();
         $query = $entityManager->createQueryBuilder();
-        
+
         $courses = $query
             ->select('c')
             ->from('ChamiloCoreBundle:Course', 'c')
@@ -419,7 +416,7 @@ class BuyCoursesPlugin extends Plugin
                     'title' => $course->getTitle(),
                     'coaches' => []
                 ];
-                
+
                 $userCourseSubscriptions = $session->getUserCourseSubscriptionsByStatus(
                     $course,
                     Chamilo\CoreBundle\Entity\Session::COACH
@@ -602,7 +599,7 @@ class BuyCoursesPlugin extends Plugin
      * @param array $sessionId The session ID
      * @return array
      */
-    public function getSessionInfo($sessionId) 
+    public function getSessionInfo($sessionId)
     {
         $entityManager = Database::getManager();
         $session = $entityManager->find('ChamiloCoreBundle:Session', $sessionId);

+ 2 - 1
src/Chamilo/CoreBundle/Entity/Skill.php

@@ -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()}";
         }