summaryrefslogtreecommitdiff
path: root/app/Formatter/ProjectApiApiFormatter.php
diff options
context:
space:
mode:
authorAnthony Legiret <anleg@smile.fr>2017-11-03 09:25:04 +0100
committerfguillot <fred@kanboard.net>2017-11-03 10:27:56 -0700
commit09a7f9ef85c192df9e870310d383f10fa844264d (patch)
tree732ae99831a8bacda6dbac33b91cbf1e663f0de4 /app/Formatter/ProjectApiApiFormatter.php
parent648dc6bcfbdd44947ec58e2f3662c1cc3844d782 (diff)
Correct ProjectApiFormatter file name
Diffstat (limited to 'app/Formatter/ProjectApiApiFormatter.php')
-rw-r--r--app/Formatter/ProjectApiApiFormatter.php39
1 files changed, 0 insertions, 39 deletions
diff --git a/app/Formatter/ProjectApiApiFormatter.php b/app/Formatter/ProjectApiApiFormatter.php
deleted file mode 100644
index 5521d57c..00000000
--- a/app/Formatter/ProjectApiApiFormatter.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-namespace Kanboard\Formatter;
-
-use Kanboard\Core\Filter\FormatterInterface;
-
-/**
- * Class ProjectApiFormatter
- *
- * @package Kanboard\Formatter
- */
-class ProjectApiFormatter extends BaseFormatter implements FormatterInterface
-{
- protected $project = null;
-
- public function withProject($project)
- {
- $this->project = $project;
- return $this;
- }
-
- /**
- * Apply formatter
- *
- * @access public
- * @return mixed
- */
- public function format()
- {
- if (! empty($this->project)) {
- $this->project['url'] = array(
- 'board' => $this->helper->url->to('BoardViewController', 'show', array('project_id' => $this->project['id']), '', true),
- 'list' => $this->helper->url->to('TaskListController', 'show', array('project_id' => $this->project['id']), '', true),
- );
- }
-
- return $this->project;
- }
-}