Browse Source

Minor - flint fixes

Julio 5 years ago
parent
commit
c9ebd7fc93

+ 0 - 1
main/badge/assign.php

@@ -2,7 +2,6 @@
 /* For licensing terms, see /license.txt */
 
 use Chamilo\CoreBundle\Entity\Skill;
-use Chamilo\CoreBundle\Entity\SkillRelUser;
 use Chamilo\UserBundle\Entity\User;
 use Skill as SkillManager;
 

+ 1 - 1
main/gradebook/lib/be/studentpublicationlink.class.php

@@ -236,7 +236,7 @@ class StudentPublicationLink extends AbstractLink
                 $data->getQualification(),
                 $assignment->getQualification(),
                 api_get_local_time($assignment->getDateOfQualification()),
-                1
+                1,
             ];
         }
 

+ 2 - 2
main/inc/lib/skill.lib.php

@@ -9,7 +9,6 @@ use Chamilo\SkillBundle\Entity\SkillRelItem;
 use Chamilo\UserBundle\Entity\User;
 use Fhaculty\Graph\Graph;
 use Fhaculty\Graph\Vertex;
-use Skill as SkillManager;
 
 /**
  * Class SkillProfile.
@@ -2989,8 +2988,9 @@ class Skill extends Model
      * @param string                           $argumentation
      * @param int                              $authorId
      *
-     * @return SkillRelUserEntity
      * @throws \Doctrine\ORM\OptimisticLockException
+     *
+     * @return SkillRelUserEntity
      */
     public function addSkillToUserBadge($user, $skill, $levelId, $argumentation, $authorId)
     {

+ 0 - 2
main/webservices/gradebook.php

@@ -498,8 +498,6 @@ function WSAssignSkill($params)
     return 0;
 }
 
-
-
 // Use the request to (try to) invoke the service
 $GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents('php://input');
 $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';