Skip to content

Commit 177c523

Browse files
committed
Remove underscore prefix from all private properties name
1 parent a218202 commit 177c523

File tree

24 files changed

+447
-424
lines changed

24 files changed

+447
-424
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ This is the changelog between releases of PHPWord. Releases are listed in revers
5555
- Container: Create new Container abstract class - @ivanlanin GH-187
5656
- Element: Create new Element abstract class - @ivanlanin GH-187
5757
- Media: Refactor media class to use one method for all docPart (section, header, footer, footnote) - @ivanlanin GH-187
58+
- General: Remove underscore prefix from all private properties name
5859

5960
## 0.9.1 - 27 Mar 2014
6061

src/PhpWord/Container/Section.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public function setSettings($settings = null)
6666
{
6767
if (!is_null($settings) && is_array($settings)) {
6868
foreach ($settings as $key => $value) {
69-
if (substr($key, 0, 1) != '_') {
70-
$key = '_' . $key;
69+
if (substr($key, 0, 1) == '_') {
70+
$key = substr($key, 1);
7171
}
7272
$this->settings->setSettingValue($key, $value);
7373
}

0 commit comments

Comments
 (0)