Skip to content

Commit

Permalink
php-cs-fxier
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaDafinser committed Nov 6, 2014
1 parent 714dc02 commit 264d10c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ZfcDatagrid/Column/Style/AbstractColor.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class AbstractColor extends AbstractStyle
public function __construct($redOrStaticOrArray, $green = null, $blue = null)
{
if (is_array($redOrStaticOrArray) && count($redOrStaticOrArray) === 3) {
list ($red, $green, $blue) = $redOrStaticOrArray;
list($red, $green, $blue) = $redOrStaticOrArray;
} else {
$red = $redOrStaticOrArray;
}
Expand Down
2 changes: 1 addition & 1 deletion src/ZfcDatagrid/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function getDisplayColumnValue()
*/
public static function isApply($currentValue, $expectedValue, $operator = Filter::EQUAL)
{
list ($currentValue, $expectedValue) = self::convertValues($currentValue, $expectedValue, $operator);
list($currentValue, $expectedValue) = self::convertValues($currentValue, $expectedValue, $operator);

switch ($operator) {

Expand Down
4 changes: 2 additions & 2 deletions src/ZfcDatagrid/Renderer/PHPExcel/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ protected function setHeaderFooter(\PHPExcel_Worksheet $sheet)

$textRight = $translator->translate('Page').' &P / &N';

$sheet->getHeaderFooter ()->setOddHeader ('&L&16&G '.$translator->translate($this->getTitle()));
$sheet->getHeaderFooter ()->setOddFooter ('&R'.$textRight);
$sheet->getHeaderFooter()->setOddHeader('&L&16&G '.$translator->translate($this->getTitle()));
$sheet->getHeaderFooter()->setOddFooter('&R'.$textRight);
}
}
6 changes: 3 additions & 3 deletions src/ZfcDatagrid/Renderer/TCPDF/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ protected function printTableRow(array $row, $rowHeight)
// resizing properly to width + height (and keeping the ratio)
$file = file_get_contents($link);
if ($file !== false) {
list ($width, $height) = $this->calcImageSize($file, $col->getWidth() - 2, $rowHeight - 2);
list($width, $height) = $this->calcImageSize($file, $col->getWidth() - 2, $rowHeight - 2);

$pdf->Image('@'.$file, $x + 1, $y + 1, $width, $height, '', '', 'L', false);
}
Expand Down Expand Up @@ -379,11 +379,11 @@ protected function calcImageSize($imageData, $maxWidth, $maxHeight)
{
$pdf = $this->getPdf();

list ($width, $height) = getimagesizefromstring($imageData);
list($width, $height) = getimagesizefromstring($imageData);
$width = $pdf->pixelsToUnits($width);
$height = $pdf->pixelsToUnits($height);

list ($newWidth, $newHeight) = ImageResize::getCalculatedSize($width, $height, $maxWidth, $maxHeight);
list($newWidth, $newHeight) = ImageResize::getCalculatedSize($width, $height, $maxWidth, $maxHeight);

return array(
$newWidth,
Expand Down

0 comments on commit 264d10c

Please sign in to comment.