📁
SKYSHELL MANAGER
PHP v8.2.31
Create
Create
Path:
root
/
home
/
thevaxnx
/
nativize.com
/
staging
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
wp-links-opml.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: CertificateView.php
<?php namespace App\Model; class CertificateView { private const SECONDS_IN_DAY = 86400; public function __construct(private readonly array $certificate) {} public function calculateCertificateRemainingDays(): ?int { if (!isset($this->certificate['expires'])) { return null; } return max( 0, (int) ceil((($this->certificate['expires'] ?? 0) - time()) / self::SECONDS_IN_DAY) ); } public function calculateSubscriptionRemainingDays(): ?int { if (!isset($this->certificate['subscription_expires'])) { return null; } return max( 0, (int) ceil(($this->certificate['subscription_expires'] - time()) / self::SECONDS_IN_DAY) ); } public function __get(string $name): mixed { return $this->certificate[$name] ?? null; } public function __isset(string $name): bool { return isset($this->certificate[$name]); } }
Save