NULLs changed to lowercase to meet PSR.
This commit is contained in:
parent
f049c48c59
commit
9c9f7eb7c6
|
|
@ -28,9 +28,9 @@ $phpWord->addParagraphStyle('centerTab', array(
|
||||||
$section = $phpWord->addSection();
|
$section = $phpWord->addSection();
|
||||||
|
|
||||||
// Add listitem elements
|
// Add listitem elements
|
||||||
$section->addText("Multiple Tabs:\tOne\tTwo\tThree", NULL, 'multipleTab');
|
$section->addText("Multiple Tabs:\tOne\tTwo\tThree", null, 'multipleTab');
|
||||||
$section->addText("Left Aligned\tRight Aligned", NULL, 'rightTab');
|
$section->addText("Left Aligned\tRight Aligned", null, 'rightTab');
|
||||||
$section->addText("\tCenter Aligned", NULL, 'centerTab');
|
$section->addText("\tCenter Aligned", null, 'centerTab');
|
||||||
|
|
||||||
// Save file
|
// Save file
|
||||||
$name = basename(__FILE__, '.php');
|
$name = basename(__FILE__, '.php');
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ class Tab extends AbstractStyle
|
||||||
*
|
*
|
||||||
* @param string $val Defaults to 'clear' if value is not possible.
|
* @param string $val Defaults to 'clear' if value is not possible.
|
||||||
* @param int $position Must be an integer; otherwise defaults to 0.
|
* @param int $position Must be an integer; otherwise defaults to 0.
|
||||||
* @param string $leader Defaults to NULL if value is not possible.
|
* @param string $leader Defaults to null if value is not possible.
|
||||||
*/
|
*/
|
||||||
public function __construct($val = null, $position = 0, $leader = null)
|
public function __construct($val = null, $position = 0, $leader = null)
|
||||||
{
|
{
|
||||||
|
|
@ -85,7 +85,7 @@ class Tab extends AbstractStyle
|
||||||
// Default to 0 if the position is non-numeric
|
// Default to 0 if the position is non-numeric
|
||||||
$this->position = (is_numeric($position)) ? intval($position) : 0;
|
$this->position = (is_numeric($position)) ? intval($position) : 0;
|
||||||
|
|
||||||
// Default to NULL if no tab leader
|
// Default to null if no tab leader
|
||||||
$this->leader = (self::isLeaderType($leader)) ? $leader : null;
|
$this->leader = (self::isLeaderType($leader)) ? $leader : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue