Skip to content

Commit 43e1635

Browse files
committed
rebased
1 parent 39cc393 commit 43e1635

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

src/PhpWord/Element/CheckBox.php

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function getName()
8080
}
8181

8282
/**
83-
* set default checked status.
83+
* Set default checked status.
8484
*
8585
* @return CheckBox
8686
*/
@@ -92,29 +92,11 @@ public function setDefault(bool $default = false)
9292
}
9393

9494
/**
95-
* get default checked status.
95+
* Set default checked status.
9696
*/
9797
public function isDefault(): bool
9898
{
9999
return $this->default;
100100
}
101101

102-
/**
103-
* set default checked status
104-
* @param bool $default
105-
*/
106-
public function setDefault(bool $default = false)
107-
{
108-
$this->default = $default;
109-
return $this;
110-
}
111-
112-
/**
113-
* get default checked status
114-
* @return bool
115-
*/
116-
public function isDefault(): bool
117-
{
118-
return $this->default;
119-
}
120102
}

tests/PhpWordTests/Element/CheckBoxTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function testParagraph(): void
8787
}
8888

8989
/**
90-
* Get default value.
90+
* Set and get default value.
9191
*/
9292
public function testDefault(): void
9393
{

0 commit comments

Comments
 (0)