Fix code style
This commit is contained in:
1 parent
740fcfb8c1
commit
b968513cb9
171 files changed
+517
-792
No files matched your search
@@ -6,8 +6,6 @@ use Box\Spout\Writer\Common\Creator\Style\StyleBuilder;
|
||||
|
||||
/**
|
||||
* Class StyleRegistryTest
|
||||
*
|
||||
* @package Box\Spout\Writer\ODS\Manager\Style
|
||||
*/
|
||||
class StyleRegistryTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
@@ -17,6 +15,7 @@ class StyleRegistryTest extends \PHPUnit_Framework_TestCase
|
||||
private function getStyleRegistry()
|
||||
{
|
||||
$defaultStyle = (new StyleBuilder())->build();
|
||||
|
||||
return new StyleRegistry($defaultStyle);
|
||||
}
|
||||
|
||||
@@ -29,10 +28,10 @@ class StyleRegistryTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
$this->assertEquals(1, count($styleRegistry->getUsedFonts()), 'There should only be the default font name');
|
||||
|
||||
$style1 = (new StyleBuilder())->setFontName("MyFont1")->build();
|
||||
$style1 = (new StyleBuilder())->setFontName('MyFont1')->build();
|
||||
$styleRegistry->registerStyle($style1);
|
||||
|
||||
$style2 = (new StyleBuilder())->setFontName("MyFont2")->build();
|
||||
$style2 = (new StyleBuilder())->setFontName('MyFont2')->build();
|
||||
$styleRegistry->registerStyle($style2);
|
||||
|
||||
$this->assertEquals(3, count($styleRegistry->getUsedFonts()), 'There should be 3 fonts registered');
|
||||
|
||||
Reference in new issue
Block a user