REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.17 KB
Close
/opt/cpanel/ea-wappspector/vendor/rector/rector/src/ChangesReporting/ValueObjectFactory/ErrorFactory.php
Text
Base64
<?php declare (strict_types=1); namespace Rector\ChangesReporting\ValueObjectFactory; use PHPStan\AnalysedCodeException; use Rector\FileSystem\FilePathHelper; use Rector\ValueObject\Error\SystemError; final class ErrorFactory { /** * @readonly * @var \Rector\FileSystem\FilePathHelper */ private $filePathHelper; public function __construct(FilePathHelper $filePathHelper) { $this->filePathHelper = $filePathHelper; } public function createAutoloadError(AnalysedCodeException $analysedCodeException, string $filePath) : SystemError { $message = $this->createExceptionMessage($analysedCodeException); $relativeFilePath = $this->filePathHelper->relativePath($filePath); return new SystemError($message, $relativeFilePath); } private function createExceptionMessage(AnalysedCodeException $analysedCodeException) : string { return \sprintf('Analyze error: "%s". Include your files in "$rectorConfig->autoloadPaths([...]);" or "$rectorConfig->bootstrapFiles([...]);" in "rector.php" config.%sSee https://github.com/rectorphp/rector#configuration', $analysedCodeException->getMessage(), \PHP_EOL); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
ErrorFactory.php
1.17 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
FileDiffFactory.php
1.67 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).