Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi authored and Frederic Delaunay committed Oct 29, 2018
1 parent 0991494 commit 9a8f863
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/PhpSpreadsheet/Style/Alignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public function getStyleArray($array)

/**
* Apply styles from array.
*
* <code>
* $spreadsheet->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(
* [
Expand All @@ -133,7 +134,7 @@ public function getStyleArray($array)
* 'wrapText' => TRUE
* ]
* );
* </code>.
* </code>
*
* @param array $pStyles Array containing style information
*
Expand Down
4 changes: 3 additions & 1 deletion src/PhpSpreadsheet/Style/Borders.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public function getStyleArray($array)

/**
* Apply styles from array.
*
* <code>
* $spreadsheet->getActiveSheet()->getStyle('B2')->getBorders()->applyFromArray(
* [
Expand All @@ -178,6 +179,7 @@ public function getStyleArray($array)
* ]
* );
* </code>
*
* <code>
* $spreadsheet->getActiveSheet()->getStyle('B2')->getBorders()->applyFromArray(
* [
Expand All @@ -189,7 +191,7 @@ public function getStyleArray($array)
* ]
* ]
* );
* </code>.
* </code>
*
* @param array $pStyles Array containing style information
*
Expand Down
3 changes: 2 additions & 1 deletion src/PhpSpreadsheet/Style/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ public function getStyleArray($array)

/**
* Apply styles from array.
*
* <code>
* $spreadsheet->getActiveSheet()->getStyle('B2')->getFont()->getColor()->applyFromArray(['rgb' => '808080']);
* </code>.
* </code>
*
* @param array $pStyles Array containing style information
*
Expand Down
3 changes: 2 additions & 1 deletion src/PhpSpreadsheet/Style/Fill.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public function getStyleArray($array)

/**
* Apply styles from array.
*
* <code>
* $spreadsheet->getActiveSheet()->getStyle('B2')->getFill()->applyFromArray(
* [
Expand All @@ -134,7 +135,7 @@ public function getStyleArray($array)
* ]
* ]
* );
* </code>.
* </code>
*
* @param array $pStyles Array containing style information
*
Expand Down
1 change: 1 addition & 0 deletions src/PhpSpreadsheet/Style/Font.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public function getStyleArray($array)

/**
* Apply styles from array.
*
* <code>
* $spreadsheet->getActiveSheet()->getStyle('B2')->getFont()->applyFromArray(
* [
Expand Down
3 changes: 2 additions & 1 deletion src/PhpSpreadsheet/Style/NumberFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,14 @@ public function getStyleArray($array)

/**
* Apply styles from array.
*
* <code>
* $spreadsheet->getActiveSheet()->getStyle('B2')->getNumberFormat()->applyFromArray(
* [
* 'formatCode' => NumberFormat::FORMAT_CURRENCY_EUR_SIMPLE
* ]
* );
* </code>.
* </code>
*
* @param array $pStyles Array containing style information
*
Expand Down
1 change: 1 addition & 0 deletions src/PhpSpreadsheet/Style/Protection.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public function getStyleArray($array)

/**
* Apply styles from array.
*
* <code>
* $spreadsheet->getActiveSheet()->getStyle('B2')->getLocked()->applyFromArray(
* [
Expand Down
5 changes: 3 additions & 2 deletions src/PhpSpreadsheet/Worksheet/BaseDrawing.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,12 +365,13 @@ public function setHeight($pValue)
}

/**
* Set width and height with proportional resize
* Set width and height with proportional resize.
*
* Example:
* <code>
* $objDrawing->setResizeProportional(true);
* $objDrawing->setWidthAndHeight(160,120);
* </code>.
* </code>
*
* @author Vincent@luo MSN:kele_100@hotmail.com
*
Expand Down

0 comments on commit 9a8f863

Please sign in to comment.