ImpressCMS/impresscms

View on GitHub
htdocs/include/notification_functions.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid using static access to class 'icms_data_notification_Handler' in method 'notificationCategoryInfo'.
Open

    return icms_data_notification_Handler::categoryInfo();

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 'icms_core_Debug' in method 'notificationEventEnabled'.
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::eventEnabled', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));

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 'icms_core_Debug' in method 'notificationCommentCategoryInfo'.
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::commentCategoryInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));

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 'icms_data_notification_Handler' in method 'notificationCommentCategoryInfo'.
Open

    return icms_data_notification_Handler::commentCategoryInfo();

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 'icms_core_Debug' in method 'notificationGenerateConfig'.
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::generateConfig', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));

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 'icms_data_notification_Handler' in method 'notificationEnabled'.
Open

    return icms_data_notification_Handler::isEnabled($style);

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 'icms_core_Debug' in method 'notificationCategoryInfo'.
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::categoryInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));

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 'icms_core_Debug' in method 'notificationSubscribableCategoryInfo'.
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::subscribableCategoryInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));

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 'icms_core_Debug' in method 'notificationEvents'.
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::categoryEvents', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));

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 'icms_data_notification_Handler' in method 'notificationGenerateConfig'.
Open

    return icms_data_notification_Handler::generateConfig($category, $event, $type);

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 'icms_core_Debug' in method 'notificationEnabled'.
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::isEnabled', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));

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 'icms_core_Debug' in method 'notificationEventInfo'.
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::eventInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));

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 'icms_data_notification_Handler' in method 'notificationEvents'.
Open

    return icms_data_notification_Handler::categoryEvents($category_name, $enabled_only, $module_id);

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 'icms_data_notification_Handler' in method 'notificationEventEnabled'.
Open

    return icms_data_notification_Handler::eventEnabled($category, $event, $module);

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 'icms_data_notification_Handler' in method 'notificationEventInfo'.
Open

    return icms_data_notification_Handler::eventInfo($category_name, $event_name);

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 'icms_data_notification_Handler' in method 'notificationSubscribableCategoryInfo'.
Open

    return icms_data_notification_Handler::subscribableCategoryInfo($module_id);

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 unused parameters such as '$module_id'.
Open

function &notificationEventInfo($category_name, $event_name, $module_id=null) {

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$module_id'.
Open

function notificationEnabled($style, $module_id=null) {

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$category_name'.
Open

function &notificationCategoryInfo($category_name='', $module_id=null) {

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$module_id'.
Open

function &notificationCategoryInfo($category_name='', $module_id=null) {

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$module_id'.
Open

function &notificationCommentCategoryInfo($module_id=null) {

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

TODO found
Open

// TODO: some way to include or exclude admin-only events...

TODO found
Open

 *        all notification categories must have unique item_name. (TODO)

FIXME found
Open

// FIXME: Do some caching, so we don't retrieve the same category / event

Reference to undeclared constant \_CORE_REMOVE_IN_VERSION
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::isEnabled', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));

Reference to undeclared constant \_CORE_REMOVE_IN_VERSION
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::subscribableCategoryInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));

Call to method setDeprecated from undeclared class \icms_core_Debug
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::generateConfig', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
Severity: Critical
Found in htdocs/include/notification_functions.php by phan

Call to method setDeprecated from undeclared class \icms_core_Debug
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::categoryInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
Severity: Critical
Found in htdocs/include/notification_functions.php by phan

Reference to undeclared constant \_CORE_REMOVE_IN_VERSION
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::categoryInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));

Call to method subscribableCategoryInfo from undeclared class \icms_data_notification_Handler
Open

    return icms_data_notification_Handler::subscribableCategoryInfo($module_id);
Severity: Critical
Found in htdocs/include/notification_functions.php by phan

Saw an @param annotation for name, but it was not found in the param list of function notificationCategoryInfo(mixed|string $category_name = '', int $module_id = null) : mixed;
Open

 * @param  string  $name       Category name (default all categories)

Call to method setDeprecated from undeclared class \icms_core_Debug
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::categoryEvents', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
Severity: Critical
Found in htdocs/include/notification_functions.php by phan

Call to method commentCategoryInfo from undeclared class \icms_data_notification_Handler
Open

    return icms_data_notification_Handler::commentCategoryInfo();
Severity: Critical
Found in htdocs/include/notification_functions.php by phan

Reference to undeclared constant \_CORE_REMOVE_IN_VERSION
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::eventInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));

Call to method setDeprecated from undeclared class \icms_core_Debug
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::eventInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
Severity: Critical
Found in htdocs/include/notification_functions.php by phan

Call to method eventEnabled from undeclared class \icms_data_notification_Handler
Open

    return icms_data_notification_Handler::eventEnabled($category, $event, $module);
Severity: Critical
Found in htdocs/include/notification_functions.php by phan

Call to method isEnabled from undeclared class \icms_data_notification_Handler
Open

    return icms_data_notification_Handler::isEnabled($style);
Severity: Critical
Found in htdocs/include/notification_functions.php by phan

Reference to undeclared constant \_CORE_REMOVE_IN_VERSION
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::eventEnabled', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));

Call to method setDeprecated from undeclared class \icms_core_Debug
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::subscribableCategoryInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
Severity: Critical
Found in htdocs/include/notification_functions.php by phan

Reference to undeclared constant \_CORE_REMOVE_IN_VERSION
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::generateConfig', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));

Reference to undeclared constant \_CORE_REMOVE_IN_VERSION
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::categoryEvents', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));

Call to method setDeprecated from undeclared class \icms_core_Debug
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::eventEnabled', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
Severity: Critical
Found in htdocs/include/notification_functions.php by phan

Call to method categoryInfo from undeclared class \icms_data_notification_Handler
Open

    return icms_data_notification_Handler::categoryInfo();
Severity: Critical
Found in htdocs/include/notification_functions.php by phan

Reference to undeclared constant \_CORE_REMOVE_IN_VERSION
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::commentCategoryInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));

Call to method generateConfig from undeclared class \icms_data_notification_Handler
Open

    return icms_data_notification_Handler::generateConfig($category, $event, $type);
Severity: Critical
Found in htdocs/include/notification_functions.php by phan

Call to method eventInfo from undeclared class \icms_data_notification_Handler
Open

    return icms_data_notification_Handler::eventInfo($category_name, $event_name);
Severity: Critical
Found in htdocs/include/notification_functions.php by phan

Call to method setDeprecated from undeclared class \icms_core_Debug
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::isEnabled', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
Severity: Critical
Found in htdocs/include/notification_functions.php by phan

Call to method setDeprecated from undeclared class \icms_core_Debug
Open

    icms_core_Debug::setDeprecated('icms_data_notification_Handler::commentCategoryInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
Severity: Critical
Found in htdocs/include/notification_functions.php by phan

Call to method categoryEvents from undeclared class \icms_data_notification_Handler
Open

    return icms_data_notification_Handler::categoryEvents($category_name, $enabled_only, $module_id);
Severity: Critical
Found in htdocs/include/notification_functions.php by phan

The parameter $module_id is not named in camelCase.
Open

function &notificationSubscribableCategoryInfo($module_id=null) {
    icms_core_Debug::setDeprecated('icms_data_notification_Handler::subscribableCategoryInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_data_notification_Handler::subscribableCategoryInfo($module_id);

}

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $module_id is not named in camelCase.
Open

function notificationEnabled($style, $module_id=null) {
    icms_core_Debug::setDeprecated('icms_data_notification_Handler::isEnabled', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_data_notification_Handler::isEnabled($style);
}

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $category_name is not named in camelCase.
Open

function &notificationEventInfo($category_name, $event_name, $module_id=null) {
    icms_core_Debug::setDeprecated('icms_data_notification_Handler::eventInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_data_notification_Handler::eventInfo($category_name, $event_name);

}

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $module_id is not named in camelCase.
Open

function &notificationCommentCategoryInfo($module_id=null) {
    icms_core_Debug::setDeprecated('icms_data_notification_Handler::commentCategoryInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_data_notification_Handler::commentCategoryInfo();
}

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $event_name is not named in camelCase.
Open

function &notificationEventInfo($category_name, $event_name, $module_id=null) {
    icms_core_Debug::setDeprecated('icms_data_notification_Handler::eventInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_data_notification_Handler::eventInfo($category_name, $event_name);

}

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $category_name is not named in camelCase.
Open

function &notificationEvents($category_name, $enabled_only, $module_id=null) {
    icms_core_Debug::setDeprecated('icms_data_notification_Handler::categoryEvents', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_data_notification_Handler::categoryEvents($category_name, $enabled_only, $module_id);

}

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $module_id is not named in camelCase.
Open

function &notificationCategoryInfo($category_name='', $module_id=null) {
    icms_core_Debug::setDeprecated('icms_data_notification_Handler::categoryInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_data_notification_Handler::categoryInfo();
}

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $module_id is not named in camelCase.
Open

function &notificationEvents($category_name, $enabled_only, $module_id=null) {
    icms_core_Debug::setDeprecated('icms_data_notification_Handler::categoryEvents', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_data_notification_Handler::categoryEvents($category_name, $enabled_only, $module_id);

}

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $category_name is not named in camelCase.
Open

function &notificationCategoryInfo($category_name='', $module_id=null) {
    icms_core_Debug::setDeprecated('icms_data_notification_Handler::categoryInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_data_notification_Handler::categoryInfo();
}

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $enabled_only is not named in camelCase.
Open

function &notificationEvents($category_name, $enabled_only, $module_id=null) {
    icms_core_Debug::setDeprecated('icms_data_notification_Handler::categoryEvents', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_data_notification_Handler::categoryEvents($category_name, $enabled_only, $module_id);

}

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $module_id is not named in camelCase.
Open

function &notificationEventInfo($category_name, $event_name, $module_id=null) {
    icms_core_Debug::setDeprecated('icms_data_notification_Handler::eventInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_data_notification_Handler::eventInfo($category_name, $event_name);

}

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

Incorrect spacing between argument "$category_name" and equals sign; expected 1 but found 0
Open

function &notificationCategoryInfo($category_name='', $module_id=null) {

Incorrect spacing between argument "$module_id" and equals sign; expected 1 but found 0
Open

function &notificationEvents($category_name, $enabled_only, $module_id=null) {

Incorrect spacing between default value and equals sign for argument "$module_id"; expected 1 but found 0
Open

function &notificationSubscribableCategoryInfo($module_id=null) {

Incorrect spacing between default value and equals sign for argument "$category_name"; expected 1 but found 0
Open

function &notificationCategoryInfo($category_name='', $module_id=null) {

Function closing brace must go on the next line following the body; found 1 blank lines before brace
Open

}

Incorrect spacing between default value and equals sign for argument "$module_id"; expected 1 but found 0
Open

function &notificationEventInfo($category_name, $event_name, $module_id=null) {

Function closing brace must go on the next line following the body; found 1 blank lines before brace
Open

}

Incorrect spacing between argument "$module_id" and equals sign; expected 1 but found 0
Open

function &notificationCategoryInfo($category_name='', $module_id=null) {

Incorrect spacing between argument "$module_id" and equals sign; expected 1 but found 0
Open

function notificationEnabled($style, $module_id=null) {

Incorrect spacing between default value and equals sign for argument "$module_id"; expected 1 but found 0
Open

function notificationEnabled($style, $module_id=null) {

Incorrect spacing between argument "$module_id" and equals sign; expected 1 but found 0
Open

function &notificationEventInfo($category_name, $event_name, $module_id=null) {

Incorrect spacing between default value and equals sign for argument "$module_id"; expected 1 but found 0
Open

function &notificationCommentCategoryInfo($module_id=null) {

Function closing brace must go on the next line following the body; found 1 blank lines before brace
Open

}

Incorrect spacing between argument "$module_id" and equals sign; expected 1 but found 0
Open

function &notificationCommentCategoryInfo($module_id=null) {

Function closing brace must go on the next line following the body; found 1 blank lines before brace
Open

}

Incorrect spacing between default value and equals sign for argument "$module_id"; expected 1 but found 0
Open

function &notificationCategoryInfo($category_name='', $module_id=null) {

Function closing brace must go on the next line following the body; found 1 blank lines before brace
Open

}

Incorrect spacing between default value and equals sign for argument "$module_id"; expected 1 but found 0
Open

function &notificationEvents($category_name, $enabled_only, $module_id=null) {

Incorrect spacing between argument "$module_id" and equals sign; expected 1 but found 0
Open

function &notificationSubscribableCategoryInfo($module_id=null) {

Expected 1 newline at end of file; 0 found
Open

}

The variable $module_id is not named in camelCase.
Open

function &notificationEvents($category_name, $enabled_only, $module_id=null) {
    icms_core_Debug::setDeprecated('icms_data_notification_Handler::categoryEvents', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_data_notification_Handler::categoryEvents($category_name, $enabled_only, $module_id);

}

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $event_name is not named in camelCase.
Open

function &notificationEventInfo($category_name, $event_name, $module_id=null) {
    icms_core_Debug::setDeprecated('icms_data_notification_Handler::eventInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_data_notification_Handler::eventInfo($category_name, $event_name);

}

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $enabled_only is not named in camelCase.
Open

function &notificationEvents($category_name, $enabled_only, $module_id=null) {
    icms_core_Debug::setDeprecated('icms_data_notification_Handler::categoryEvents', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_data_notification_Handler::categoryEvents($category_name, $enabled_only, $module_id);

}

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $module_id is not named in camelCase.
Open

function &notificationSubscribableCategoryInfo($module_id=null) {
    icms_core_Debug::setDeprecated('icms_data_notification_Handler::subscribableCategoryInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_data_notification_Handler::subscribableCategoryInfo($module_id);

}

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $category_name is not named in camelCase.
Open

function &notificationEvents($category_name, $enabled_only, $module_id=null) {
    icms_core_Debug::setDeprecated('icms_data_notification_Handler::categoryEvents', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_data_notification_Handler::categoryEvents($category_name, $enabled_only, $module_id);

}

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $category_name is not named in camelCase.
Open

function &notificationEventInfo($category_name, $event_name, $module_id=null) {
    icms_core_Debug::setDeprecated('icms_data_notification_Handler::eventInfo', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_data_notification_Handler::eventInfo($category_name, $event_name);

}

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

There are no issues that match your filters.

Category
Status