Skip to content
This repository was archived by the owner on Feb 8, 2019. It is now read-only.

Commit dc8c619

Browse files
committed
Fix
1 parent 45bb041 commit dc8c619

File tree

3 files changed

+2
-57
lines changed

3 files changed

+2
-57
lines changed

src/VectorNetworkProject/TheMix/lib/database/Provider.php

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -13,61 +13,6 @@
1313

1414
abstract class Provider
1515
{
16-
public function createTable()
17-
{
18-
throw new \Error("Missing method 'createTable'");
19-
}
20-
21-
public function deleteTable()
22-
{
23-
throw new \Error("Missing method 'deleteTable'");
24-
}
25-
26-
public function hasTable()
27-
{
28-
throw new \Error("Missing method 'hasTable'");
29-
}
30-
31-
public function create()
32-
{
33-
throw new \Error("Missing method 'create'");
34-
}
35-
36-
public function delete()
37-
{
38-
throw new \Error("Missing method 'delete'");
39-
}
40-
41-
public function has()
42-
{
43-
throw new \Error("Missing method 'has'");
44-
}
45-
46-
public function set()
47-
{
48-
throw new \Error("Missing method 'set'");
49-
}
50-
51-
public function remove()
52-
{
53-
throw new \Error("Missing method 'remove'");
54-
}
55-
56-
public function get()
57-
{
58-
throw new \Error("Missing method 'get'");
59-
}
60-
61-
public function getAll()
62-
{
63-
throw new \Error("Missing method 'getAll'");
64-
}
65-
66-
public function getKeys()
67-
{
68-
throw new \Error("Missing method 'getKeys'");
69-
}
70-
7116
protected static function getPath(string $folder, string $type): string
7217
{
7318
return TheMix::getInstance()->getDataFolder() . '/' . $folder . '/' . $type . '/';

src/VectorNetworkProject/TheMix/provider/JSON.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function getKeys(): array
110110
* @param string $key
111111
* @return bool
112112
*/
113-
public function has(string $key): bool
113+
public function exists(string $key): bool
114114
{
115115
$config = new Config($this->path . $this->file, Config::JSON);
116116
return $config->exists($key)

src/VectorNetworkProject/TheMix/provider/YAML.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function getKeys(): array
104104
* @param string $key
105105
* @return bool
106106
*/
107-
public function has(string $key): bool
107+
public function exists(string $key): bool
108108
{
109109
$config = new Config($this->path . $this->file, Config::YAML);
110110
return $config->exists($key)

0 commit comments

Comments
 (0)