Fix code before applying PHP CS Fixer

This commit is contained in:
Adrien Loison committed 2017-09-06 00:33:43 +02:00
1 parent 554ebf987b
commit 740fcfb8c1
21 files changed
+96 -79

No files matched your search

+4 -4
View File
@@ -479,10 +479,10 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
/**
* @param string $fileName
* @param string|void $fieldDelimiter
* @param string|void $fieldEnclosure
* @param string|void $encoding
* @param bool|void $shouldPreserveEmptyRows
* @param string $fieldDelimiter
* @param string $fieldEnclosure
* @param string $encoding
* @param bool $shouldPreserveEmptyRows
* @return array All the read rows the given file
*/
private function getAllRowsForFile(
+1 -1
View File
@@ -81,7 +81,7 @@ class SpoutTestStream
/**
* @param int $offset
* @param int|void $whence
* @param int $whence
* @return bool
*/
public function stream_seek($offset, $whence = SEEK_SET)
+2 -2
View File
@@ -521,8 +521,8 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
/**
* @param string $fileName
* @param bool|void $shouldFormatDates
* @param bool|void $shouldPreserveEmptyRows
* @param bool $shouldFormatDates
* @param bool $shouldPreserveEmptyRows
* @return array All the read rows the given file
*/
private function getAllRowsForFile($fileName, $shouldFormatDates = false, $shouldPreserveEmptyRows = false)
@@ -16,8 +16,8 @@ class StyleManagerTest extends \PHPUnit_Framework_TestCase
{
/**
* @param array|void $styleAttributes
* @param array|void $customNumberFormats
* @param array $styleAttributes
* @param array $customNumberFormats
* @return StyleManager
*/
private function getStyleManagerMock($styleAttributes = [], $customNumberFormats = [])
+2 -2
View File
@@ -621,8 +621,8 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
/**
* @param string $fileName
* @param bool|void $shouldFormatDates
* @param bool|void $shouldPreserveEmptyRows
* @param bool $shouldFormatDates
* @param bool $shouldPreserveEmptyRows
* @return array All the read rows the given file
*/
private function getAllRowsForFile($fileName, $shouldFormatDates = false, $shouldPreserveEmptyRows = false)
+1 -1
View File
@@ -51,7 +51,7 @@ class ReflectionHelper
* @param string $class
* @param string $valueName
* @param mixed|null $value
* @param bool|void $saveOriginalValue
* @param bool $saveOriginalValue
* @return void
*/
public static function setStaticValue($class, $valueName, $value, $saveOriginalValue = true)
@@ -504,7 +504,8 @@ class WriterWithStyleTest extends \PHPUnit_Framework_TestCase
$bordersApplied = 0;
/** @var \DOMElement $node */
foreach ($styleXfsElements->childNodes as $node) {
if ($node->getAttribute('applyBorder') == 1) {
$shouldApplyBorder = ((int) $node->getAttribute('applyBorder') === 1);
if ($shouldApplyBorder) {
$bordersApplied++;
$this->assertTrue((int)$node->getAttribute('borderId') > 0, 'BorderId is greater than 0');
} else {