1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00

Update Installer.php

This commit is contained in:
Shlee 2022-06-19 15:35:06 +09:30 committed by GitHub
parent d2e0b9ace1
commit 097a04edc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,7 +131,7 @@ class Installer extends Command
protected function checkPHPRequiredDependencies() protected function checkPHPRequiredDependencies()
{ {
$this->line(' '); $this->line(' ');
$this->info('Checking for required php extensions...'); $this->info('Checking for Required PHP Extensions...');
$extensions = [ $extensions = [
'bcmath', 'bcmath',
@ -144,7 +144,7 @@ class Installer extends Command
foreach($extensions as $ext) { foreach($extensions as $ext) {
if(extension_loaded($ext) == false) { if(extension_loaded($ext) == false) {
$this->error("- \"{$ext}\" Required PHP extension not found, aborting installation"); $this->error("- \"{$ext}\" Required PHP Extension not found, aborting installation");
exit; exit;
} }
} }
@ -154,7 +154,7 @@ class Installer extends Command
protected function checkPHPOptionalDependencies() protected function checkPHPOptionalDependencies()
{ {
$this->line(' '); $this->line(' ');
$this->info('Checking For Optional PHP Extensions...'); $this->info('Checking For Additional PHP Extensions...');
$extensions = [ $extensions = [
'gd', 'gd',
@ -166,9 +166,9 @@ class Installer extends Command
foreach($extensions as $ext) { foreach($extensions as $ext) {
if(extension_loaded($ext) == false) { if(extension_loaded($ext) == false) {
$this->error("- \"{$ext}\" Optional PHP extension not found"); $this->error("- \"{$ext}\" PHP extension not found");
} else { } else {
$this->info ("- \"{$ext}\" Optional PHP extension found"); $this->info ("- \"{$ext}\" PHP extension found");
} }
} }
} }