Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions generated/Exceptions/CurlException.php

This file was deleted.

6 changes: 0 additions & 6 deletions generated/Exceptions/JsonException.php

This file was deleted.

3 changes: 2 additions & 1 deletion generator/src/FileCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use function array_merge;
use Complex\Exception;
use function file_exists;
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
use function ucfirst;
Expand Down Expand Up @@ -145,7 +146,7 @@ public function generateRectorFile(array $functions, string $path): void
public function createExceptionFile(string $moduleName): void
{
$exceptionName = self::toExceptionName($moduleName);
if (!\class_exists("Safe\\Exceptions\\{$exceptionName}")) {
if (!file_exists(__DIR__.'/../../lib/Exceptions/'.$exceptionName.'.php')) {
\file_put_contents(
__DIR__.'/../../generated/Exceptions/'.$exceptionName.'.php',
<<<EOF
Expand Down