File manager - Edit - /var/www/payraty/helpdesk/vendor/opcodesio/log-viewer/src/HostCollection.php
Back
<?php namespace Opcodes\LogViewer; use Illuminate\Support\Collection; class HostCollection extends Collection { public static function fromConfig(array $config = []): self { return new static(array_map( fn (array $hostConfig, $identifier) => Host::fromConfig($identifier, $hostConfig), $config, array_keys($config) )); } public function remote(): self { return $this->filter(fn (Host $host) => $host->isRemote()); } public function local(): self { return $this->filter(fn (Host $host) => ! $host->isRemote()); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings