Showing 759 of 1,838 total issues
Function easeOutBounce
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeOutBounce: function (x, t, b, c, d) {
Function easeOutElastic
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeOutElastic: function (x, t, b, c, d) {
Function easeInOutElastic
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInOutElastic: function (x, t, b, c, d) {
Function easeInOutCirc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInOutCirc: function (x, t, b, c, d) {
Function easeInBounce
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInBounce: function (x, t, b, c, d) {
Function easeInOutBounce
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInOutBounce: function (x, t, b, c, d) {
Method handle_file_upload
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
private function handle_file_upload($uploaded_file, $name, $size, $type, $error)
Method sendMails
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function sendMails($fromUserId, $toUserId, $event, $link, array $data)
Method getSharingDiv
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function getSharingDiv($id, $priv, $permalink, $desc, $username)
Method truncateHtml
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public static function truncateHtml($text, $length = 100, $ending = '...', $exact = false, $considerHtml = true)
Method input
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function input($name, $id, $class, $size = null, $preset = null)
Method getSharingDiv
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function getSharingDiv($id, $priv, $permalink, $desc, $username)
Method handle_file_upload
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
private function handle_file_upload($uploaded_file, $name, $size, $type, $error)
Method retrieveRadio
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function retrieveRadio($name, $options, $valuearray, $selected = null, $sep = '<br>')
Function flatten
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function flatten($array)
{
$return = [];
while (count($array)) {
$value = array_shift($array);
- 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 doCheckUpdate
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function doCheckUpdate()
{
global $pathIcon16;
$version = $this->ModuleInstallVersion();
$critical = 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 mostactiveusers_today
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function mostactiveusers_today()
{
$sql = 'SELECT uid_fk, COUNT( * ) as cnt ';
$sql .= 'FROM ( ';
$sql .= 'SELECT uid_fk ';
- 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 orient_image
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
protected function orient_image($file_path)
{
if (!function_exists('exif_read_data')) {
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 getEditor
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public static function getEditor($helper = null, $options = null)
{
/** @var Helper $helper */
if (null === $options) {
$options = [];
- 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 getDirectoryStatus
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public static function getDirectoryStatus($path, $mode = 0777, $redirectFile = null)
{
global $pathIcon16;
if (empty($path)) {
- 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"