From 19961a3447ec5d63f4194c3b3213f663ca750fbe Mon Sep 17 00:00:00 2001 From: Andrew Collington Date: Sat, 16 Jul 2022 16:19:55 +0100 Subject: [PATCH] Update version before I forget --- build/build.php | 2 +- build/template.phps | 2 +- composer.json | 1 + index.php | 11 ++++++----- package.json | 2 +- src/Opcache/Service.php | 2 +- 6 files changed, 11 insertions(+), 9 deletions(-) diff --git a/build/build.php b/build/build.php index 8250b63..a990453 100644 --- a/build/build.php +++ b/build/build.php @@ -4,7 +4,7 @@ * OPcache GUI - build script * * @author Andrew Collington, andy@amnuts.com - * @version 3.3.1 + * @version 3.4.0 * @link https://github.com/amnuts/opcache-gui * @license MIT, https://acollington.mit-license.org/ */ diff --git a/build/template.phps b/build/template.phps index 7a224c0..4440269 100644 --- a/build/template.phps +++ b/build/template.phps @@ -8,7 +8,7 @@ namespace Amnuts\Opcache; * A simple but effective single-file GUI for the OPcache PHP extension. * * @author Andrew Collington, andy@amnuts.com - * @version 3.3.1 + * @version 3.4.0 * @link https://github.com/amnuts/opcache-gui * @license MIT, https://acollington.mit-license.org/ */ diff --git a/composer.json b/composer.json index d408acc..c4e2360 100644 --- a/composer.json +++ b/composer.json @@ -4,6 +4,7 @@ "keywords": ["opcache", "cache", "gui", "opcodes", "interface"], "minimum-stability": "stable", "license": "MIT", + "version": "3.4.0", "authors": [ { "name": "Andrew Collington", diff --git a/index.php b/index.php index 7052bee..6703727 100644 --- a/index.php +++ b/index.php @@ -8,7 +8,7 @@ namespace Amnuts\Opcache; * A simple but effective single-file GUI for the OPcache PHP extension. * * @author Andrew Collington, andy@amnuts.com - * @version 3.3.1 + * @version 3.4.0 * @link https://github.com/amnuts/opcache-gui * @license MIT, https://acollington.mit-license.org/ */ @@ -62,7 +62,7 @@ use Exception; class Service { - public const VERSION = '3.3.1'; + public const VERSION = '3.4.0'; protected $data; protected $options; @@ -135,6 +135,7 @@ class Service /** * Service constructor. * @param array $options + * @throws Exception */ public function __construct(array $options = []) { @@ -354,7 +355,7 @@ class Service 'start_time' => (new DateTimeImmutable("@{$status['opcache_statistics']['start_time']}")) ->setTimezone(new DateTimeZone(date_default_timezone_get())) ->format('Y-m-d H:i:s'), - 'last_restart_time' => ($status['opcache_statistics']['last_restart_time'] == 0 + 'last_restart_time' => ($status['opcache_statistics']['last_restart_time'] === 0 ? 'never' : (new DateTimeImmutable("@{$status['opcache_statistics']['last_restart_time']}")) ->setTimezone(new DateTimeZone(date_default_timezone_get())) @@ -483,7 +484,7 @@ $opcache = (new Service($options))->handle(); - + \ No newline at end of file diff --git a/package.json b/package.json index c5e0c2c..8e7660e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "opcache-gui", "description": "A clean and responsive interface for Zend OPcache information, showing statistics, settings and cached files, and providing a real-time update for the information (using jQuery and React).", - "version": "3.3.0", + "version": "3.4.0", "main": "index.js", "devDependencies": { "@babel/cli": "^7.12.8", diff --git a/src/Opcache/Service.php b/src/Opcache/Service.php index 7040606..f521f4a 100644 --- a/src/Opcache/Service.php +++ b/src/Opcache/Service.php @@ -8,7 +8,7 @@ use Exception; class Service { - public const VERSION = '3.3.1'; + public const VERSION = '3.4.0'; protected $data; protected $options;