Showing 54 of 54 total issues
The method add_route_requirement is not named in camelCase. Open
public function add_route_requirement($type, $function, $source = '', $path = false, $methods = false)
{
if ($path === false) {
$path = '/'.$function;
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method ChmodPermissionsSetter is not named in camelCase. Open
public static function ChmodPermissionsSetter(Event $event, $http_user, $path, $type = 'dir')
{
if ($type == 'dir') {
self::EnsureDirExists($event, $path);
// self::runProcess($event, 'chmod +a "'.$http_user.' allow delete,write,append,file_inherit,directory_inherit" '.$path);
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method add_page_requirement is not named in camelCase. Open
public function add_page_requirement($function, $source, $methods = false)
{
$this->add_route_requirement('client', $function, $source, '/'.$function, $methods);
$this->add_route_requirement('client', $function, $source, '/admin/'.$function, $methods);
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method add_public_requirement is not named in camelCase. Open
public function add_public_requirement($function, $source, $methods = false)
{
$this->add_route_requirement('public', $function, $source, '/'.$function, $methods);
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method SetfaclPermissionsSetter is not named in camelCase. Open
public static function SetfaclPermissionsSetter(Event $event, $http_user, $path)
{
self::EnsureDirExists($event, $path);
self::runProcess($event, 'setfacl -m u:"'.$http_user.'":rwX -m u:'.$_SERVER['USER'].':rwX '.$path);
self::runProcess($event, 'setfacl -d -m u:"'.$http_user.'":rwX -m u:'.$_SERVER['USER'].':rwX '.$path);
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method add_public_file is not named in camelCase. Open
public function add_public_file($function, $source, $methods = false)
{
$this->add_route_requirement('public_file', $function, $source, '', '/'.$function, $methods);
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method get_setting is not named in camelCase. Open
public function get_setting($setting)
{
return constant($setting);
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method add_root_page_requirement is not named in camelCase. Open
public function add_root_page_requirement($function, $source, $methods = false)
{
$this->add_route_requirement('client', $function, $source, '/'.$function, $methods);
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method EnsureDirExists is not named in camelCase. Open
public static function EnsureDirExists(Event $event, $path)
{
if (!is_dir($path)) {
mkdir($path, 0777, true);
if (!is_dir($path)) {
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method add_ajax_page_requirement is not named in camelCase. Open
public function add_ajax_page_requirement($function, $source, $methods = false)
{
$this->add_route_requirement('client_ajax', $function, $source, '/ajax/'.$function, $methods);
$this->add_route_requirement('client_ajax', $function, $source, '/admin/ajax/'.$function, $methods);
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method add_apmin_api_page_requirement is not named in camelCase. Open
public function add_apmin_api_page_requirement($function, $source, $methods = false)
{
$this->add_route_requirement('admin_api', $function, $source, '/admin/ajax/'.$function, $methods);
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method add_requirement is not named in camelCase. Open
public function add_requirement($function, $source, $methods = false)
{
if ($source != '') {
$this->requirements[$function] = $source;
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method get_requirements is not named in camelCase. Open
public function get_requirements()
{
return $this->requirements;
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method get_routes is not named in camelCase. Open
public function get_routes()
{
$routes = $this->routes;
uksort($routes, function ($a, $b) {
if (strlen($a) == strlen($b)) {
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}