сode formatting (CS Fixer)
This commit is contained in:
1 parent
40aecd7b90
commit
e8c6d83104
4 files changed
+6
-14
No files matched your search
@@ -147,16 +147,18 @@ class StyleBuilder
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a format
|
||||
*
|
||||
* @api
|
||||
* @param string $format Format
|
||||
* @return StyleBuilder
|
||||
* @api
|
||||
*/
|
||||
public function setFormat($format)
|
||||
{
|
||||
$this->style->setFormat($format);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ class StyleRegistry extends \Box\Spout\Writer\Common\Manager\Style\StyleRegistry
|
||||
* @var array Mapping between built-in format and the associated numFmtId
|
||||
*/
|
||||
protected static $builtinNumFormatToIdMapping = [
|
||||
|
||||
'General' => 0,
|
||||
'0' => 1,
|
||||
'0.00' => 2,
|
||||
@@ -65,7 +64,6 @@ class StyleRegistry extends \Box\Spout\Writer\Common\Manager\Style\StyleRegistry
|
||||
't# ??/??' => 70,
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
@@ -123,7 +121,7 @@ class StyleRegistry extends \Box\Spout\Writer\Common\Manager\Style\StyleRegistry
|
||||
{
|
||||
$registeredStyle = parent::registerStyle($style);
|
||||
$this->registerFill($registeredStyle);
|
||||
$this->registerFormat($registeredStyle);;
|
||||
$this->registerFormat($registeredStyle);
|
||||
$this->registerBorder($registeredStyle);
|
||||
|
||||
return $registeredStyle;
|
||||
@@ -149,6 +147,7 @@ class StyleRegistry extends \Box\Spout\Writer\Common\Manager\Style\StyleRegistry
|
||||
$this->styleIdToFormatsMappingTable[$styleId] = $registeredFormatId;
|
||||
} else {
|
||||
$this->registeredFormats[$format] = $styleId;
|
||||
|
||||
if (isset(self::$builtinNumFormatToIdMapping[$format])) {
|
||||
$id = self::$builtinNumFormatToIdMapping[$format];
|
||||
} else {
|
||||
@@ -156,7 +155,6 @@ class StyleRegistry extends \Box\Spout\Writer\Common\Manager\Style\StyleRegistry
|
||||
}
|
||||
$this->styleIdToFormatsMappingTable[$styleId] = $id;
|
||||
}
|
||||
|
||||
} else {
|
||||
// The formatId maps a style to a format declaration
|
||||
// When there is no format definition - we default to 0 ( General )
|
||||
@@ -258,7 +256,6 @@ class StyleRegistry extends \Box\Spout\Writer\Common\Manager\Style\StyleRegistry
|
||||
null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
@@ -275,7 +272,6 @@ class StyleRegistry extends \Box\Spout\Writer\Common\Manager\Style\StyleRegistry
|
||||
return $this->registeredBorders;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
@@ -283,5 +279,4 @@ class StyleRegistry extends \Box\Spout\Writer\Common\Manager\Style\StyleRegistry
|
||||
{
|
||||
return $this->registeredFormats;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user