| @@ -26,9 +26,9 @@ | ||
| 26 | 26 | private static Stopwatch $stopwatch; |
| 27 | 27 | /** |
| 28 | 28 | * Get the stopwatch instance. |
| 29 | 29 | */ |
| 30 | - public static function stopwatch() : Stopwatch | |
| 30 | + public static function stopwatch(): Stopwatch | |
| 31 | 31 | { |
| 32 | 32 | if (!isset(self::$stopwatch)) { |
| 33 | 33 | self::$stopwatch = new Stopwatch(\true); |
| 34 | 34 | } |
| @@ -45,14 +45,14 @@ | ||
| 45 | 45 | $stopwatchEvent = self::stopwatch()->getSectionEvents('__root__'); |
| 46 | 46 | if ($stopwatchEvent === []) { |
| 47 | 47 | return; |
| 48 | 48 | } |
| 49 | - $log = '=== ' . \gmdate('Y-m-d H:i:s', \time()) . ' ===' . \PHP_EOL; | |
| 49 | + $log = '=== ' . gmdate('Y-m-d H:i:s', time()) . ' ===' . \PHP_EOL; | |
| 50 | 50 | foreach ($stopwatchEvent as $ev) { |
| 51 | 51 | $log .= (string) $ev . \PHP_EOL; |
| 52 | 52 | } |
| 53 | 53 | $log .= \PHP_EOL; |
| 54 | - $path = \wp_upload_dir()['basedir'] . '/windpress/debug/stopwatch.log'; | |
| 54 | + $path = wp_upload_dir()['basedir'] . '/windpress/debug/stopwatch.log'; | |
| 55 | 55 | try { |
| 56 | 56 | \WindPress\WindPress\Utils\Common::save_file($log, $path, \FILE_APPEND); |
| 57 | 57 | } catch (Throwable $throwable) { |
| 58 | 58 | } |