SAREhub/EasyECA

View on GitHub

Showing 47 of 50 total issues

Avoid excessively long class names like DefaultEventTypeRuleGroupsSplittingStrategy. Keep class name length under 40.
Open

class DefaultEventTypeRuleGroupsSplittingStrategy implements SplittingStrategy
{
/**
* @var EventRuleGroupDefinitionFactory
*/

The class RuleDefinitions has a coupling between objects value of 13. Consider to reduce the number of dependencies under 13.
Open

class RuleDefinitions
{
public static function get(): array
{
return [

The class RuleDefinitions has a coupling between objects value of 13. Consider to reduce the number of dependencies under 13.
Open

class RuleDefinitions
{
public static function get(): array
{
return [

There must be one blank line after the namespace declaration
Open

namespace SAREhub\EasyECA\Rule\Loader;

There must be one blank line after the namespace declaration
Open

namespace SAREhub\EasyECA\Rule\Definition;

The abstract declaration must precede the visibility declaration
Open

protected abstract static function actionRoutingFunction();

There must be one blank line after the namespace declaration
Open

namespace SAREhub\EasyECA\Rule;

Expected 1 blank line at end of file; 2 found
Open

}

The abstract declaration must precede the visibility declaration
Open

protected abstract static function ruleGroupIdExtractor();

There must be one blank line after the namespace declaration
Open

namespace SAREhub\EasyECA\Rule\Loader\Http;

There must be one blank line after the namespace declaration
Open

namespace SAREhub\EasyECA\Rule;

There must be one blank line after the namespace declaration
Open

namespace SAREhub\EasyECA\Rule\Definition;

The closing brace for the class must go on the next line after the body
Open

}

There must be one blank line after the namespace declaration
Open

namespace SAREhub\EasyECA\Rule;

The abstract declaration must precede the visibility declaration
Open

protected abstract static function ruleGroupRulesExtractor();

There must be one blank line after the namespace declaration
Open

namespace SAREhub\EasyECA\Rule;

Missing class import via use statement (line '14', column '23').
Open

throw new \InvalidArgumentException("ActionDefinition data is invalid: empty action");

Missing class import via use statement (line '42', column '23').
Open

throw new \InvalidArgumentException("ActionProcessorFactory to action: '$action' not found");

Missing class import via use statement (line '32', column '23').
Open

throw new \SAREhub\EasyECA\Rule\Asserter\RuleAssertException("Hoa assert exception occurred", 500, $e);

Missing class import via use statement (line '47', column '19').
Open

throw new \InvalidArgumentException("RuleGroupDefinition data is invalid: $message");
Severity
Category
Status
Source
Language