@@ -18,8 +18,8 @@ |
||
| 18 | 18 | { |
| 19 | 19 | $config['toolbarGroups'] = array( |
| 20 | 20 | '/', |
| 21 | - array('name' => 'basicstyles', 'groups' =>array('basicstyles', 'cleanup', )), |
|
| 22 | - array('name' => 'paragraph', 'groups' =>array('list', 'indent', 'blocks', 'align' )), |
|
| 21 | + array('name' => 'basicstyles', 'groups' =>array('basicstyles', 'cleanup',)), |
|
| 22 | + array('name' => 'paragraph', 'groups' =>array('list', 'indent', 'blocks', 'align')), |
|
| 23 | 23 | array('name' => 'links'), |
| 24 | 24 | array('name' => 'insert'), |
| 25 | 25 | '/', |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | ], |
| 35 | 35 | [ |
| 36 | 36 | 'name' => 'links', |
| 37 | - 'items' => [ 'Link', 'Unlink', 'Anchor'] |
|
| 37 | + 'items' => ['Link', 'Unlink', 'Anchor'] |
|
| 38 | 38 | ] |
| 39 | 39 | ]; |
| 40 | 40 | |
@@ -16,13 +16,13 @@ |
||
| 16 | 16 | public function getConfig() |
| 17 | 17 | { |
| 18 | 18 | $config['toolbarGroups'] = array( |
| 19 | - array('name' => 'document', 'groups' =>array('document', 'doctools')), |
|
| 20 | - array('name' => 'clipboard', 'groups' =>array('clipboard', 'undo')), |
|
| 21 | - array('name' => 'editing', 'groups' =>array('clipboard', 'undo')), |
|
| 19 | + array('name' => 'document', 'groups' =>array('document', 'doctools')), |
|
| 20 | + array('name' => 'clipboard', 'groups' =>array('clipboard', 'undo')), |
|
| 21 | + array('name' => 'editing', 'groups' =>array('clipboard', 'undo')), |
|
| 22 | 22 | //array('name' => 'forms', 'groups' =>array('clipboard', 'undo', )), |
| 23 | 23 | '/', |
| 24 | - array('name' => 'basicstyles', 'groups' =>array('basicstyles', 'cleanup')), |
|
| 25 | - array('name' => 'paragraph', 'groups' =>array('list', 'indent', 'blocks', 'align')), |
|
| 24 | + array('name' => 'basicstyles', 'groups' =>array('basicstyles', 'cleanup')), |
|
| 25 | + array('name' => 'paragraph', 'groups' =>array('list', 'indent', 'blocks', 'align')), |
|
| 26 | 26 | array('name' => 'links'), |
| 27 | 27 | array('name' => 'insert'), |
| 28 | 28 | '/', |
@@ -128,7 +128,7 @@ |
||
| 128 | 128 | return $var ? 'true' : 'false'; // Lowercase necessary! |
| 129 | 129 | case 'integer': |
| 130 | 130 | case 'double': |
| 131 | - return (string)$var; |
|
| 131 | + return (string) $var; |
|
| 132 | 132 | case 'resource': |
| 133 | 133 | case 'string': |
| 134 | 134 | return '"'.str_replace( |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | array('\r', '\n', '\x3c', '\x3e', '\x26'), |
| 138 | 138 | addslashes($var) |
| 139 | 139 | ).'"'; |
| 140 | - case 'array': |
|
| 140 | + case 'array': |
|
| 141 | 141 | // Arrays in JSON can't be associative. If the array is empty or if it |
| 142 | 142 | // has sequential whole number keys starting with 0, it's not associative |
| 143 | 143 | // so we can go ahead and convert it as an array. |
@@ -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; |
@@ -116,7 +116,7 @@ discard block |
||
| 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 | */ |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | * http://chamilo/courses/ABC/document/file.jpg |
| 201 | 201 | * @param string $content |
| 202 | 202 | * |
| 203 | - * @return string |
|
| 203 | + * @return \simplehtmldom_1_5\simple_html_dom |
|
| 204 | 204 | */ |
| 205 | 205 | public function convertRelativeToAbsoluteUrl($content) |
| 206 | 206 | { |
@@ -60,11 +60,11 @@ |
||
| 60 | 60 | */ |
| 61 | 61 | protected $priorityMessage; |
| 62 | 62 | |
| 63 | - /** |
|
| 64 | - * @var integer |
|
| 65 | - * |
|
| 66 | - * @ORM\Column(name="option_order", type="integer", nullable=true) |
|
| 67 | - */ |
|
| 63 | + /** |
|
| 64 | + * @var integer |
|
| 65 | + * |
|
| 66 | + * @ORM\Column(name="option_order", type="integer", nullable=true) |
|
| 67 | + */ |
|
| 68 | 68 | protected $optionOrder; |
| 69 | 69 | |
| 70 | 70 | /** |
@@ -153,13 +153,13 @@ |
||
| 153 | 153 | return $this; |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | - /** |
|
| 157 | - * Set comment |
|
| 158 | - * |
|
| 159 | - * @param string $comment |
|
| 160 | - * |
|
| 161 | - * @return ExtraFieldValues |
|
| 162 | - */ |
|
| 156 | + /** |
|
| 157 | + * Set comment |
|
| 158 | + * |
|
| 159 | + * @param string $comment |
|
| 160 | + * |
|
| 161 | + * @return ExtraFieldValues |
|
| 162 | + */ |
|
| 163 | 163 | public function setComment($comment) |
| 164 | 164 | { |
| 165 | 165 | $this->comment = $comment; |
@@ -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 | ); |
@@ -372,7 +372,7 @@ discard block |
||
| 372 | 372 | } |
| 373 | 373 | |
| 374 | 374 | /** |
| 375 | - * @param $courses |
|
| 375 | + * @param ArrayCollection $courses |
|
| 376 | 376 | */ |
| 377 | 377 | public function setCourses($courses) |
| 378 | 378 | { |
@@ -514,7 +514,7 @@ discard block |
||
| 514 | 514 | * Set description |
| 515 | 515 | * |
| 516 | 516 | * @param string $description |
| 517 | - * @return Groups |
|
| 517 | + * @return Session |
|
| 518 | 518 | */ |
| 519 | 519 | public function setDescription($description) |
| 520 | 520 | { |
@@ -847,7 +847,7 @@ discard block |
||
| 847 | 847 | } |
| 848 | 848 | |
| 849 | 849 | /** |
| 850 | - * @return array |
|
| 850 | + * @return string[] |
|
| 851 | 851 | */ |
| 852 | 852 | public static function getStatusList() |
| 853 | 853 | { |
@@ -25,7 +25,6 @@ |
||
| 25 | 25 | * @var integer |
| 26 | 26 | * |
| 27 | 27 | * @ORM\Column(name="access_url_id", type="integer") |
| 28 | - |
|
| 29 | 28 | */ |
| 30 | 29 | private $accessUrlId; |
| 31 | 30 | |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | * Set accessUrlId |
| 43 | 43 | * |
| 44 | 44 | * @param integer $accessUrlId |
| 45 | - * @return AccessUrlRelUser |
|
| 45 | + * @return AccessUrlRelUserGroup |
|
| 46 | 46 | */ |
| 47 | 47 | public function setAccessUrlId($accessUrlId) |
| 48 | 48 | { |