Showing 172 of 2,465 total issues
Consider simplifying this complex logical expression. Open
Open
if (
$rule === '*'
|| $rule === $ip
|| (
$ip !== null
Consider simplifying this complex logical expression. Open
Open
if ($associative && isset($params[$name]) && $params[$name] instanceof $className) {
$args[] = $params[$name];
unset($params[$name]);
} elseif (!$associative && isset($params[0]) && $params[0] instanceof $className) {
$args[] = array_shift($params);
Method loadFilesRecursive
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static function loadFilesRecursive($key, $names, $tempNames, $types, $sizes, $errors, $fullPaths, $tempResources)
Method saveMessagesCategoryToPHP
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected function saveMessagesCategoryToPHP($messages, $fileName, $overwrite, $removeUnused, $sort, $category, $markUnused)
Method saveMessagesToPO
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected function saveMessagesToPO($messages, $dirName, $overwrite, $removeUnused, $sort, $catalog, $markUnused)
Method saveMessagesToDb
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected function saveMessagesToDb($messages, $db, $sourceMessageTable, $messageTable, $removeUnused, $languages, $markUnused)
Method addForeignKey
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function addForeignKey($name, $table, $columns, $refTable, $refColumns, $delete = null, $update = null)
Method addForeignKey
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function addForeignKey($name, $table, $columns, $refTable, $refColumns, $delete = null, $update = null)
Method addForeignKey
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function addForeignKey($name, $table, $columns, $refTable, $refColumns, $delete = null, $update = null)
Method addForeignKey
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function addForeignKey($name, $table, $columns, $refTable, $refColumns, $delete = null, $update = null)
Method addForeignKey
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function addForeignKey($name, $table, $columns, $refTable, $refColumns, $delete = null, $update = null)
Avoid deeply nested control flow statements. Open
Open
if (in_array($previousToken, [T_OBJECT_OPERATOR, T_PAAMAYIM_NEKUDOTAYIM], true)) {
$matchedTokensCount = 0;
continue;
}
Avoid deeply nested control flow statements. Open
Open
if (!@rmdir($fullPath)) {
$error = error_get_last();
Yii::warning("Unable to remove directory '{$fullPath}': {$error['message']}", __METHOD__);
}
Avoid deeply nested control flow statements. Open
Open
if ($oneUp === 10) {
$oneUp = 0;
$carry = 1;
}
Avoid deeply nested control flow statements. Open
Open
if ($carry === 0) {
break;
}
Consider simplifying this complex logical expression. Open
Open
if ($this->matchAction($action)
&& $this->matchRole($user)
&& $this->matchIP($request->getUserIP())
&& $this->matchVerb($request->getMethod())
&& $this->matchController($action->controller)
Consider simplifying this complex logical expression. Open
Open
if (isset($_SERVER['SCRIPT_NAME']) && basename($_SERVER['SCRIPT_NAME']) === $scriptName) {
$this->_scriptUrl = $_SERVER['SCRIPT_NAME'];
} elseif (isset($_SERVER['PHP_SELF']) && basename($_SERVER['PHP_SELF']) === $scriptName) {
$this->_scriptUrl = $_SERVER['PHP_SELF'];
} elseif (isset($_SERVER['ORIG_SCRIPT_NAME']) && basename($_SERVER['ORIG_SCRIPT_NAME']) === $scriptName) {
Consider simplifying this complex logical expression. Open
Open
if ($isArray) {
$params[$name] = (array)$params[$name];
} elseif (is_array($params[$name])) {
$isValid = false;
} elseif (
Consider simplifying this complex logical expression. Open
Open
if ($date === false || ($errors !== false && ($errors['error_count'] || $errors['warning_count'])) || ($this->strictDateFormat && $date->format($format) !== $value)) {
return false;
}
Consider simplifying this complex logical expression. Open
Open
if ($checkDateTimeInfo) {
$timestamp = new DateTime($value, new DateTimeZone($this->defaultTimeZone));
$info = date_parse($value);
return [
$timestamp,