Ajde_Template_Parser_Phtml_Helper
has 31 functions (exceeds 20 allowed). Consider refactoring. Open
class Ajde_Template_Parser_Phtml_Helper extends Ajde_Object_Standard
{
/**
* @var Ajde_Template_Parser
*/
The class Ajde_Template_Parser_Phtml_Helper has 29 non-getter- and setter-methods. Consider refactoring Ajde_Template_Parser_Phtml_Helper to keep number of methods under 25. Open
class Ajde_Template_Parser_Phtml_Helper extends Ajde_Object_Standard
{
/**
* @var Ajde_Template_Parser
*/
- Read upRead up
- Exclude checks
TooManyMethods
Since: 0.1
A class with too many methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.
By default it ignores methods starting with 'get' or 'set'.
The default was changed from 10 to 25 in PHPMD 2.3.
Example
Source https://phpmd.org/rules/codesize.html#toomanymethods
The class Ajde_Template_Parser_Phtml_Helper has 29 public methods. Consider refactoring Ajde_Template_Parser_Phtml_Helper to keep number of public methods under 10. Open
class Ajde_Template_Parser_Phtml_Helper extends Ajde_Object_Standard
{
/**
* @var Ajde_Template_Parser
*/
- Read upRead up
- Exclude checks
TooManyPublicMethods
Since: 0.1
A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.
By default it ignores methods starting with 'get' or 'set'.
Example
Source https://phpmd.org/rules/codesize.html#toomanypublicmethods
Method requireCss
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
$action,
$format = 'html',
$base = null,
$position = Ajde_Document_Format_Html::RESOURCE_POSITION_DEFAULT,
$arguments = ''
Method requireJs
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
$action,
$format = 'html',
$base = null,
$position = Ajde_Document_Format_Html::RESOURCE_POSITION_DEFAULT,
$arguments = ''
The class Ajde_Template_Parser_Phtml_Helper has a coupling between objects value of 15. Consider to reduce the number of dependencies under 13. Open
class Ajde_Template_Parser_Phtml_Helper extends Ajde_Object_Standard
{
/**
* @var Ajde_Template_Parser
*/
- Read upRead up
- Exclude checks
CouplingBetweenObjects
Since: 1.1.0
A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability
Example
class Foo {
/**
* @var \foo\bar\X
*/
private $x = null;
/**
* @var \foo\bar\Y
*/
private $y = null;
/**
* @var \foo\bar\Z
*/
private $z = null;
public function setFoo(\Foo $foo) {}
public function setBar(\Bar $bar) {}
public function setBaz(\Baz $baz) {}
/**
* @return \SplObjectStorage
* @throws \OutOfRangeException
* @throws \InvalidArgumentException
* @throws \ErrorException
*/
public function process(\Iterator $it) {}
// ...
}
Source https://phpmd.org/rules/design.html#couplingbetweenobjects
The method requireJsLibrary has a boolean flag argument $version, which is a certain sign of a Single Responsibility Principle violation. Open
public function requireJsLibrary($name, $version = false)
- Read upRead up
- Exclude checks
BooleanArgumentFlag
Since: 1.4.0
A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.
Example
class Foo {
public function bar($flag = true) {
}
}
Source https://phpmd.org/rules/cleancode.html#booleanargumentflag
The method ACCrudMainFilterBadge has a boolean flag argument $refresh, which is a certain sign of a Single Responsibility Principle violation. Open
public function ACCrudMainFilterBadge($crud, $refresh = false)
- Read upRead up
- Exclude checks
BooleanArgumentFlag
Since: 1.4.0
A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.
Example
class Foo {
public function bar($flag = true) {
}
}
Source https://phpmd.org/rules/cleancode.html#booleanargumentflag
Avoid using static access to class 'Ajde_Component_Form' in method 'ACAjaxUpload'. Open
return Ajde_Component_Form::processStatic($this->getParser(),
['name' => $name, 'upload' => true, 'options' => $options, 'id' => $id, 'class' => $class]);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Css' in method 'requireCss'. Open
return Ajde_Component_Css::processStatic($this->getParser(), [
'action' => $action,
'format' => $format,
'base' => $base,
'position' => $position,
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Css' in method 'requireCssRemote'. Open
return Ajde_Component_Css::processStatic($this->getParser(),
['url' => $url, 'position' => $position, 'arguments' => $arguments]);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Include' in method 'includeModule'. Open
return Ajde_Component_Include::processStatic($this->getParser(), ['route' => $route, 'vars' => $vars]);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Image' in method 'ACImage'. Open
return Ajde_Component_Image::processStatic($this->getParser(), $attributes);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_String' in method 'ACString'. Open
return Ajde_Component_String::processStatic($this->getParser(),
[
'escape' => true,
'var' => $var,
]
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Form' in method 'ACAjaxForm'. Open
return Ajde_Component_Form::processStatic($this->getParser(),
['route' => $route, 'ajax' => true, 'id' => $id, 'class' => $class, 'format' => $format]);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Js' in method 'requireJsLibrary'. Open
return Ajde_Component_Js::processStatic($this->getParser(), ['library' => $name, 'version' => $version]);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Css' in method 'requireCssPublic'. Open
return Ajde_Component_Css::processStatic($this->getParser(),
['filename' => $filename, 'position' => $position, 'arguments' => $arguments]);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_String' in method 'clean'. Open
return Ajde_Component_String::processStatic($this->getParser(),
[
'clean' => true,
'var' => $var,
]
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Crud' in method 'ACCrudList'. Open
return Ajde_Component_Crud::processStatic($this->getParser(),
[
'list' => true,
'model' => $model,
'options' => $options,
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Form' in method 'ACForm'. Open
return Ajde_Component_Form::processStatic($this->getParser(),
['route' => $route, 'id' => $id, 'class' => $class]);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Crud' in method 'ACCrudMainFilterBadge'. Open
return Ajde_Component_Crud::processStatic($this->getParser(),
[
'mainfilter' => true,
'crud' => $crud,
'refresh' => $refresh,
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Js' in method 'requireJsPublic'. Open
return Ajde_Component_Js::processStatic($this->getParser(),
['filename' => $filename, 'position' => $position, 'arguments' => $arguments]);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Js' in method 'requireJs'. Open
return Ajde_Component_Js::processStatic($this->getParser(), [
'action' => $action,
'format' => $format,
'base' => $base,
'position' => $position,
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Js' in method 'requireJsRemote'. Open
return Ajde_Component_Js::processStatic($this->getParser(),
['url' => $url, 'position' => $position, 'arguments' => $arguments]);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Image' in method 'ACLazyImage'. Open
return Ajde_Component_Image::processStatic($this->getParser(), array_merge($attributes, ['lazy' => true]));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Embed' in method 'ACEmbed'. Open
return Ajde_Component_Embed::processStatic($this->getParser(), $attributes);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
The method getDocument uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
return Ajde::app()->getDocument();
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid using static access to class 'Ajde_Component_Css' in method 'requireGWebFont'. Open
return Ajde_Component_Css::processStatic($this->getParser(),
['fontFamily' => $family, 'fontWeight' => $weight, 'fontSubset' => $subset]);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Form' in method 'ACEmbedForm'. Open
return Ajde_Component_Form::processStatic($this->getParser(), ['embed' => true, 'id' => $formId]);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Markdown' in method 'ACMarkdown'. Open
return Ajde_Component_Markdown::processStatic($this->getParser(), $attributes);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Qrcode' in method 'ACQrcode'. Open
return Ajde_Component_Qrcode::processStatic($this->getParser(), $attributes);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Ajde_Component_Crud' in method 'ACCrudEdit'. Open
return Ajde_Component_Crud::processStatic($this->getParser(),
[
'edit' => true,
'model' => $model,
'id' => $id,
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid variables with short names like $id. Configured minimum length is 3. Open
public function ACAjaxForm($route, $id = null, $class = null, $format = 'json')
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
The class Ajde_Template_Parser_Phtml_Helper is not named in CamelCase. Open
class Ajde_Template_Parser_Phtml_Helper extends Ajde_Object_Standard
{
/**
* @var Ajde_Template_Parser
*/
- Read upRead up
- Exclude checks
CamelCaseClassName
Since: 0.2
It is considered best practice to use the CamelCase notation to name classes.
Example
class class_name {
}
Source
Avoid variables with short names like $id. Configured minimum length is 3. Open
public function ACAjaxUpload($name, $options = [], $id = null, $class = null)
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
Avoid variables with short names like $id. Configured minimum length is 3. Open
public function ACCrudEdit($model, $id, $options = [])
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
The property $_parser is not named in camelCase. Open
class Ajde_Template_Parser_Phtml_Helper extends Ajde_Object_Standard
{
/**
* @var Ajde_Template_Parser
*/
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
Avoid variables with short names like $id. Configured minimum length is 3. Open
public function ACForm($route, $id = null, $class = null)
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
The method ACImage is not named in camelCase. Open
public function ACImage($attributes)
{
return Ajde_Component_Image::processStatic($this->getParser(), $attributes);
}
- 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 ACCrudEdit is not named in camelCase. Open
public function ACCrudEdit($model, $id, $options = [])
{
return Ajde_Component_Crud::processStatic($this->getParser(),
[
'edit' => true,
- 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 ACForm is not named in camelCase. Open
public function ACForm($route, $id = null, $class = null)
{
return Ajde_Component_Form::processStatic($this->getParser(),
['route' => $route, 'id' => $id, 'class' => $class]);
}
- 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 ACMarkdown is not named in camelCase. Open
public function ACMarkdown($attributes)
{
return Ajde_Component_Markdown::processStatic($this->getParser(), $attributes);
}
- 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 ACString is not named in camelCase. Open
public function ACString($var)
{
return Ajde_Component_String::processStatic($this->getParser(),
[
'escape' => true,
- 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 ACCrudList is not named in camelCase. Open
public function ACCrudList($model, $options = [])
{
return Ajde_Component_Crud::processStatic($this->getParser(),
[
'list' => true,
- 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 ACCrudMainFilterBadge is not named in camelCase. Open
public function ACCrudMainFilterBadge($crud, $refresh = false)
{
return Ajde_Component_Crud::processStatic($this->getParser(),
[
'mainfilter' => true,
- 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 ACAjaxForm is not named in camelCase. Open
public function ACAjaxForm($route, $id = null, $class = null, $format = 'json')
{
return Ajde_Component_Form::processStatic($this->getParser(),
['route' => $route, 'ajax' => true, 'id' => $id, 'class' => $class, 'format' => $format]);
}
- 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 ACAjaxUpload is not named in camelCase. Open
public function ACAjaxUpload($name, $options = [], $id = null, $class = null)
{
return Ajde_Component_Form::processStatic($this->getParser(),
['name' => $name, 'upload' => true, 'options' => $options, 'id' => $id, 'class' => $class]);
}
- 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 ACEmbedForm is not named in camelCase. Open
public function ACEmbedForm($formId)
{
return Ajde_Component_Form::processStatic($this->getParser(), ['embed' => true, 'id' => $formId]);
}
- 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 ACQrcode is not named in camelCase. Open
public function ACQrcode($attributes)
{
return Ajde_Component_Qrcode::processStatic($this->getParser(), $attributes);
}
- 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 ACEmbed is not named in camelCase. Open
public function ACEmbed($attributes)
{
return Ajde_Component_Embed::processStatic($this->getParser(), $attributes);
}
- 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 ACLazyImage is not named in camelCase. Open
public function ACLazyImage($attributes)
{
return Ajde_Component_Image::processStatic($this->getParser(), array_merge($attributes, ['lazy' => true]));
}
- 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() {
}
}