Skip to content
Snippets Groups Projects
Unverified Commit 1ddf2b79 authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Fix incorrect use of 'self::'

parent a6d1a875
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,7 @@ class SQLPermanentStorage ...@@ -98,7 +98,7 @@ class SQLPermanentStorage
public function get($type = null, $key1 = null, $key2 = null) public function get($type = null, $key1 = null, $key2 = null)
{ {
$conditions = self::getCondition($type, $key1, $key2); $conditions = $this->getCondition($type, $key1, $key2);
$query = 'SELECT * FROM data WHERE '.$conditions; $query = 'SELECT * FROM data WHERE '.$conditions;
$prepared = $this->db->prepare($query); $prepared = $this->db->prepare($query);
...@@ -137,7 +137,7 @@ class SQLPermanentStorage ...@@ -137,7 +137,7 @@ class SQLPermanentStorage
public function getList($type = null, $key1 = null, $key2 = null) public function getList($type = null, $key1 = null, $key2 = null)
{ {
$conditions = self::getCondition($type, $key1, $key2); $conditions = $this->getCondition($type, $key1, $key2);
$query = 'SELECT * FROM data WHERE '.$conditions; $query = 'SELECT * FROM data WHERE '.$conditions;
$prepared = $this->db->prepare($query); $prepared = $this->db->prepare($query);
$prepared->execute(); $prepared->execute();
...@@ -159,7 +159,7 @@ class SQLPermanentStorage ...@@ -159,7 +159,7 @@ class SQLPermanentStorage
throw new \Exception('Invalid key type'); throw new \Exception('Invalid key type');
} }
$conditions = self::getCondition($type, $key1, $key2); $conditions = $this->getCondition($type, $key1, $key2);
$query = 'SELECT DISTINCT :whichKey FROM data WHERE '.$conditions; $query = 'SELECT DISTINCT :whichKey FROM data WHERE '.$conditions;
$prepared = $this->db->prepare($query); $prepared = $this->db->prepare($query);
$data = array('whichKey' => $whichKey); $data = array('whichKey' => $whichKey);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment