Showing 124 of 157 total issues
Method markupIdentifier
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function markupIdentifier($val, $what = 'className', $tagName = 'span', $attribs = array(), $wbr = false)
Method dumpExtendsImplements
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
private function dumpExtendsImplements(array $listOrTree, $label, $treeClass, $itemClass, array $interfacesCollapse = array())
Function expandGroupObjNext
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function expandGroupObjNext ($toggle, $classTarget, $evtTarget, icon, eventNameDone) {
Function parseParamTest2
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function parseParamTest2($char)
{
$endParam = false;
if ($char === ',') {
$endParam = $this->paramParseInfo['depth'] === 1;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function set
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function set($path, $value = null)
{
if ($path === 'logDest') {
$this->setLogDest($value);
return;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function getReflectorFromString
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private static function getReflectorFromString($string)
{
$matches = [];
\preg_match(self::$regex, $string, $matches);
$defaults = \array_fill_keys(['class', 'constant', 'property', 'method', 'function'], null);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function createFileLink
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function createFileLink (string, remove, foundFiles) {
var $replace
var $string = $(string)
var attrs = string.attributes
var text = $.trim($string.text())
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function getGroupLabel
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function getGroupLabel()
{
$label = $this->sql;
$label = \preg_replace('/[\r\n\s]+/', ' ', $label);
$label = $this->debug->sql->replaceParams($label, $this->params);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function getCallerInfo
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function getCallerInfo()
{
$callerInfo = array();
$backtrace = \debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 13);
foreach ($backtrace as $i => $frame) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function logSessionVals
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function logSessionVals($sessionNamePassed)
{
$namePrev = null;
if (session_status() !== PHP_SESSION_ACTIVE) {
if ($sessionNamePassed === null) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function __invoke
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function __invoke(array $parsed, array $info)
{
$tagName = $info['tagName'];
if (self::strStartsWithVariable($parsed['desc'])) {
\preg_match('/^(\S*)/', $parsed['desc'], $matches);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function cancel
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function cancel()
{
if ($this->state !== self::PENDING) {
return;
}
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function logListeners
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function logListeners($eventName)
{
$listeners = $this->eventDispatcher->getListeners($eventName);
foreach ($listeners as $i => $listener) {
if (!($listener instanceof \Closure)) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function reduceDataSummary
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function reduceDataSummary()
{
/*
Remove non-essential summary entries
*/
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function isExcluded
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
protected function isExcluded(array $logEntry)
{
$category = $logEntry[2];
if (\strpos($category, 'system.db.') === 0 && \preg_match('/^(Opening|Closing)/', $logEntry[0])) {
return false;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function handleStringToken
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function handleStringToken($token)
{
if ($token === '{') {
$this->depth++;
} elseif ($token === '}') {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function onDebugLog
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function onDebugLog(LogEntry $logEntry)
{
$channelName = $logEntry->getSubject()->getCfg('channelName');
if ($channelName === 'general.doctrine') {
$logEntry['appendLog'] = false;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function walkBranch
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function walkBranch($keys, $val)
{
while (\is_array($val)) {
if (\count($val) > 1) {
break;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function manageQueue
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
protected function manageQueue()
{
$currentTime = \microtime(true);
foreach ($this->queue as $hash => $curlReqRes) {
if (\count($this->processing) >= $this->options['maxConcurrent']) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function recordTokenArray
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private static function recordTokenArray($token) // phpcs:ignore Generic.Metrics.CyclomaticComplexity
{
switch (self::$record) {
case 'namespace':
switch ($token[0]) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"