Completed
Pull Request — master (#84)
by Chris
04:16
created
src/Middleware/BlockSpam.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
             if ( file_exists( ' __DIR__.'/../../../../vendor/piwik/referrer-spam-blacklist/spammers.txt' ) ) { 
21 21
                 $spammers = __DIR__.'/../../../../vendor/piwik/referrer-spam-blacklist/spammers.txt';
22 22
             } else if ( file_exists( ' __DIR__.'/../../../../piwik/referrer-spam-blacklist/spammers.txt' ) ) { 
23
-                 $spammers = __DIR__.'/../../../../piwik/referrer-spam-blacklist/spammers.txt';
23
+                    $spammers = __DIR__.'/../../../../piwik/referrer-spam-blacklist/spammers.txt';
24 24
             } else {
25 25
                 $spammers  =  null;
26 26
             }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@
 block discarded – undo
17 17
     public function __construct($spammers = null)
18 18
     {
19 19
         if ($spammers === null) {
20
-            if ( file_exists( ' __DIR__.'/../../../../vendor/piwik/referrer-spam-blacklist/spammers.txt' ) ) { 
21
-                $spammers = __DIR__.'/../../../../vendor/piwik/referrer-spam-blacklist/spammers.txt';
22
-            } else if ( file_exists( ' __DIR__.'/../../../../piwik/referrer-spam-blacklist/spammers.txt' ) ) { 
20
+            if (file_exists(' __DIR__.' / ../.. / ../.. / vendor / piwik / referrer - spam - blacklist / spammers.txt' ) ) { 
21
+                $spammers = __DIR__.'/.. / ../.. / ../vendor / piwik / referrer - spam - blacklist / spammers.txt';
22
+            } else if ( file_exists( ' __DIR__.'/../../../../piwik/referrer-spam-blacklist/spammers.txt')) { 
23 23
                  $spammers = __DIR__.'/../../../../piwik/referrer-spam-blacklist/spammers.txt';
24 24
             } else {
25
-                $spammers  =  null;
25
+                $spammers  = null;
26 26
             }
27 27
         } 
28 28
 
Please login to merge, or discard this patch.