@@ -60,6 +60,11 @@ |
||
| 60 | 60 | */ |
| 61 | 61 | protected $parent = null; |
| 62 | 62 | |
| 63 | + /** |
|
| 64 | + * @param string $id |
|
| 65 | + * @param string $label |
|
| 66 | + * @param string $route |
|
| 67 | + */ |
|
| 63 | 68 | function __construct( |
| 64 | 69 | $id, |
| 65 | 70 | $label, |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | * |
| 49 | 49 | * @param UserInterface $from |
| 50 | 50 | * @param string $subject |
| 51 | - * @param null $sentAt |
|
| 51 | + * @param \DateTime $sentAt |
|
| 52 | 52 | * @param UserInterface $to |
| 53 | 53 | */ |
| 54 | 54 | function __construct(UserInterface $from = null, $subject= '', $sentAt = null, UserInterface $to = null) |
@@ -18,6 +18,9 @@ |
||
| 18 | 18 | |
| 19 | 19 | protected $icon; |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param string $message |
|
| 23 | + */ |
|
| 21 | 24 | function __construct($message = null, $type = 'info', $icon = 'fa fa-warning') |
| 22 | 25 | { |
| 23 | 26 | $this->message = $message; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | protected $title; |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | - * @param null $title |
|
| 53 | + * @param string $title |
|
| 54 | 54 | * @param int $progress |
| 55 | 55 | * @param string $color |
| 56 | 56 | */ |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | - * @return mixed |
|
| 96 | + * @return integer |
|
| 97 | 97 | */ |
| 98 | 98 | public function getProgress() |
| 99 | 99 | { |
@@ -52,6 +52,10 @@ |
||
| 52 | 52 | |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | + /** |
|
| 56 | + * @param string $id |
|
| 57 | + * @param string $src |
|
| 58 | + */ |
|
| 55 | 59 | public function registerStyle($id, $src, $deps = array()) { |
| 56 | 60 | if(!isset($this->stylesheets[$id])) { |
| 57 | 61 | $this->stylesheets[$id] = array( |
@@ -149,7 +149,7 @@ |
||
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | /** |
| 152 | - * @param $action |
|
| 152 | + * @param string $action |
|
| 153 | 153 | * @param MenuItemInterface $menu |
| 154 | 154 | * @return MenuItemInterface |
| 155 | 155 | */ |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | 86 | * Available driver list. |
| 87 | - * @return array |
|
| 87 | + * @return string[] |
|
| 88 | 88 | */ |
| 89 | 89 | private function getDefaultDriverList() |
| 90 | 90 | { |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | * @param string $canHaveCourses |
| 104 | 104 | * @param int $parent_id |
| 105 | 105 | * |
| 106 | - * @return bool |
|
| 106 | + * @return false|string |
|
| 107 | 107 | */ |
| 108 | 108 | public static function addNode($code, $name, $canHaveCourses, $parent_id) |
| 109 | 109 | { |
@@ -297,8 +297,7 @@ discard block |
||
| 297 | 297 | /** |
| 298 | 298 | * Counts the number of children categories a category has |
| 299 | 299 | * @param int $categoryId The ID of the category of which we want to count the children |
| 300 | - * @param int $count The number of subcategories we counted this far |
|
| 301 | - * @return mixed The number of subcategories this category has |
|
| 300 | + * @return integer The number of subcategories this category has |
|
| 302 | 301 | */ |
| 303 | 302 | public static function courseCategoryChildrenCount($categoryId) |
| 304 | 303 | { |
@@ -476,7 +475,7 @@ discard block |
||
| 476 | 475 | /** |
| 477 | 476 | * @param int $id |
| 478 | 477 | * |
| 479 | - * @return bool |
|
| 478 | + * @return boolean|null |
|
| 480 | 479 | */ |
| 481 | 480 | public static function addToUrl($id) |
| 482 | 481 | { |
@@ -958,7 +957,7 @@ discard block |
||
| 958 | 957 | * Get Pagination HTML div |
| 959 | 958 | * @param $pageCurrent |
| 960 | 959 | * @param $pageLength |
| 961 | - * @param $pageTotal |
|
| 960 | + * @param integer $pageTotal |
|
| 962 | 961 | * @return string |
| 963 | 962 | */ |
| 964 | 963 | public static function getCatalogPagination($pageCurrent, $pageLength, $pageTotal) |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | * @Security("has_role('ROLE_ADMIN')") |
| 24 | 24 | * @Route("/plugins") |
| 25 | 25 | * |
| 26 | - * @return array |
|
| 26 | + * @return Response |
|
| 27 | 27 | */ |
| 28 | 28 | public function pluginsAction() |
| 29 | 29 | { |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | * @Security("has_role('ROLE_ADMIN')") |
| 43 | 43 | * @Route("/plugins/add") |
| 44 | 44 | * |
| 45 | - * @return array |
|
| 45 | + * @return null|Response |
|
| 46 | 46 | */ |
| 47 | 47 | public function pluginsAddAction() |
| 48 | 48 | { |