Update "tools" directory to be compliant with the php-cs-fixer

This commit is contained in:
2023-04-13 21:53:13 +02:00
parent ba83207264
commit e719b3e11c
5 changed files with 791 additions and 715 deletions

View File

@@ -1,14 +1,18 @@
#!/usr/bin/php5
<?php
if (! isset ($argv[1]))
die ("No file to decode provided\n");
if (! isset($argv[1])) {
die("No file to decode provided\n");
}
$file = $argv[1];
if (! file_exists ($file))
die ("File $file not found\n");
if (! is_readable ($file))
die ("File $file not readable\n");
if (! is_writeable ($file))
die ("File $file not writeable\n");
if (! file_exists($file)) {
die("File $file not found\n");
}
if (! is_readable($file)) {
die("File $file not readable\n");
}
if (! is_writeable($file)) {
die("File $file not writeable\n");
}
print_r (json_decode (file_get_contents ($file)));
print_r(json_decode(file_get_contents($file)));