mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-11 15:28:40 +00:00
rector fixes
This commit is contained in:
parent
5c4c40345d
commit
7b91217ccc
|
|
@ -208,7 +208,7 @@ final class ApiController extends Controller
|
|||
}
|
||||
}
|
||||
|
||||
$profile->image = !empty($uploaded) ? \reset($uploaded) : new NullMedia();
|
||||
$profile->image = empty($uploaded) ? new NullMedia() : \reset($uploaded);
|
||||
if ($profile->image->id > 0) {
|
||||
$profile->image = $this->app->moduleManager->get('Media')->resizeImage($profile->image, 100, 100, false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -381,7 +381,7 @@ function phpServe() : void
|
|||
|
||||
// Execute the command and store the process ID
|
||||
$output = [];
|
||||
echo \sprintf('Starting server...') . \PHP_EOL;
|
||||
echo 'Starting server...' . \PHP_EOL;
|
||||
echo \sprintf(' Current directory: %s', \getcwd()) . \PHP_EOL;
|
||||
echo \sprintf(' %s', $command);
|
||||
\exec($command, $output);
|
||||
|
|
@ -406,7 +406,7 @@ function phpServe() : void
|
|||
|
||||
// Kill the web server when the process ends
|
||||
\register_shutdown_function(function() use ($killCommand, $pid) : void {
|
||||
echo \PHP_EOL . \sprintf('Stopping server...') . \PHP_EOL;
|
||||
echo \PHP_EOL . 'Stopping server...' . \PHP_EOL;
|
||||
echo \sprintf(' %s - Killing process with ID %d', \date('r'), $pid) . \PHP_EOL;
|
||||
\exec($killCommand . $pid);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user