summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model')
-rw-r--r--app/Model/Action.php4
-rw-r--r--app/Model/Board.php2
-rw-r--r--app/Model/DateParser.php2
3 files changed, 2 insertions, 6 deletions
diff --git a/app/Model/Action.php b/app/Model/Action.php
index 5e994c99..3759653d 100644
--- a/app/Model/Action.php
+++ b/app/Model/Action.php
@@ -216,7 +216,6 @@ class Action extends Base
*/
public function remove($action_id)
{
- // $this->container['fileCache']->remove('proxy_action_getAll');
return $this->db->table(self::TABLE)->eq('id', $action_id)->remove();
}
@@ -260,8 +259,6 @@ class Action extends Base
$this->db->closeTransaction();
- // $this->container['fileCache']->remove('proxy_action_getAll');
-
return $action_id;
}
@@ -272,7 +269,6 @@ class Action extends Base
*/
public function attachEvents()
{
- //$actions = $this->container['fileCache']->proxy('action', 'getAll');
$actions = $this->getAll();
foreach ($actions as $action) {
diff --git a/app/Model/Board.php b/app/Model/Board.php
index bcf77b3e..b1032e90 100644
--- a/app/Model/Board.php
+++ b/app/Model/Board.php
@@ -281,7 +281,7 @@ class Board extends Base
$sum = 0;
foreach ($tasks as $task) {
- $sum += $task['score'];
+ $sum += $task[$field];
}
return $sum;
diff --git a/app/Model/DateParser.php b/app/Model/DateParser.php
index 79a8385c..036725e3 100644
--- a/app/Model/DateParser.php
+++ b/app/Model/DateParser.php
@@ -100,7 +100,7 @@ class DateParser extends Base
* Get all combinations of date/time formats
*
* @access public
- * @return []string
+ * @return string[]
*/
public function getAllFormats()
{