{{translate('REGISTER')}}
- - - -{{translate('REGISTER')}}
+ + + +$module
Apache module is installed and enabled. If you use shared hosting, you will need to ask your web host to do this for you.",
- 'success' => false
+ 'success' => false,
];
} else {
$this->resultsSuccess['apache-' . $module] = [
'title' => " Apache module $module is installed and enabled.",
'message' => "Great, we found the $module
Apache module!",
- 'success' => true
+ 'success' => true,
];
}
}
@@ -185,13 +187,13 @@ public function checkGd()
$this->resultsFailed['gd'] = [
'title' => " GD library not installed",
'message' => 'We could not confirm that the GD
library is installed and enabled. GD is an image processing library that UserFrosting uses to generate captcha codes for user account registration.',
- 'success' => false
+ 'success' => false,
];
} else {
$this->resultsSuccess['gd'] = [
'title' => " GD library installed!",
'message' => 'Great, you have GD
installed and enabled.',
- 'success' => true
+ 'success' => true,
];
}
@@ -215,7 +217,7 @@ public function checkImageFunctions()
'imageline',
'imagesetpixel',
'imagefontwidth',
- 'imagestring'
+ 'imagestring',
];
foreach ($funcs as $func) {
@@ -224,13 +226,13 @@ public function checkImageFunctions()
$this->resultsFailed['function-' . $func] = [
'title' => " Missing image manipulation function.",
'message' => "It appears that function $func
is not available. UserFrosting needs this to render captchas.",
- 'success' => false
+ 'success' => false,
];
} else {
$this->resultsSuccess['function-' . $func] = [
'title' => " Function $func is available!",
'message' => 'Sweet!',
- 'success' => true
+ 'success' => true,
];
}
}
@@ -250,13 +252,13 @@ public function checkPdo()
$this->resultsFailed['pdo'] = [
'title' => " PDO is not installed.",
'message' => "I'm sorry, you must have PDO installed and enabled in order for UserFrosting to access the database. If you don't know what PDO is, please see http://php.net/manual/en/book.pdo.php.",
- 'success' => false
+ 'success' => false,
];
} else {
$this->resultsSuccess['pdo'] = [
'title' => " PDO is installed!",
'message' => "You've got PDO installed. Good job!",
- 'success' => true
+ 'success' => true,
];
}
@@ -273,7 +275,7 @@ public function checkDirectories()
$directoryPaths = [
'logs' => $this->locator->findResource('log://'),
'cache' => $this->locator->findResource('cache://'),
- 'sessions' => $this->locator->findResource('session://')
+ 'sessions' => $this->locator->findResource('session://'),
];
foreach ($directoryPaths as $directory => $path) {
@@ -282,13 +284,13 @@ public function checkDirectories()
$this->resultsFailed['directory-' . $directory] = [
'title' => " A required directory was not found.",
'message' => "Please check that userfrosting/app/$directory
exists.",
- 'success' => false
+ 'success' => false,
];
} else {
$this->resultsSuccess['directory-' . $directory] = [
'title' => " File/directory check passed!",
'message' => "userfrosting/app/$directory
exists.",
- 'success' => true
+ 'success' => true,
];
}
}
@@ -306,14 +308,14 @@ public function checkPermissions()
$shouldBeWriteable = [
$this->locator->findResource('log://') => true,
$this->locator->findResource('cache://') => true,
- $this->locator->findResource('session://') => true
+ $this->locator->findResource('session://') => true,
];
if ($this->isProduction()) {
// Should be write-protected in production!
$shouldBeWriteable = array_merge($shouldBeWriteable, [
\UserFrosting\SPRINKLES_DIR => false,
- \UserFrosting\VENDOR_DIR => false
+ \UserFrosting\VENDOR_DIR => false,
]);
}
@@ -331,7 +333,7 @@ public function checkPermissions()
. '. Please modify the OS user or group permissions so that user '
. exec('whoami') . ' '
. ($assertWriteable ? 'has' : 'does not have') . ' write permissions for this directory.',
- 'success' => false
+ 'success' => false,
];
} else {
$this->resultsSuccess['file-' . $file] = [
@@ -339,7 +341,7 @@ public function checkPermissions()
'message' => "$file
exists and is correctly set as "
. ($writeable ? 'writeable' : 'not writeable')
. '.',
- 'success' => true
+ 'success' => true,
];
}
}
@@ -360,13 +362,13 @@ public function checkPhp()
$this->resultsFailed['phpVersion'] = [
'title' => " You need to upgrade your PHP installation.",
'message' => "I'm sorry, UserFrosting requires version " . \UserFrosting\PHP_MIN_VERSION . ' or greater. Please upgrade your version of PHP, or contact your web hosting service and ask them to upgrade it for you.',
- 'success' => false
+ 'success' => false,
];
} else {
$this->resultsSuccess['phpVersion'] = [
'title' => " PHP version checks out!",
- 'message' => "You're using PHP " . \UserFrosting\PHP_MIN_VERSION . 'or higher. Great!',
- 'success' => true
+ 'message' => "You're using PHP " . \UserFrosting\PHP_MIN_VERSION . 'or higher. Great!',
+ 'success' => true,
];
}
diff --git a/app/sprinkles/core/src/Util/ClassMapper.php b/app/sprinkles/core/src/Util/ClassMapper.php
index b7314e781..c20e3202e 100644
--- a/app/sprinkles/core/src/Util/ClassMapper.php
+++ b/app/sprinkles/core/src/Util/ClassMapper.php
@@ -1,5 +1,6 @@
'Parse error',
E_CORE_ERROR => 'PHP core error',
E_COMPILE_ERROR => 'Zend compile error',
- E_RECOVERABLE_ERROR => 'Catchable fatal error'
+ E_RECOVERABLE_ERROR => 'Catchable fatal error',
];
return '' . $errorTypes[$error['type']] . ": $errstr in $errfile on line $errline";
@@ -122,7 +124,8 @@ protected function buildErrorInfoMessage(array $error)
/**
* Build an error response of the appropriate type as determined by the request's Accept header.
*
- * @param string $message
+ * @param string $message
+ *
* @return string
*/
protected function buildErrorPage($message)
@@ -147,7 +150,8 @@ protected function buildErrorPage($message)
/**
* Build an HTML error page from an error string.
*
- * @param string $message
+ * @param string $message
+ *
* @return string
*/
protected function buildHtmlErrorPage($message)
diff --git a/app/sprinkles/core/src/Util/Util.php b/app/sprinkles/core/src/Util/Util.php
index 9cd14008a..b51dbf616 100644
--- a/app/sprinkles/core/src/Util/Util.php
+++ b/app/sprinkles/core/src/Util/Util.php
@@ -1,5 +1,6 @@
'.str_repeat(' ', $newLineLevel);
+ $result .= '