Various PSR fixes

This commit is contained in:
Andy Miller
2016-02-05 12:39:04 -07:00
parent 3bec73049b
commit 1d23d29485
5 changed files with 11 additions and 8 deletions

View File

@@ -41,4 +41,4 @@ form:
label: PLUGIN_ADMIN.SITE_ACCESS
multiple: false
validate:
type: array
type: array

View File

@@ -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.

View File

@@ -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(

View File

@@ -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 = [];

View File

@@ -30,6 +30,9 @@ class ConsoleCommand extends Command
/**
*
*/
protected function serve() { }
protected function serve()
{
}
}
}