PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/mytube.pm/wp-content/plugins/wp-simple-firewall/src/lib/src/Scans/Wcf/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/mytube.pm/wp-content/plugins/wp-simple-firewall/src/lib/src/Scans/Wcf/ResultsSet.php |
<?php namespace FernleafSystems\Wordpress\Plugin\Shield\Scans\Wcf; use FernleafSystems\Wordpress\Plugin\Shield\Scans\Base; /** * Class ResultsSet * @property ResultItem[] $items * @package FernleafSystems\Wordpress\Plugin\Shield\Scans\Wcf */ class ResultsSet extends Base\ResultsSet { /** * @param ResultItem[] $items * @return string[] */ public function filterItemsForPaths( $items ) { return array_map( function ( $item ) { return $item->path_fragment; }, $items ); } /** * @return ResultItem[] */ public function getChecksumFailedItems() { return array_values( array_filter( $this->getItems(), function ( $oItem ) { /** @var ResultItem $oItem */ return $oItem->is_checksumfail; } ) ); } /** * @return string[] */ public function getChecksumFailedPaths() { return $this->filterItemsForPaths( $this->getChecksumFailedItems() ); } /** * @return ResultItem[] */ public function getMissingItems() { return array_values( array_filter( $this->getItems(), function ( $oItem ) { /** @var ResultItem $oItem */ return $oItem->is_missing; } ) ); } /** * @return string[] */ public function getMissingPaths() { return $this->filterItemsForPaths( $this->getMissingItems() ); } /** * @return int */ public function countChecksumFailed() { return count( $this->getChecksumFailedItems() ); } /** * @return int */ public function countMissing() { return count( $this->getMissingItems() ); } /** * @return bool */ public function hasChecksumFailed() { return $this->countChecksumFailed() > 0; } /** * @return bool */ public function hasMissing() { return $this->countMissing() > 0; } }