@@ -240,7 +240,7 @@ |
||
| 240 | 240 | /** |
| 241 | 241 | * Run the application. |
| 242 | 242 | */ |
| 243 | - public function run(string $php_sapi): int|ResponseInterface |
|
| 243 | + public function run(string $php_sapi): int | ResponseInterface |
|
| 244 | 244 | { |
| 245 | 245 | if ($php_sapi === 'cli') { |
| 246 | 246 | return $this->bootstrap()->cliRequest(); |
@@ -72,11 +72,11 @@ |
||
| 72 | 72 | $user->realName(), |
| 73 | 73 | $user->email(), |
| 74 | 74 | Auth::isAdmin(user: $user) ? 'Yes' : 'No', |
| 75 | - $user->getPreference(setting_name: UserInterface::PREF_IS_ACCOUNT_APPROVED) ? 'Yes' : 'No', |
|
| 76 | - $user->getPreference(setting_name: UserInterface::PREF_IS_EMAIL_VERIFIED) ? 'Yes' : 'No', |
|
| 77 | - $user->getPreference(setting_name: UserInterface::PREF_LANGUAGE), |
|
| 78 | - $user->getPreference(setting_name: UserInterface::PREF_TIME_ZONE), |
|
| 79 | - $user->getPreference(setting_name: UserInterface::PREF_CONTACT_METHOD), |
|
| 75 | + $user->getPreference(setting_name : UserInterface::PREF_IS_ACCOUNT_APPROVED) ? 'Yes' : 'No', |
|
| 76 | + $user->getPreference(setting_name : UserInterface::PREF_IS_EMAIL_VERIFIED) ? 'Yes' : 'No', |
|
| 77 | + $user->getPreference(setting_name : UserInterface::PREF_LANGUAGE), |
|
| 78 | + $user->getPreference(setting_name : UserInterface::PREF_TIME_ZONE), |
|
| 79 | + $user->getPreference(setting_name : UserInterface::PREF_CONTACT_METHOD), |
|
| 80 | 80 | $registered, |
| 81 | 81 | $last_login, |
| 82 | 82 | ]); |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | $mime_type = Mime::DEFAULT_TYPE; |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | - $filename = $download ? addcslashes(string: basename(path: $path), characters: '"') : ''; |
|
| 91 | + $filename = $download ? addcslashes(string : basename(path : $path), characters : '"') : ''; |
|
| 92 | 92 | |
| 93 | 93 | return $this->imageResponse(data: $filesystem->read(location: $path), mime_type: $mime_type, filename: $filename); |
| 94 | 94 | } catch (UnableToReadFile | FilesystemException $ex) { |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | $image = $this->imageManager()->read(input: $filesystem->readStream($path)); |
| 148 | 148 | $watermark = $this->createWatermark(width: $image->width(), height: $image->height(), media_file: $media_file); |
| 149 | 149 | $image = $this->addWatermark(image: $image, watermark: $watermark); |
| 150 | - $filename = $download ? basename(path: $path) : ''; |
|
| 150 | + $filename = $download ? basename(path : $path) : ''; |
|
| 151 | 151 | $quality = $this->extractImageQuality(image: $image, default: static::GD_DEFAULT_IMAGE_QUALITY); |
| 152 | 152 | $data = $image->encodeByMediaType(type: $mime_type, quality: $quality)->toString(); |
| 153 | 153 | |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | declare(strict_types=1); |
| 4 | 4 | |
| 5 | -return array ( |
|
| 5 | +return array( |
|
| 6 | 6 | '%H:%i:%s' => '%g:%i:%s %a', |
| 7 | 7 | '%j %F %Y' => '%F %j, %Y', |
| 8 | 8 | 'Asunción, Paraguay' => 'Asuncion, Paraguay', |