mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 11:37:12 +02:00
Various PSR fixes
This commit is contained in:
@@ -41,4 +41,4 @@ form:
|
||||
label: PLUGIN_ADMIN.SITE_ACCESS
|
||||
multiple: false
|
||||
validate:
|
||||
type: array
|
||||
type: array
|
||||
|
||||
@@ -115,4 +115,4 @@ session:
|
||||
timeout: 1800 # Timeout in seconds
|
||||
name: grav-site # Name prefix of the session cookie. Use alphanumeric, dashes or underscores only. Do not use dots in the session name
|
||||
secure: false # Set session secure. If true, indicates that communication for this cookie must be over an encrypted transmission. Enable this only on sites that run exclusively on HTTPS
|
||||
httponly: true # Set session HTTP only. If true, indicates that cookies should be used only over HTTP, and JavaScript modification is not allowed.
|
||||
httponly: true # Set session HTTP only. If true, indicates that cookies should be used only over HTTP, and JavaScript modification is not allowed.
|
||||
|
||||
@@ -234,7 +234,7 @@ class Response
|
||||
|
||||
$ch = curl_init($uri);
|
||||
|
||||
$response = static::_curl_exec_follow($ch, $options, $callback);
|
||||
$response = static::curlExecFollow($ch, $options, $callback);
|
||||
$errno = curl_errno($ch);
|
||||
|
||||
if ($errno) {
|
||||
@@ -254,7 +254,7 @@ class Response
|
||||
*
|
||||
* @return bool|mixed
|
||||
*/
|
||||
private static function _curl_exec_follow($ch, $options, $callback)
|
||||
private static function curlExecFollow($ch, $options, $callback)
|
||||
{
|
||||
if ($callback) {
|
||||
curl_setopt_array(
|
||||
|
||||
@@ -36,7 +36,7 @@ class Group extends Data
|
||||
*
|
||||
* @return object
|
||||
*/
|
||||
public static function group_exists($groupname)
|
||||
public static function groupExists($groupname)
|
||||
{
|
||||
return isset(self::groups()[$groupname]);
|
||||
}
|
||||
@@ -50,7 +50,7 @@ class Group extends Data
|
||||
*/
|
||||
public static function load($groupname)
|
||||
{
|
||||
if (self::group_exists($groupname)) {
|
||||
if (self::groupExists($groupname)) {
|
||||
$content = self::groups()[$groupname];
|
||||
} else {
|
||||
$content = [];
|
||||
|
||||
@@ -30,6 +30,9 @@ class ConsoleCommand extends Command
|
||||
/**
|
||||
*
|
||||
*/
|
||||
protected function serve() { }
|
||||
protected function serve()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user