@@ -175,14 +175,14 @@ discard block |
||
| 175 | 175 | { |
| 176 | 176 | $valid = false; |
| 177 | 177 | $message = sprintf('Item name is not allowed! Not allowed item names: %s', |
| 178 | - implode(', ', $this->invalidItemNames)); |
|
| 178 | + implode(', ', $this->invalidItemNames)); |
|
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | if (preg_match(sprintf('/[%s]/', $this->invalidCharsForItemNames), $name) > 0) |
| 182 | 182 | { |
| 183 | 183 | $valid = false; |
| 184 | 184 | $message = sprintf('Invalid name for ini item! Provided item name contains not ' . |
| 185 | - 'allowed chars (%s).', $this->invalidCharsForItemNames); |
|
| 185 | + 'allowed chars (%s).', $this->invalidCharsForItemNames); |
|
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | return [$valid, $message]; |
@@ -205,8 +205,8 @@ discard block |
||
| 205 | 205 | if (!is_array($sectionContents)) |
| 206 | 206 | { |
| 207 | 207 | throw new InvalidDataException(sprintf('Orphan fields are not allowed! ' . |
| 208 | - 'Please define a section for field "%s".', |
|
| 209 | - $sectionName)); |
|
| 208 | + 'Please define a section for field "%s".', |
|
| 209 | + $sectionName)); |
|
| 210 | 210 | } |
| 211 | 211 | $parsedContents[$sectionName] = new IniSection($sectionName); |
| 212 | 212 | $parsedContents[$sectionName]->setContents($sectionContents); |
@@ -216,8 +216,8 @@ discard block |
||
| 216 | 216 | if (!isset($parsedContents[$parentName])) |
| 217 | 217 | { |
| 218 | 218 | throw new InvalidDataException(sprintf('Parent section not found! ' . |
| 219 | - 'Define "%s" section before "%s" section.', |
|
| 220 | - $parentName, $sectionName)); |
|
| 219 | + 'Define "%s" section before "%s" section.', |
|
| 220 | + $parentName, $sectionName)); |
|
| 221 | 221 | } |
| 222 | 222 | $parsedContents[$sectionName]->setParent($parsedContents[$parentName]); |
| 223 | 223 | } |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | if (!is_array($data)) |
| 58 | 58 | { |
| 59 | 59 | throw new InvalidDataException('Invalid section contents! ' . |
| 60 | - 'Section contents must be an array.'); |
|
| 60 | + 'Section contents must be an array.'); |
|
| 61 | 61 | } |
| 62 | 62 | $this->contents = IniParser::i()->itemValuetoStringRepresentation($data); |
| 63 | 63 | |
@@ -89,8 +89,8 @@ |
||
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | $localFileName = $pathInfo['dirname'] . DIRECTORY_SEPARATOR |
| 92 | - . $this->composeLocalFileName($pathInfo['filename'], |
|
| 93 | - $pathInfo['extension']); |
|
| 92 | + . $this->composeLocalFileName($pathInfo['filename'], |
|
| 93 | + $pathInfo['extension']); |
|
| 94 | 94 | if (is_file($localFileName) && is_readable($localFileName)) |
| 95 | 95 | { |
| 96 | 96 | $file = $localFileName; |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | if ($this->hasSection($section->getName())) |
| 90 | 90 | { |
| 91 | 91 | throw new InvalidDataException(sprintf('Section "%s" already exists!', |
| 92 | - $section->getName())); |
|
| 92 | + $section->getName())); |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | if ($section->hasParent()) |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | if (!isset($this->sections[$section->getParent()->getName()])) |
| 98 | 98 | { |
| 99 | 99 | throw new InvalidDataException(sprintf('Parent section "%s" does not exists!', |
| 100 | - $section->getParent()->getName())); |
|
| 100 | + $section->getParent()->getName())); |
|
| 101 | 101 | } |
| 102 | 102 | } |
| 103 | 103 | |