Commit 7282fd54 authored by dmorley's avatar dmorley

spaces after commas that phpstorm does not even show me :(

parent 8531668d
Pipeline #584 passed with stage
in 3 minutes and 34 seconds
......@@ -6,7 +6,6 @@
declare(strict_types=1);
use Carbon\Carbon;
use RedBeanPHP\R;
require_once __DIR__ . '/boot.php';
......@@ -140,7 +139,7 @@ $navs = [
</div>
</main>
<footer class="ml-3 text-muted">
<small>Data refreshed <?php echo Carbon::createFromFormat('Y-m-d H:i:s.u', getMeta('pods_updated','date_created'))->diffForHumans(); ?></small>
<small>Data refreshed <?php echo Carbon::createFromFormat('Y-m-d H:i:s.u', getMeta('pods_updated', 'date_created'))->diffForHumans(); ?></small>
</footer>
<input type="hidden" name="input" value="<?php echo $input ?>"/>
<script src="node_modules/jquery/dist/jquery.min.js"></script>
......
......@@ -5,9 +5,8 @@ declare(strict_types=1);
require_once __DIR__ . '/boot.php';
use Carbon\Carbon;
use RedBeanPHP\R;
$pods_updated_stats = Carbon::createFromFormat('Y-m-d H:i:s.u', getMeta('pods_updated','date_created'))->diffInMinutes();
$pods_updated_stats = Carbon::createFromFormat('Y-m-d H:i:s.u', getMeta('pods_updated', 'date_created'))->diffInMinutes();
echo "<small>";
if ($pods_updated_stats < 120) {
echo "System status is Green<br>";
......@@ -18,10 +17,10 @@ echo "Last Update was " . $pods_updated_stats . " minutes<br>";
echo "Last Update run duration was " . getMeta('pods_update_runtime') . " minutes<br>";
$lang_updated_stats = Carbon::createFromFormat('Y-m-d H:i:s.u', getMeta('languages_updated','date_created'))->diffInHours();
$lang_updated_stats = Carbon::createFromFormat('Y-m-d H:i:s.u', getMeta('languages_updated', 'date_created'))->diffInHours();
echo "Last Language check was " . $lang_updated_stats . " hours<br>";
$back_updated_stats = Carbon::createFromFormat('Y-m-d H:i:s.u', getMeta('backup','date_created'))->diffInMinutes();
$back_updated_stats = Carbon::createFromFormat('Y-m-d H:i:s.u', getMeta('backup', 'date_created'))->diffInMinutes();
echo "Last SQL Backup was " . $back_updated_stats . " minutes<br>";
echo "</small>";
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment