lib/Skoch/Filter/File/Adapter/Gd.php
Method crop
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function crop($x, $y, $x1, $y1, $file, $target, $thumbwidth)
{
list(, , $type) = getimagesize($file);
$source = false;
- Create a ticketCreate a ticket
Method thumbnail
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function thumbnail($file, $target, $thumbwidth)
{
list($width, $height, $type) = getimagesize($file);
$source = false;
- Create a ticketCreate a ticket
Method createThumbnail
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function createThumbnail($width, $height, $target, $thumb, $source, $oldWidth, $oldHeight)
{
imagealphablending($thumb, false);
imagesavealpha($thumb, true);
- Create a ticketCreate a ticket
Method crop
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function crop($x, $y, $x1, $y1, $file, $target, $thumbwidth)
- Create a ticketCreate a ticket
Method createThumbnail
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private function createThumbnail($width, $height, $target, $thumb, $source, $oldWidth, $oldHeight)
- Create a ticketCreate a ticket
Method calculateMetrics
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private function calculateMetrics($width, $height, $keepRatio, $keepSmaller, $oldWidth, $oldHeight)
- Create a ticketCreate a ticket
Method resize
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function resize($width,
$height,
$keepRatio,
$file,
$target,
- Create a ticketCreate a ticket