mirror of
https://github.com/flarum/core.git
synced 2025-08-08 09:26:34 +02:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
committed by
StyleCI Bot
parent
3da7d7d221
commit
31a2f67462
@@ -31,7 +31,7 @@ class WritablePaths implements PrerequisiteInterface
|
|||||||
$problems = $this->getMissingPaths()
|
$problems = $this->getMissingPaths()
|
||||||
->concat($this->getNonWritablePaths());
|
->concat($this->getNonWritablePaths());
|
||||||
|
|
||||||
if (!$problems->isEmpty()) {
|
if (! $problems->isEmpty()) {
|
||||||
return $problems->prepend($this->getServerInfo());
|
return $problems->prepend($this->getServerInfo());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,14 +44,14 @@ class WritablePaths implements PrerequisiteInterface
|
|||||||
'title' => 'Server Metadata',
|
'title' => 'Server Metadata',
|
||||||
'detail' => implode('<br />', [
|
'detail' => implode('<br />', [
|
||||||
'The following information might be useful for troubleshooting the errors below.',
|
'The following information might be useful for troubleshooting the errors below.',
|
||||||
'Current User:' . get_current_user(),
|
'Current User:'.get_current_user(),
|
||||||
'Current File Permissions:',
|
'Current File Permissions:',
|
||||||
$this->paths->map(function ($path) {
|
$this->paths->map(function ($path) {
|
||||||
return " - $path: " . substr(sprintf('%o', fileperms($path)), -4);
|
return " - $path: ".substr(sprintf('%o', fileperms($path)), -4);
|
||||||
})->implode('<br />'),
|
})->implode('<br />'),
|
||||||
'Current File Ownership:',
|
'Current File Ownership:',
|
||||||
$this->paths->map(function ($path) {
|
$this->paths->map(function ($path) {
|
||||||
return " - $path: " . posix_getpwuid(fileowner($path))['name'] .':'.posix_getgrgid(filegroup($path))['name'];
|
return " - $path: ".posix_getpwuid(fileowner($path))['name'].':'.posix_getgrgid(filegroup($path))['name'];
|
||||||
})->implode('<br />'),
|
})->implode('<br />'),
|
||||||
]),
|
]),
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user