Skip to content

Commit caf15de

Browse files
committed
Fix #140
1 parent d02a3b2 commit caf15de

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

src/Ticket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

src/TicketTask.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/*
34
* @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
45
-------------------------------------------------------------------------
@@ -41,33 +42,32 @@
4142
*/
4243
class 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

0 commit comments

Comments
 (0)