File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ public static function afterAddDocument(Document $document)
318318 $ doc = $ document ;
319319 }
320320
321- public static function afterAddTask (TicketTask $ task )
321+ public static function afterAddTask (\ TicketTask $ task )
322322 {
323323 global $ DB ;
324324 $ config = new Config ();
Original file line number Diff line number Diff line change 11<?php
2+
23/*
34 * @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
45 -------------------------------------------------------------------------
4142 */
4243class TicketTask extends CommonITILTask
4344{
44-
4545 public static $ rightname = "plugin_moreticket " ;
4646
47- /**
48- * functions mandatory
49- * getTypeName(), canCreate(), canView()
50- *
51- * @param int $nb
52- *
53- * @return string
54- */
47+ /**
48+ * functions mandatory
49+ * getTypeName(), canCreate(), canView()
50+ *
51+ * @param int $nb
52+ *
53+ * @return string
54+ */
5555 public static function getTypeName ($ nb = 0 )
5656 {
5757
5858 return _n ('Ticket ' , 'Tickets ' , $ nb );
5959 }
6060
61- /**
62- * @param TicketTask $tickettask
63- *
64- * @return bool
65- */
66- public static function beforeAdd (TicketTask $ tickettask )
61+ /**
62+ * @param TicketTask $tickettask
63+ *
64+ * @return bool
65+ */
66+ public static function beforeAdd (\ TicketTask $ tickettask )
6767 {
6868
6969 if (!is_array ($ tickettask ->input ) || !count ($ tickettask ->input )) {
70- // Already cancel by another plugin
70+ // Already cancel by another plugin
7171 return false ;
7272 }
7373
You can’t perform that action at this time.
0 commit comments