📂 FileMgr
📍
/
opt
/
cpanel
/
ea-wappspector
/
src
/
Helper
✏️ /opt/cpanel/ea-wappspector/src/Helper/InspectorHelper.php
✕ Tutup
<?php // Copyright 1999-2024. WebPros International GmbH. All rights reserved. declare(strict_types=1); namespace Plesk\Wappspector\Helper; use League\Flysystem\Filesystem; class InspectorHelper { public function fileContentContainsString(string $fileContent, string $searchString): bool { return str_contains($fileContent, $searchString); } public function fileContentMatchesString(string $fileContent, string $searchPattern): bool { return preg_match($searchPattern, $fileContent) === 1; } public function fileContainsString(Filesystem $fs, string $filePath, string $searchString): bool { return $fs->fileExists($filePath) && str_contains($fs->read($filePath), $searchString); } }
💾 Simpan
Batal
⬅ src
1 item
Nama
Tipe
Ukuran
Diubah
Perm
Aksi
🐘
InspectorHelper.php
php
748 B
19/05/26 02:31
0644
✏️
⬇
🔤
🔑
🗑
✏️ Rename
Nama Baru
Simpan
Batal
🔑 Ubah Permission
Octal (mis: 0755)
Terapkan
Batal