@@ -116,7 +116,7 @@ |
||
| 116 | 116 | |
| 117 | 117 | /** |
| 118 | 118 | * Create folders |
| 119 | - * @param array $folderList |
|
| 119 | + * @param string[] $folderList |
|
| 120 | 120 | * @param OutputInterface $output |
| 121 | 121 | * @param string $folderPermissions |
| 122 | 122 | */ |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use Chamilo\UserBundle\Entity\User; |
| 9 | 9 | use MediaAlchemyst\Alchemyst; |
| 10 | 10 | use Sunra\PhpSimple\HtmlDomParser; |
| 11 | -use Symfony\Component\Console; |
|
| 12 | 11 | use Symfony\Component\Console\Output\OutputInterface; |
| 13 | 12 | use Symfony\Component\Filesystem\Filesystem; |
| 14 | 13 | use Symfony\Component\Finder\Finder; |
@@ -86,13 +86,13 @@ |
||
| 86 | 86 | return $this->get($file); |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - /** |
|
| 90 | - * Gets a file from the data/courses/MATHS/scorm directory |
|
| 91 | - * @param string $courseCode |
|
| 92 | - * @param string $file |
|
| 93 | - * |
|
| 94 | - * @return SplFileInfo |
|
| 95 | - */ |
|
| 89 | + /** |
|
| 90 | + * Gets a file from the data/courses/MATHS/scorm directory |
|
| 91 | + * @param string $courseCode |
|
| 92 | + * @param string $file |
|
| 93 | + * |
|
| 94 | + * @return SplFileInfo |
|
| 95 | + */ |
|
| 96 | 96 | public function getCourseScormDocument($courseCode, $file) |
| 97 | 97 | { |
| 98 | 98 | $file = 'courses/'.$courseCode.'/scorm/'.$file; |
@@ -532,7 +532,6 @@ discard block |
||
| 532 | 532 | /** |
| 533 | 533 | * Set sslPubKey |
| 534 | 534 | * |
| 535 | - * @param string $sslPubKey |
|
| 536 | 535 | * @return BranchSync |
| 537 | 536 | */ |
| 538 | 537 | public function setBranchType($branchType) |
@@ -714,7 +713,7 @@ discard block |
||
| 714 | 713 | } |
| 715 | 714 | |
| 716 | 715 | /** |
| 717 | - * @return mixed |
|
| 716 | + * @return null|BranchSync |
|
| 718 | 717 | */ |
| 719 | 718 | public function getParent() |
| 720 | 719 | { |
@@ -136,11 +136,11 @@ discard block |
||
| 136 | 136 | */ |
| 137 | 137 | private $lastSyncType; |
| 138 | 138 | |
| 139 | - /** |
|
| 140 | - * @var string |
|
| 141 | - * |
|
| 142 | - * @ORM\Column(name="ssl_pub_key", type="string", length=250, nullable=true, unique=false) |
|
| 143 | - */ |
|
| 139 | + /** |
|
| 140 | + * @var string |
|
| 141 | + * |
|
| 142 | + * @ORM\Column(name="ssl_pub_key", type="string", length=250, nullable=true, unique=false) |
|
| 143 | + */ |
|
| 144 | 144 | private $sslPubKey; |
| 145 | 145 | |
| 146 | 146 | /** |
@@ -529,12 +529,12 @@ discard block |
||
| 529 | 529 | return $this->sslPubKey; |
| 530 | 530 | } |
| 531 | 531 | |
| 532 | - /** |
|
| 533 | - * Set sslPubKey |
|
| 534 | - * |
|
| 535 | - * @param string $sslPubKey |
|
| 536 | - * @return BranchSync |
|
| 537 | - */ |
|
| 532 | + /** |
|
| 533 | + * Set sslPubKey |
|
| 534 | + * |
|
| 535 | + * @param string $sslPubKey |
|
| 536 | + * @return BranchSync |
|
| 537 | + */ |
|
| 538 | 538 | public function setBranchType($branchType) |
| 539 | 539 | { |
| 540 | 540 | $this->branchType = $branchType; |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | } |
| 319 | 319 | |
| 320 | 320 | /** |
| 321 | - * @return ArrayCollection |
|
| 321 | + * @return CTool[] |
|
| 322 | 322 | */ |
| 323 | 323 | public function getTools() |
| 324 | 324 | { |
@@ -1146,7 +1146,7 @@ discard block |
||
| 1146 | 1146 | } |
| 1147 | 1147 | |
| 1148 | 1148 | /** |
| 1149 | - * @return array |
|
| 1149 | + * @return string[] |
|
| 1150 | 1150 | */ |
| 1151 | 1151 | public static function getStatusList() |
| 1152 | 1152 | { |
@@ -139,7 +139,7 @@ |
||
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | /** |
| 142 | - * @param $user |
|
| 142 | + * @param User $user |
|
| 143 | 143 | * @return $this |
| 144 | 144 | */ |
| 145 | 145 | public function setUser($user) |
@@ -3,11 +3,9 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Chamilo\CoreBundle\Entity\Listener; |
| 5 | 5 | |
| 6 | -use Chamilo\CoreBundle\Entity\Tool; |
|
| 7 | 6 | use Chamilo\CourseBundle\ToolChain; |
| 8 | 7 | use Doctrine\ORM\Event\LifecycleEventArgs; |
| 9 | 8 | use Chamilo\CoreBundle\Entity\Course; |
| 10 | -use Doctrine\ORM\Mapping as ORM; |
|
| 11 | 9 | |
| 12 | 10 | /** |
| 13 | 11 | * Class CourseListener |
@@ -22,8 +22,8 @@ |
||
| 22 | 22 | * @param $tool learnpath | document | etc |
| 23 | 23 | * @param $itemId |
| 24 | 24 | * @param Course $course |
| 25 | - * @param int $sessionId |
|
| 26 | - * @param int $groupId |
|
| 25 | + * @param int $session |
|
| 26 | + * @param int $group |
|
| 27 | 27 | * |
| 28 | 28 | * @return \Doctrine\ORM\QueryBuilder |
| 29 | 29 | */ |
@@ -196,7 +196,7 @@ |
||
| 196 | 196 | $users = \GroupManager::getStudentsAndTutors($groupId); |
| 197 | 197 | $newUserList = array(); |
| 198 | 198 | if (!empty($users)) { |
| 199 | - foreach($users as $user) { |
|
| 199 | + foreach ($users as $user) { |
|
| 200 | 200 | $newUserList[] = $user['user_id']; |
| 201 | 201 | } |
| 202 | 202 | $this->unsubcribeUsersToItem( |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | - * @return string |
|
| 61 | + * @return integer |
|
| 62 | 62 | */ |
| 63 | 63 | public function getType() |
| 64 | 64 | { |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | /** |
| 126 | - * @param mixed $sequence |
|
| 126 | + * @param Sequence $sequence |
|
| 127 | 127 | * @return $this |
| 128 | 128 | */ |
| 129 | 129 | public function setSequence(Sequence $sequence) |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | * @param Course $course |
| 461 | 461 | * @param string $status |
| 462 | 462 | * |
| 463 | - * @return \Doctrine\Common\Collections\Collection|static |
|
| 463 | + * @return ArrayCollection |
|
| 464 | 464 | */ |
| 465 | 465 | public function getUserInCourse(User $user, Course $course, $status = null) |
| 466 | 466 | { |
@@ -506,7 +506,7 @@ discard block |
||
| 506 | 506 | * Set description |
| 507 | 507 | * |
| 508 | 508 | * @param string $description |
| 509 | - * @return Groups |
|
| 509 | + * @return Session |
|
| 510 | 510 | */ |
| 511 | 511 | public function setDescription($description) |
| 512 | 512 | { |
@@ -839,7 +839,7 @@ discard block |
||
| 839 | 839 | } |
| 840 | 840 | |
| 841 | 841 | /** |
| 842 | - * @return array |
|
| 842 | + * @return string[] |
|
| 843 | 843 | */ |
| 844 | 844 | public static function getStatusList() |
| 845 | 845 | { |
@@ -991,7 +991,7 @@ discard block |
||
| 991 | 991 | * Get user from course by status |
| 992 | 992 | * @param \Chamilo\CoreBundle\Entity\Course $course |
| 993 | 993 | * @param string $status |
| 994 | - * @return \Doctrine\Common\Collections\Collection|static |
|
| 994 | + * @return ArrayCollection |
|
| 995 | 995 | */ |
| 996 | 996 | public function getUserCourseSubscriptionsByStatus(Course $course, $status) |
| 997 | 997 | { |
@@ -470,7 +470,7 @@ |
||
| 470 | 470 | Criteria::expr()->eq("user", $user) |
| 471 | 471 | ); |
| 472 | 472 | |
| 473 | - if (!is_null($status)) { |
|
| 473 | + if (!is_null($status)) { |
|
| 474 | 474 | $criteria->andWhere( |
| 475 | 475 | Criteria::expr()->eq("status", $status) |
| 476 | 476 | ); |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | * Set url |
| 67 | 67 | * |
| 68 | 68 | * @param $url |
| 69 | - * @return AccessUrlRelCourse |
|
| 69 | + * @return SessionCategory |
|
| 70 | 70 | */ |
| 71 | 71 | public function setUrl($url) |
| 72 | 72 | { |