@@ -126,7 +126,7 @@ |
||
126 | 126 | } else { |
127 | 127 | $match = []; |
128 | 128 | if (preg_match('/NOW([+\-]\d+)/', $attrs['default'], $match) > 0) { |
129 | - $date = Registry::timestampFactory()->now()->addDays((int)$match[1]); |
|
129 | + $date = Registry::timestampFactory()->now()->addDays((int) $match[1]); |
|
130 | 130 | $this->input['default'] = strtoupper($date->format('d M Y')); |
131 | 131 | } else { |
132 | 132 | $this->input['default'] = $attrs['default']; |
@@ -85,9 +85,9 @@ |
||
85 | 85 | $filesystem = new Filesystem(new LocalFilesystemAdapter(self::ROOT_DIR)); |
86 | 86 | |
87 | 87 | $scripts = $filesystem->listContents('app', FilesystemReader::LIST_DEEP) |
88 | - ->filter(static fn (StorageAttributes $file): bool => $file->isFile()) |
|
89 | - ->map(static fn (StorageAttributes $file): string => $file->path()) |
|
90 | - ->filter(static fn (string $script): bool => !str_contains($script, 'Interface.php') && !str_contains($script, 'Abstract')); |
|
88 | + ->filter(static fn(StorageAttributes $file): bool => $file->isFile()) |
|
89 | + ->map(static fn(StorageAttributes $file): string => $file->path()) |
|
90 | + ->filter(static fn(string $script): bool => !str_contains($script, 'Interface.php') && !str_contains($script, 'Abstract')); |
|
91 | 91 | |
92 | 92 | foreach ($scripts as $script) { |
93 | 93 | $class = strtr($script, ['app/' => '', '.php' => '', '/' => '\\']); |