e107_handlers/media_class.php
Avoid too many return
statements within this method. Open
Open
return $img_data['media_url'];
Avoid too many return
statements within this method. Open
Open
return '{"jsonrpc" : "2.0", "error" : {"code": 102, "message": "Failed to open output stream."}, "id" : "id"}';
Avoid too many return
statements within this method. Open
Open
return $this->processAjaxImport($filePath, $_REQUEST);
Avoid too many return
statements within this method. Open
Open
return false;
Suspicious array access to nullable ?array
Open
Open
$bbcode = varset($option['bbcode']) ? $option['bbcode'] : null;
- Exclude checks
Argument 2 (mode)
is 'rel'
but \e_parse::createConstants()
takes int
defined at /code/e107_handlers/e_parse_class.php:3255
Open
Open
if($sql->select("core_media","media_url","media_url LIKE '%".$tp->createConstants($newpath,'rel')."' LIMIT 1"))
- Exclude checks
Argument 2 (options)
is string
but \e_parse::thumbUrl()
takes array
defined at /code/e107_handlers/e_parse_class.php:2531
Open
Open
$media_path = ($w || $h) ? $tp->thumbUrl($im['media_url'], "&w={$w}") : $tp->thumbUrl($im['media_url']); // $tp->replaceConstants($im['media_url'],'full'); // max-size
- Exclude checks
Argument 2 (options)
is 'w=100'
but \e_parse::thumbUrl()
takes array
defined at /code/e107_handlers/e_parse_class.php:2531
Open
Open
<img src='".e107::getParser()->thumbUrl($image, 'w=100', true)."' alt=\"".$diz."\" style='width: 50px' />
- Exclude checks
Suspicious array access to nullable ?array
Open
Open
$limit = varset($option['limit']) ? $option['limit'] : 20;
- Exclude checks
Suspicious type null
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
$onclicki = "parent.document.getElementById('{$tagid}').value = '{$im['media_url']}';
- Exclude checks
Argument 2 (mode)
is 'rel'
but \e_parse::createConstants()
takes int
defined at /code/e107_handlers/e_parse_class.php:3255
Open
Open
$path = $tp->createConstants($epath, 'rel');
- Exclude checks
Suspicious array access to nullable ?array
Open
Open
$search = varset($option['search']) ? $option['search'] : null;
- Exclude checks
Suspicious array access to nullable ?array
Open
Open
$err = (int) $_FILES['file']['error'];
- Exclude checks
Argument 6 (orderby)
is null
but \e_media::getMedia()
takes string
defined at /code/e107_handlers/media_class.php:508
Open
Open
return $this->getMedia('image', $cat, $from, $amount, $search, $orderby);
- Exclude checks
Suspicious array access to nullable ?array
Open
Open
$navMode = varset($option['nav']) ? TRUE : FALSE;
- Exclude checks
Call to method make
from undeclared class \Intervention\Image\ImageManagerStatic
Open
Open
$thumb = Intervension::make($src);
- Exclude checks
Variable $categories
was undeclared, but array fields are being added to it. Open
Open
$categories[] = "'".$row['media_cat_category']."'";
- Exclude checks
Suspicious type null
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
$onclick_clear = "parent.document.getElementById('{$tagid}').value = '';
- Exclude checks
Suspicious type null
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
$onclick_clear = "parent.document.getElementById('{$tagid}').value = '';
- Exclude checks
Returning type string
but resizeImage()
is declared to return bool
Open
Open
return $destFilePath;
- Exclude checks
Argument 3 (amount)
is 'all'
but \e_media::getImages()
takes int
defined at /code/e107_handlers/media_class.php:491
Open
Open
return $this->getImages($cat, 0, 'all',$search);
- Exclude checks
Suspicious type null
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
$prevId = $tagid."_prev"; // ID of image in Form.
- Exclude checks
Suspicious array access to nullable ?array
Open
Open
$prevAtt = '&aw='.vartrue($option['w'],$w); // .'&ah=100'; // Image Parsed back to Form as PREVIEW image.
- Exclude checks
array to string
conversion Open
Open
$text .= "<button id='admin-ui-media-nav-down' type='button' title='".IMALAN_130."' class='btn btn-default btn-secondary e-nav e-media-nav e-tip' style='outline:0' data-target='media-select-container' data-nav-total='".$total."' data-nav-dir='down' data-nav-inc='".$limit."' data-src='".$data_src."'>«</button>"; // see next page of images.
- Exclude checks
Returning type false
but convertImageToJpeg()
is declared to return string
Open
Open
return false;
- Exclude checks
Argument 2 (mode)
is 'rel'
but \e_parse::createConstants()
takes int
defined at /code/e107_handlers/e_parse_class.php:3255
Open
Open
$path = $tp->createConstants($epath, 'rel');
- Exclude checks
Call to method make
from undeclared class \Intervention\Image\ImageManagerStatic
Open
Open
$thumb = Intervension::make($filePath);
- Exclude checks
Argument 2 (mode)
is 'rel'
but \e_parse::createConstants()
takes int
defined at /code/e107_handlers/e_parse_class.php:3255
Open
Open
return $tp->createConstants($typePath.'/'.$file,'rel');
- Exclude checks
Suspicious array access to nullable ?array
Open
Open
$frm = varset($option['from']) ? $option['from'] : 0;
- Exclude checks
Suspicious type null
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
$text .= "<a data-toggle='context' data-bs-toggle='context' class='thumbnail {$class} e-tip' data-id='{$im['media_id']}' data-width='{$w}' data-height='{$h}' data-src='{$media_path}' data-bbcode='{$data_bb}' data-target='{$tagid}' data-path='{$im['media_url']}' data-preview='{$realPath}' data-alt=\"".$media_alt."\" title=\"".$diz."\" style='float:left' href='#' onclick=\"{$onclicki}\" >";
- Exclude checks
Argument 2 (options)
is string
but \e_parse::thumbUrl()
takes array
defined at /code/e107_handlers/e_parse_class.php:2531
Open
Open
$realPath = $tp->thumbUrl($im['media_url'], $prevAtt); // Parsed back to Form as Preview Image.
- Exclude checks
Assigning int
to property but \e_media->logging
is false
Open
Open
$this->logging = intval($val);
- Exclude checks
Variable $data
was undeclared, but array fields are being added to it. Open
Open
$data['media_cat_'.$k] = $v;
- Exclude checks
Argument 2 (options)
is 'aw=120&ah=120'
but \e_parse::thumbUrl()
takes array
defined at /code/e107_handlers/e_parse_class.php:2531
Open
Open
$img_url = e107::getParser()->thumbUrl($im['media_url'], $thumbAtt);
- Exclude checks
Invalid offset "media_description"
of array type array{}
Open
Open
$img_data['media_description'] = vartrue($new_data['media_description']);
- Exclude checks
Argument 1 (search)
is ?'.gif'|?'.png'
but \str_replace()
takes array|string
Open
Open
$jpgFile = str_replace($type, ".jpg", $oldFile);
- Exclude checks
float|int
to array comparison Open
Open
$dipTotal = (($frm + $limit) < $total) ? ($frm + $limit) : $total;
- Exclude checks
Argument 2 (mode)
is 'rel'
but \e_parse::createConstants()
takes int
defined at /code/e107_handlers/e_parse_class.php:3255
Open
Open
'media_url' => e107::getParser()->createConstants($info['fullpath'], 'rel'),
- Exclude checks
array to string
conversion Open
Open
$text .= "<button id='admin-ui-media-nav-up' type='button' title='".IMALAN_131."' class='btn btn-default btn-secondary e-nav e-media-nav e-tip' style='outline:0;text-align:center' data-target='media-select-container' data-nav-total='".$total."' data-nav-dir='up' data-nav-inc='".$limit."' data-src='".$data_src."' >»</button>"; // see next page of images.
- Exclude checks
Returning type ?array|?bool|?string
but previewTag()
is declared to return bool|string
Open
Open
return $preview;
- Exclude checks
Argument 2 (mode)
is 'rel'
but \e_parse::createConstants()
takes int
defined at /code/e107_handlers/e_parse_class.php:3255
Open
Open
$img_data['media_url'] = $tp->createConstants($newpath,'rel');
- Exclude checks
Argument 2 (options)
is 'w=400&h=240'
but \e_parse::thumbUrl()
takes array
defined at /code/e107_handlers/e_parse_class.php:2531
Open
Open
$defaultThumb = $tp->thumbUrl('','w=400&h=240');
- Exclude checks
Returning type string
but resizeImage()
is declared to return bool
Open
Open
return $destFilePath;
- Exclude checks
Suspicious type null
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
$mes->addDebug("Target: {$tagid}");
- Exclude checks
Invalid offset "media_caption"
of array type array{}
Open
Open
$img_data['media_caption'] = vartrue($new_data['media_caption']);
- Exclude checks
Returning type false
but convertImageToJpeg()
is declared to return string
Open
Open
return false;
- Exclude checks