OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
email
/
vendor
/
aws
/
aws-sdk-php
/
build
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/10/2024 05:23:06 AM
rwxr-xr-x
📄
Burgomaster.php
13.48 KB
07/10/2024 05:22:17 AM
rw-r--r--
📄
ClassAnnotationUpdater.php
3.3 KB
07/10/2024 05:22:17 AM
rw-r--r--
📄
ClientAnnotator.php
4.57 KB
07/10/2024 05:22:18 AM
rw-r--r--
📄
JsonCompiler.php
2.48 KB
07/10/2024 05:22:18 AM
rw-r--r--
📄
PhpFileLinterTrait.php
1.44 KB
07/10/2024 05:22:18 AM
rw-r--r--
📄
ServiceBuilder.php
1.85 KB
07/10/2024 05:22:18 AM
rw-r--r--
📄
annotate-client-locator.php
1.04 KB
07/10/2024 05:22:17 AM
rw-r--r--
📄
annotate-clients.php
2.74 KB
07/10/2024 05:22:17 AM
rw-r--r--
📄
aws-clear-cache.php
91 bytes
07/10/2024 05:22:17 AM
rw-r--r--
📄
build-manifest.php
3.57 KB
07/10/2024 05:22:17 AM
rw-r--r--
📄
build-redirect-map.php
343 bytes
07/10/2024 05:22:17 AM
rw-r--r--
📄
build-service.php
1015 bytes
07/10/2024 05:22:17 AM
rw-r--r--
📁
changelog
-
07/10/2024 05:23:06 AM
rwxr-xr-x
📄
compile-json.php
447 bytes
07/10/2024 05:22:18 AM
rw-r--r--
📁
docs
-
07/10/2024 05:28:28 AM
rwxr-xr-x
📄
docs.php
1.72 KB
07/10/2024 05:22:18 AM
rw-r--r--
📄
gh-release.php
6.01 KB
07/10/2024 05:22:18 AM
rw-r--r--
📄
normalize-docs-files.php
7.74 KB
07/10/2024 05:22:18 AM
rw-r--r--
📄
option-docs.php
1.21 KB
07/10/2024 05:22:18 AM
rw-r--r--
📄
packager.php
2.2 KB
07/10/2024 05:22:18 AM
rw-r--r--
📄
phar-test-runner.php
161 bytes
07/10/2024 05:22:18 AM
rw-r--r--
📄
remove-method-annotations.php
1.4 KB
07/10/2024 05:22:18 AM
rw-r--r--
📄
test-phar.php
1.05 KB
07/10/2024 05:22:18 AM
rw-r--r--
Editing: remove-method-annotations.php
Close
<?php /** * This script removes `@method` annotations on service client classes prior to doc generation. * Removing these annotations prevents phpDocumentor from generating documentation for service methods * on the client class. */ function removeMethodAnnotations($dir, $fileSuffix) { $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir)); foreach ($iterator as $file) { if ($file->isDir()) { continue; } if (str_ends_with($file->getPathname(), $fileSuffix)) { $filePath = $file->getRealPath(); $content = file_get_contents($filePath); // Regular expression to match @method annotations // This pattern assumes @method annotations may span multiple lines and are within comment blocks $pattern = '/\*\s+@method\s+[^\n]+\n/'; if (preg_match($pattern, $content)) { // Remove @method annotations $newContent = preg_replace($pattern, '', $content); // Write the clean content back to the file file_put_contents($filePath, $newContent); echo "Method annotations removed from: $filePath\n"; } } } } $directoryPath = __DIR__ . '/artifacts/staging/Aws'; $fileSuffix = 'Client.php'; removeMethodAnnotations($directoryPath, $fileSuffix);