/var/www/flurhymez/vendor/facade/ignition/src/SolutionProviders
NameSizeModeActions
BadMethodCallSolutionProvider.php22310644editdlrm
DefaultDbNameSolutionProvider.php8940644editdlrm
IncorrectValetDbCredentialsSolutionProvider.php16090644editdlrm
InvalidRouteActionSolutionProvider.php29230644editdlrm
LazyLoadingViolationSolutionProvider.php13770644editdlrm
MergeConflictSolutionProvider.php20730644editdlrm
MissingAppKeySolutionProvider.php6570644editdlrm
MissingColumnSolutionProvider.php9600644editdlrm
MissingImportSolutionProvider.php12710644editdlrm
MissingLivewireComponentSolutionProvider.php10770644editdlrm
MissingMixManifestSolutionProvider.php6950644editdlrm
MissingPackageSolutionProvider.php16220644editdlrm
RouteNotDefinedSolutionProvider.php20660644editdlrm
RunningLaravelDuskInProductionProvider.php10120644editdlrm
SolutionProviderRepository.php30190644editdlrm
TableNotFoundSolutionProvider.php9590644editdlrm
UndefinedPropertySolutionProvider.php30090644editdlrm
UndefinedVariableSolutionProvider.php30940644editdlrm
UnknownValidationSolutionProvider.php25820644editdlrm
ViewNotFoundSolutionProvider.php37380644editdlrm
Edit: /var/www/flurhymez/vendor/facade/ignition/src/SolutionProviders/MergeConflictSolutionProvider.php (2073B)
hasMergeConflictExceptionMessage($throwable)) { return false; } $file = file_get_contents($throwable->getFile()); if (strpos($file, '=======') === false) { return false; } if (strpos($file, '>>>>>>>') === false) { return false; } return true; } public function getSolutions(Throwable $throwable): array { $file = file_get_contents($throwable->getFile()); preg_match('/\>\>\>\>\>\>\> (.*?)\n/', $file, $matches); $source = $matches[1]; $target = $this->getCurrentBranch(basename($throwable->getFile())); return [ BaseSolution::create("Merge conflict from branch '$source' into $target") ->setSolutionDescription('You have a Git merge conflict. To undo your merge do `git reset --hard HEAD`'), ]; } protected function getCurrentBranch(string $directory): string { $branch = "'".trim(shell_exec("cd ${directory}; git branch | grep \\* | cut -d ' ' -f2"))."'"; if ($branch === "''") { $branch = 'current branch'; } return $branch; } protected function hasMergeConflictExceptionMessage(Throwable $throwable): bool { // For PHP 7.x and below if (Str::startsWith($throwable->getMessage(), 'syntax error, unexpected \'<<\'')) { return true; } // For PHP 8+ if (Str::startsWith($throwable->getMessage(), 'syntax error, unexpected token "<<"')) { return true; } return false; } }