@@ -112,13 +112,18 @@ public static function canUpdate(): bool
112112 ));
113113 }
114114
115-
115+ /**
116+ * @return bool|int
117+ */
116118 public function canViewPrivates ()
117119 {
118120 return Session::haveRight (self ::$ rightname , self ::SEEPRIVATE );
119121 }
120122
121123
124+ /**
125+ * @return bool
126+ */
122127 public function canEditAll ()
123128 {
124129 return Session::haveRightsOr (self ::$ rightname , [CREATE , DELETE , PURGE , self ::UPDATEALL ]);
@@ -998,12 +1003,12 @@ public function rawSearchOptions()
9981003 }
9991004
10001005 /**
1001- * @since 0.85
1002- **/
1006+ * @param ?class-string<CommonDBTM> $itemtype
1007+ *
1008+ * @return array
1009+ */
10031010 public static function rawSearchOptionsToAdd ($ itemtype = null )
10041011 {
1005- global $ DB ;
1006-
10071012 $ task = new static ();
10081013 $ tab = [];
10091014 $ name = _n ('Task ' , 'Tasks ' , Session::getPluralNumber ());
@@ -1271,12 +1276,12 @@ public static function rawSearchOptionsToAdd($itemtype = null)
12711276 }
12721277
12731278 /**
1274- * Current dates are valid ? begin before end
1279+ * Current dates are valid? begin before end
12751280 *
1276- * @param $input
1281+ * @param array $input
12771282 *
1278- *@return boolean
1279- ** /
1283+ * @return bool
1284+ */
12801285 public function test_valid_date ($ input )
12811286 {
12821287
@@ -1669,10 +1674,11 @@ public static function genericDisplayPlanningItem($itemtype, array $val, $who, $
16691674
16701675 /** form for Task
16711676 *
1672- * @param $ID Integer : Id of the task
1673- * @param $options array
1674- * - parent Object : the object
1675- **/
1677+ * @param int $ID Id of the task
1678+ * @param array $options [parent Object : the object]
1679+ *
1680+ * @return true
1681+ */
16761682 public function showForm ($ ID , array $ options = [])
16771683 {
16781684 TemplateRenderer::getInstance ()->display ('components/itilobject/timeline/form_task.html.twig ' , [
@@ -1687,6 +1693,8 @@ public function showForm($ID, array $options = [])
16871693
16881694 /**
16891695 * Form for Ticket or Problem Task on Massive action
1696+ *
1697+ * @return void
16901698 */
16911699 public function showMassiveActionAddTaskForm ()
16921700 {
@@ -1714,6 +1722,11 @@ public function showMassiveActionAddTaskForm()
17141722 *
17151723 * @since 9.2
17161724 *
1725+ * @param string $status
1726+ * @param bool $showgrouptickets
1727+ * @param ?int $start
1728+ * @param ?int $limit
1729+ *
17171730 * @return DBmysqlIterator
17181731 */
17191732 public static function getTaskList ($ status , $ showgrouptickets , $ start = null , $ limit = null )
0 commit comments