Cybrkyd's Git Repositories

hits-php - commit: 209ba33

commit 209ba332c0b3733c90eea98c978da1ae9c618e4a8c741e91dfdc9b80d2c0320b
author Cybrkyd <git@cybrkyd.com> 2026-06-28 11:09:35 +0100
committer Cybrkyd <git@cybrkyd.com> 2026-06-28 11:09:35 +0100

Commit Message

JSON_PRETTY_PRINT

📊 Diffstat

hits.php 2
1 files changed, 1 insertions(+), 1 deletions(-)

Diff

diff --git a/hits.php b/hits.php
index 61c5e8c..47e2f0b 100644
--- a/hits.php
+++ b/hits.php
@@ -44,7 +44,7 @@ foreach ($data[$path] as $key => $val) {
}
// Save data
- file_put_contents($data_file, json_encode($data));
+ file_put_contents($data_file, json_encode($data, JSON_PRETTY_PRINT));
flock($lock, LOCK_UN);
fclose($lock);