Fix indentation as suggested by Scrunitizer

This commit is contained in:
Adrien Crivelli 2017-01-05 12:26:20 +09:00
parent e9d03cc6d3
commit ec928d393f
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
12 changed files with 51 additions and 64 deletions

View File

@ -52,10 +52,7 @@ class AdvancedValueBinderTest extends \PHPUnit_Framework_TestCase
*/ */
public function testCurrency($value, $valueBinded, $format, $thousandsSeparator, $decimalSeparator, $currencyCode) public function testCurrency($value, $valueBinded, $format, $thousandsSeparator, $decimalSeparator, $currencyCode)
{ {
$sheet = $this->getMock( $sheet = $this->getMock(Worksheet::class, ['getStyle', 'getNumberFormat', 'setFormatCode', 'getCellCacheController']);
Worksheet::class,
['getStyle', 'getNumberFormat', 'setFormatCode', 'getCellCacheController']
);
$cache = $this->getMockBuilder(Memory::class) $cache = $this->getMockBuilder(Memory::class)
->disableOriginalConstructor() ->disableOriginalConstructor()
->getMock(); ->getMock();

View File

@ -7,7 +7,6 @@ use PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\Column;
class RuleTest extends \PHPUnit_Framework_TestCase class RuleTest extends \PHPUnit_Framework_TestCase
{ {
private $testAutoFilterRuleObject; private $testAutoFilterRuleObject;
private $mockAutoFilterColumnObject; private $mockAutoFilterColumnObject;
public function setUp() public function setUp()

View File

@ -20,10 +20,7 @@ class ColumnTest extends \PHPUnit_Framework_TestCase
->method('testColumnInRange') ->method('testColumnInRange')
->will($this->returnValue(3)); ->will($this->returnValue(3));
$this->testAutoFilterColumnObject = new AutoFilter\Column( $this->testAutoFilterColumnObject = new AutoFilter\Column($this->testInitialColumn, $this->mockAutoFilterObject);
$this->testInitialColumn,
$this->mockAutoFilterObject
);
} }
public function testGetColumnIndex() public function testGetColumnIndex()

View File

@ -10,11 +10,8 @@ use PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\Column;
class AutoFilterTest extends \PHPUnit_Framework_TestCase class AutoFilterTest extends \PHPUnit_Framework_TestCase
{ {
private $testInitialRange = 'H2:O256'; private $testInitialRange = 'H2:O256';
private $testAutoFilterObject; private $testAutoFilterObject;
private $mockWorksheetObject; private $mockWorksheetObject;
private $mockCacheController; private $mockCacheController;
public function setUp() public function setUp()
@ -29,10 +26,7 @@ class AutoFilterTest extends \PHPUnit_Framework_TestCase
->method('getCellCacheController') ->method('getCellCacheController')
->will($this->returnValue($this->mockCacheController)); ->will($this->returnValue($this->mockCacheController));
$this->testAutoFilterObject = new AutoFilter( $this->testAutoFilterObject = new AutoFilter($this->testInitialRange, $this->mockWorksheetObject);
$this->testInitialRange,
$this->mockWorksheetObject
);
} }
public function testToString() public function testToString()