Skip to content

Commit

Permalink
Remove variables assigned to itself
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsource-autofix[bot] committed May 16, 2022
1 parent 331b935 commit b792ab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions protected/library/MPDF/classes/grad.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,8 @@ function parseMozGradient($bg) {
// [<point> || <angle>,] = [<% em px left center right bottom top> || <deg grad rad 0>,]
if (preg_match('/([\-]*[0-9\.]+)(deg|grad|rad)/i',$bgr[0],$m)) {
$angle = $m[1] + 0;
if (strtolower($m[2])=='deg') { $angle = $angle; }
else if (strtolower($m[2])=='grad') { $angle *= (360/400); }
if (strtolower($m[2])=='deg') {
} else if (strtolower($m[2])=='grad') { $angle *= (360/400); }
else if (strtolower($m[2])=='rad') { $angle = rad2deg($angle); }
while($angle < 0) { $angle += 360; }
$angle = ($angle % 360);
Expand Down
1 change: 0 additions & 1 deletion protected/library/MPDF/mpdfi/fpdi_pdf_parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ function _rebuildContentStream($obj) {
$stream = $decoder->decode($stream);
break;
case null:
$stream = $stream;
break;
default:
$this->fpdi->error(sprintf("Unsupported Filter: %s",$_filter[1]));
Expand Down

0 comments on commit b792ab0

Please sign in to comment.