We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3ad13d commit 2fa33dbCopy full SHA for 2fa33db
2 files changed
src/DataBase.php
@@ -69,7 +69,7 @@ public function save()
69
foreach ($this->tables as $tabName => $table) {
70
$result[$tabName] = $table->toArray();
71
}
72
-
+
73
ftruncate($this->dbFile, 0);
74
rewind($this->dbFile);
75
fwrite($this->dbFile, json_encode($result, JSON_PRETTY_PRINT));
src/JsonServer.php
@@ -12,19 +12,6 @@
12
*/
13
class JsonServer
14
{
15
- /**
16
- * Array of entities and ids, that need to retrieve
17
- *
18
- * @var array
19
- */
20
- private $params = [];
21
22
23
- * Path to resource
24
25
- * @var string
26
27
- private $path = "";
28
29
/**
30
* Request data
0 commit comments