Skip to content

Commit 2fa33db

Browse files
committed
refactoring
1 parent a3ad13d commit 2fa33db

2 files changed

Lines changed: 1 addition & 14 deletions

File tree

src/DataBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function save()
6969
foreach ($this->tables as $tabName => $table) {
7070
$result[$tabName] = $table->toArray();
7171
}
72-
72+
7373
ftruncate($this->dbFile, 0);
7474
rewind($this->dbFile);
7575
fwrite($this->dbFile, json_encode($result, JSON_PRETTY_PRINT));

src/JsonServer.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,6 @@
1212
*/
1313
class JsonServer
1414
{
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 = "";
2815

2916
/**
3017
* Request data

0 commit comments

Comments
 (0)