Преглед изворни кода

Update version before I forget

Andrew Collington пре 3 година
родитељ
комит
19961a3447
6 измењених фајлова са 11 додато и 9 уклоњено
  1. 1 1
      build/build.php
  2. 1 1
      build/template.phps
  3. 1 0
      composer.json
  4. 6 5
      index.php
  5. 1 1
      package.json
  6. 1 1
      src/Opcache/Service.php

+ 1 - 1
build/build.php

@@ -4,7 +4,7 @@
  * OPcache GUI - build script
  * OPcache GUI - build script
  *
  *
  * @author Andrew Collington, andy@amnuts.com
  * @author Andrew Collington, andy@amnuts.com
- * @version 3.3.1
+ * @version 3.4.0
  * @link https://github.com/amnuts/opcache-gui
  * @link https://github.com/amnuts/opcache-gui
  * @license MIT, https://acollington.mit-license.org/
  * @license MIT, https://acollington.mit-license.org/
  */
  */

+ 1 - 1
build/template.phps

@@ -8,7 +8,7 @@ namespace Amnuts\Opcache;
  * A simple but effective single-file GUI for the OPcache PHP extension.
  * A simple but effective single-file GUI for the OPcache PHP extension.
  *
  *
  * @author Andrew Collington, andy@amnuts.com
  * @author Andrew Collington, andy@amnuts.com
- * @version 3.3.1
+ * @version 3.4.0
  * @link https://github.com/amnuts/opcache-gui
  * @link https://github.com/amnuts/opcache-gui
  * @license MIT, https://acollington.mit-license.org/
  * @license MIT, https://acollington.mit-license.org/
  */
  */

+ 1 - 0
composer.json

@@ -4,6 +4,7 @@
   "keywords": ["opcache", "cache", "gui", "opcodes", "interface"],
   "keywords": ["opcache", "cache", "gui", "opcodes", "interface"],
   "minimum-stability": "stable",
   "minimum-stability": "stable",
   "license": "MIT",
   "license": "MIT",
+  "version": "3.4.0",
   "authors": [
   "authors": [
     {
     {
       "name": "Andrew Collington",
       "name": "Andrew Collington",

+ 6 - 5
index.php

@@ -8,7 +8,7 @@ namespace Amnuts\Opcache;
  * A simple but effective single-file GUI for the OPcache PHP extension.
  * A simple but effective single-file GUI for the OPcache PHP extension.
  *
  *
  * @author Andrew Collington, andy@amnuts.com
  * @author Andrew Collington, andy@amnuts.com
- * @version 3.3.1
+ * @version 3.4.0
  * @link https://github.com/amnuts/opcache-gui
  * @link https://github.com/amnuts/opcache-gui
  * @license MIT, https://acollington.mit-license.org/
  * @license MIT, https://acollington.mit-license.org/
  */
  */
@@ -62,7 +62,7 @@ use Exception;
 
 
 class Service
 class Service
 {
 {
-    public const VERSION = '3.3.1';
+    public const VERSION = '3.4.0';
 
 
     protected $data;
     protected $data;
     protected $options;
     protected $options;
@@ -135,6 +135,7 @@ class Service
     /**
     /**
      * Service constructor.
      * Service constructor.
      * @param array $options
      * @param array $options
+     * @throws Exception
      */
      */
     public function __construct(array $options = [])
     public function __construct(array $options = [])
     {
     {
@@ -354,7 +355,7 @@ class Service
                         'start_time' => (new DateTimeImmutable("@{$status['opcache_statistics']['start_time']}"))
                         'start_time' => (new DateTimeImmutable("@{$status['opcache_statistics']['start_time']}"))
                             ->setTimezone(new DateTimeZone(date_default_timezone_get()))
                             ->setTimezone(new DateTimeZone(date_default_timezone_get()))
                             ->format('Y-m-d H:i:s'),
                             ->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'
                             ? 'never'
                             : (new DateTimeImmutable("@{$status['opcache_statistics']['last_restart_time']}"))
                             : (new DateTimeImmutable("@{$status['opcache_statistics']['last_restart_time']}"))
                                 ->setTimezone(new DateTimeZone(date_default_timezone_get()))
                                 ->setTimezone(new DateTimeZone(date_default_timezone_get()))
@@ -483,7 +484,7 @@ $opcache = (new Service($options))->handle();
 
 
     <script type="text/javascript">
     <script type="text/javascript">
 
 
-    function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
+    function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
 
 
 function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
 function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
 
 
@@ -1699,4 +1700,4 @@ function debounce(func, wait, immediate) {
     </script>
     </script>
 
 
 </body>
 </body>
-</html>
+</html>

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
 {
   "name": "opcache-gui",
   "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).",
   "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",
   "main": "index.js",
   "devDependencies": {
   "devDependencies": {
     "@babel/cli": "^7.12.8",
     "@babel/cli": "^7.12.8",

+ 1 - 1
src/Opcache/Service.php

@@ -8,7 +8,7 @@ use Exception;
 
 
 class Service
 class Service
 {
 {
-    public const VERSION = '3.3.1';
+    public const VERSION = '3.4.0';
 
 
     protected $data;
     protected $data;
     protected $options;
     protected $options;