summaryrefslogtreecommitdiff
path: root/app/Model/GithubWebhook.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-10-12 15:32:35 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-10-12 15:32:35 -0400
commit4061927d215c846ff8eb196301bf61532018042b (patch)
tree0e14a0e458ee8739754f75f8c158cc42a9b593a4 /app/Model/GithubWebhook.php
parentb7060b33ef317eeac576c504b1fb840d4471e411 (diff)
Move some Task model methods to the TaskFinder class
Diffstat (limited to 'app/Model/GithubWebhook.php')
-rw-r--r--app/Model/GithubWebhook.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/Model/GithubWebhook.php b/app/Model/GithubWebhook.php
index b5f95eeb..6624a782 100644
--- a/app/Model/GithubWebhook.php
+++ b/app/Model/GithubWebhook.php
@@ -77,7 +77,7 @@ class GithubWebhook extends Base
continue;
}
- $task = $this->task->getById($task_id);
+ $task = $this->taskFinder->getById($task_id);
if (! $task) {
continue;
@@ -148,7 +148,7 @@ class GithubWebhook extends Base
*/
public function handleIssueClosed(array $issue)
{
- $task = $this->task->getByReference($issue['number']);
+ $task = $this->taskFinder->getByReference($issue['number']);
if ($task) {
$event = array(
@@ -169,7 +169,7 @@ class GithubWebhook extends Base
*/
public function handleIssueReopened(array $issue)
{
- $task = $this->task->getByReference($issue['number']);
+ $task = $this->taskFinder->getByReference($issue['number']);
if ($task) {
$event = array(
@@ -191,7 +191,7 @@ class GithubWebhook extends Base
public function handleIssueAssigned(array $issue)
{
$user = $this->user->getByUsername($issue['assignee']['login']);
- $task = $this->task->getByReference($issue['number']);
+ $task = $this->taskFinder->getByReference($issue['number']);
if ($user && $task) {
@@ -214,7 +214,7 @@ class GithubWebhook extends Base
*/
public function handleIssueUnassigned(array $issue)
{
- $task = $this->task->getByReference($issue['number']);
+ $task = $this->taskFinder->getByReference($issue['number']);
if ($task) {
@@ -238,7 +238,7 @@ class GithubWebhook extends Base
*/
public function handleIssueLabeled(array $issue, array $label)
{
- $task = $this->task->getByReference($issue['number']);
+ $task = $this->taskFinder->getByReference($issue['number']);
if ($task) {
@@ -262,7 +262,7 @@ class GithubWebhook extends Base
*/
public function handleIssueUnlabeled(array $issue, array $label)
{
- $task = $this->task->getByReference($issue['number']);
+ $task = $this->taskFinder->getByReference($issue['number']);
if ($task) {