Skip to content

Commit 57652ec

Browse files
quamisSlamdunk
authored andcommitted
cc, as sugggested in box/spout#738 (comment)
1 parent 6700502 commit 57652ec

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

src/Common/Entity/Row.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Row
2424
* Row height (default is 15)
2525
* @var string
2626
*/
27-
protected $height = "15";
27+
protected $height = '15';
2828

2929
/**
3030
* Row constructor.
@@ -141,18 +141,19 @@ public function toArray()
141141

142142
/**
143143
* Set row height
144-
* @param String $height
144+
* @param string $height
145145
* @return Row
146146
*/
147147
public function setHeight($height)
148148
{
149149
$this->height = $height;
150+
150151
return $this;
151152
}
152153

153154
/**
154155
* Returns row height
155-
* @return String
156+
* @return string
156157
*/
157158
public function getHeight()
158159
{

src/Common/Entity/Style/Style.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,10 +523,11 @@ public function setShouldShrinkToFit($shrinkToFit = true)
523523
{
524524
$this->shrinkToFit = $shrinkToFit;
525525
$this->shouldShrinkToFit = $shrinkToFit;
526+
526527
return $this;
527528
}
528529

529-
/**
530+
/**
530531
* @return bool Whether format should be applied
531532
*/
532533
public function shouldShrinkToFit()

src/Common/Manager/OptionsManagerAbstract.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public function setOption($optionName, $optionValue)
3737
/**
3838
* Add an option to the internal list of options
3939
* Used only for mergeCells() for now
40+
* @param mixed $optionName
41+
* @param mixed $optionValue
4042
* @return void
4143
*/
4244
public function addOption($optionName, $optionValue)

src/Writer/Common/Creator/Style/StyleBuilder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,13 @@ public function setFormat($format)
188188

189189
/**
190190
* Set should shrink to fit
191-
* @param boolean $shrinkToFit
191+
* @param bool $shrinkToFit
192192
* @return void
193193
*/
194194
public function setShouldShrinkToFit($shrinkToFit = true)
195195
{
196196
$this->style->setShouldShrinkToFit($shrinkToFit);
197+
197198
return $this;
198199
}
199200

src/Writer/WriterMultiSheetsAbstract.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function setShouldCreateNewSheetsAutomatically($shouldCreateNewSheetsAuto
6363
public function setColumnWidths(array $columnWidths)
6464
{
6565
$this->optionsManager->setOption(Options::COLUMN_WIDTHS, $columnWidths);
66+
6667
return $this;
6768
}
6869

@@ -75,6 +76,7 @@ public function setColumnWidths(array $columnWidths)
7576
public function mergeCells(array $range1, array $range2)
7677
{
7778
$this->optionsManager->addOption(Options::MERGE_CELLS, [$range1, $range2]);
79+
7880
return $this;
7981
}
8082

0 commit comments

Comments
 (0)