🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-14 20:19:06 | PHP 8.1.34
📂
/ (Root)
/
opt
/
cpanel
/
ea-wappspector
/
src
/
Matchers
📍 /opt/cpanel/ea-wappspector/src/Matchers
🔄 Refresh
✏️
Editing: EmDash.php
Read Only
<?php declare(strict_types=1); namespace Plesk\Wappspector\Matchers; use League\Flysystem\Filesystem; use Plesk\Wappspector\MatchResult\EmDash as MatchResult; use Plesk\Wappspector\MatchResult\EmptyMatchResult; use Plesk\Wappspector\MatchResult\MatchResultInterface; class EmDash implements MatcherInterface { public function match(Filesystem $fs, string $path): MatchResultInterface { $packageJsonPath = rtrim($path, '/') . '/package.json'; if (!$fs->fileExists($packageJsonPath)) { return new EmptyMatchResult(); } $json = json_decode($fs->read($packageJsonPath), true); return is_array($json) && (isset($json['emdash']) || isset($json['dependencies']['emdash'])) ? new MatchResult($path) : new EmptyMatchResult(); } }
💾 Save Changes
❌ Cancel