@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public function deny(Host $host) |
49 | 49 | { |
50 | - $this->addLine('deny from ' . $host->toString()); |
|
50 | + $this->addLine('deny from '.$host->toString()); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function undeny(Host $host) |
59 | 59 | { |
60 | - $this->removeLine('deny from ' . $host->toString()); |
|
60 | + $this->removeLine('deny from '.$host->toString()); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | $insertion = array(); |
88 | 88 | foreach ($lines as $line) { |
89 | - $insertion[] = '#' . $line; |
|
89 | + $insertion[] = '#'.$line; |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | $this->writeLines($insertion); |
@@ -222,9 +222,9 @@ discard block |
||
222 | 222 | if ($this->isEndOfSection($oldLine)) { |
223 | 223 | $newLines = array_merge( |
224 | 224 | $newLines, |
225 | - array('# BEGIN ' . self::$sectionLabel), |
|
225 | + array('# BEGIN '.self::$sectionLabel), |
|
226 | 226 | $lines, |
227 | - array('# END ' . self::$sectionLabel) |
|
227 | + array('# END '.self::$sectionLabel) |
|
228 | 228 | ); |
229 | 229 | |
230 | 230 | $sectionExists = true; |
@@ -239,9 +239,9 @@ discard block |
||
239 | 239 | if (!$sectionExists) { |
240 | 240 | $newLines = array_merge( |
241 | 241 | $oldLines, |
242 | - array('# BEGIN ' . self::$sectionLabel), |
|
242 | + array('# BEGIN '.self::$sectionLabel), |
|
243 | 243 | $lines, |
244 | - array('# END ' . self::$sectionLabel) |
|
244 | + array('# END '.self::$sectionLabel) |
|
245 | 245 | ); |
246 | 246 | } |
247 | 247 | |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | */ |
258 | 258 | private function isBeginOfSection($line) |
259 | 259 | { |
260 | - return strpos($line, '# BEGIN ' . self::$sectionLabel) === 0; |
|
260 | + return strpos($line, '# BEGIN '.self::$sectionLabel) === 0; |
|
261 | 261 | } |
262 | 262 | |
263 | 263 | /** |
@@ -269,6 +269,6 @@ discard block |
||
269 | 269 | */ |
270 | 270 | private function isEndOfSection($line) |
271 | 271 | { |
272 | - return strpos($line, '# END ' . self::$sectionLabel) === 0; |
|
272 | + return strpos($line, '# END '.self::$sectionLabel) === 0; |
|
273 | 273 | } |
274 | 274 | } |