Completed
Push — master ( a71ff0...f66167 )
by Jan-Paul
02:15
created
src/HtaccessFirewall.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
120 120
         $message = trim($message);
121 121
         $message = str_replace('"', '', $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'),
@@ -253,9 +253,9 @@  discard block
 block discarded – undo
253 253
             if ($this->isEndOfSection($oldLine)) {
254 254
                 $newLines = array_merge(
255 255
                     $newLines,
256
-                    array('# BEGIN ' . self::$sectionLabel),
256
+                    array('# BEGIN '.self::$sectionLabel),
257 257
                     $lines,
258
-                    array('# END ' . self::$sectionLabel)
258
+                    array('# END '.self::$sectionLabel)
259 259
                 );
260 260
 
261 261
                 $sectionExists = true;
@@ -270,9 +270,9 @@  discard block
 block discarded – undo
270 270
         if (!$sectionExists) {
271 271
             $newLines = array_merge(
272 272
                 $oldLines,
273
-                array('# BEGIN ' . self::$sectionLabel),
273
+                array('# BEGIN '.self::$sectionLabel),
274 274
                 $lines,
275
-                array('# END ' . self::$sectionLabel)
275
+                array('# END '.self::$sectionLabel)
276 276
             );
277 277
         }
278 278
 
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
      */
289 289
     private function isBeginOfSection($line)
290 290
     {
291
-        return strpos($line, '# BEGIN ' . self::$sectionLabel) === 0;
291
+        return strpos($line, '# BEGIN '.self::$sectionLabel) === 0;
292 292
     }
293 293
 
294 294
     /**
@@ -300,6 +300,6 @@  discard block
 block discarded – undo
300 300
      */
301 301
     private function isEndOfSection($line)
302 302
     {
303
-        return strpos($line, '# END ' . self::$sectionLabel) === 0;
303
+        return strpos($line, '# END '.self::$sectionLabel) === 0;
304 304
     }
305 305
 }
Please login to merge, or discard this patch.