mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
Merge pull request #348 from lbryio/refactor/asana.class
Add refactoring for Asana.class
This commit is contained in:
commit
5e1d289560
1 changed files with 2 additions and 2 deletions
4
lib/thirdparty/Asana.class.php
vendored
4
lib/thirdparty/Asana.class.php
vendored
|
@ -49,7 +49,7 @@ class Asana
|
|||
'group' => $tagLabel,
|
||||
'project_id' => $projectId,
|
||||
'assignee' => $fullTask['assignee'] ? ucwords($fullTask['assignee']['name']) : '',
|
||||
'quarter_date' => 'Q' . self::dateToQuarter($fullTask['due_on']) . ' ' . (string) date('Y', strtotime($fullTask['due_on']))
|
||||
'quarter_date' => 'Q' . static::dateToQuarter($fullTask['due_on']) . ' ' . (string) date('Y', strtotime($fullTask['due_on']))
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ class Asana
|
|||
// Converts date to quarter
|
||||
protected static function dateToQuarter($date)
|
||||
{
|
||||
return $quarter = (string)ceil(date('m', strtotime($date))/3);
|
||||
return (string)ceil(date('m', strtotime($date))/3);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue