From 264d10c3cfd1eabfe10c669a9a38893191818044 Mon Sep 17 00:00:00 2001 From: Martin Keckeis Date: Thu, 6 Nov 2014 14:21:16 +0100 Subject: [PATCH] php-cs-fxier --- src/ZfcDatagrid/Column/Style/AbstractColor.php | 2 +- src/ZfcDatagrid/Filter.php | 2 +- src/ZfcDatagrid/Renderer/PHPExcel/Renderer.php | 4 ++-- src/ZfcDatagrid/Renderer/TCPDF/Renderer.php | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ZfcDatagrid/Column/Style/AbstractColor.php b/src/ZfcDatagrid/Column/Style/AbstractColor.php index 2ad108fd..89af4537 100644 --- a/src/ZfcDatagrid/Column/Style/AbstractColor.php +++ b/src/ZfcDatagrid/Column/Style/AbstractColor.php @@ -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; } diff --git a/src/ZfcDatagrid/Filter.php b/src/ZfcDatagrid/Filter.php index 446ffadb..c2e746cd 100644 --- a/src/ZfcDatagrid/Filter.php +++ b/src/ZfcDatagrid/Filter.php @@ -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) { diff --git a/src/ZfcDatagrid/Renderer/PHPExcel/Renderer.php b/src/ZfcDatagrid/Renderer/PHPExcel/Renderer.php index 6b0b8e65..452c9897 100644 --- a/src/ZfcDatagrid/Renderer/PHPExcel/Renderer.php +++ b/src/ZfcDatagrid/Renderer/PHPExcel/Renderer.php @@ -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); } } diff --git a/src/ZfcDatagrid/Renderer/TCPDF/Renderer.php b/src/ZfcDatagrid/Renderer/TCPDF/Renderer.php index 4ae9ebe3..f263773f 100644 --- a/src/ZfcDatagrid/Renderer/TCPDF/Renderer.php +++ b/src/ZfcDatagrid/Renderer/TCPDF/Renderer.php @@ -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); } @@ -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,