@@ -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); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $message = trim($message); |
121 | 121 | $message = htmlentities($message); |
122 | 122 | |
123 | - $line = 'ErrorDocument 403 "' . $message . '"'; |
|
123 | + $line = 'ErrorDocument 403 "'.$message.'"'; |
|
124 | 124 | |
125 | 125 | $insertion = array_merge( |
126 | 126 | array('order allow,deny'), |
@@ -283,9 +283,9 @@ discard block |
||
283 | 283 | if ($this->isEndOfSection($oldLine)) { |
284 | 284 | $newLines = array_merge( |
285 | 285 | $newLines, |
286 | - array('# BEGIN ' . self::$sectionLabel), |
|
286 | + array('# BEGIN '.self::$sectionLabel), |
|
287 | 287 | $lines, |
288 | - array('# END ' . self::$sectionLabel) |
|
288 | + array('# END '.self::$sectionLabel) |
|
289 | 289 | ); |
290 | 290 | |
291 | 291 | $sectionExists = true; |
@@ -300,9 +300,9 @@ discard block |
||
300 | 300 | if (!$sectionExists) { |
301 | 301 | $newLines = array_merge( |
302 | 302 | $oldLines, |
303 | - array('# BEGIN ' . self::$sectionLabel), |
|
303 | + array('# BEGIN '.self::$sectionLabel), |
|
304 | 304 | $lines, |
305 | - array('# END ' . self::$sectionLabel) |
|
305 | + array('# END '.self::$sectionLabel) |
|
306 | 306 | ); |
307 | 307 | } |
308 | 308 | |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | */ |
319 | 319 | private function isBeginOfSection($line) |
320 | 320 | { |
321 | - return strpos($line, '# BEGIN ' . self::$sectionLabel) === 0; |
|
321 | + return strpos($line, '# BEGIN '.self::$sectionLabel) === 0; |
|
322 | 322 | } |
323 | 323 | |
324 | 324 | /** |
@@ -330,6 +330,6 @@ discard block |
||
330 | 330 | */ |
331 | 331 | private function isEndOfSection($line) |
332 | 332 | { |
333 | - return strpos($line, '# END ' . self::$sectionLabel) === 0; |
|
333 | + return strpos($line, '# END '.self::$sectionLabel) === 0; |
|
334 | 334 | } |
335 | 335 | } |