Test Failed
Push — master ( e18acf...2713a2 )
by Marcio
12:48
created
src/Ballybran/Helpers/Utility/Ucfirst.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,8 +85,10 @@
 block discarded – undo
85 85
                 if ($characterDeficit == 0) {
86 86
                     //If the word is full and we're not short any characters, ignore the character
87 87
                     continue;
88
-                }else 
89
-                    $characterDeficit--; //If we are short some characters, decrement the defecit and carry on with adding the character to the abbreviation
88
+                } else {
89
+                                    $characterDeficit--;
90
+                }
91
+                //If we are short some characters, decrement the defecit and carry on with adding the character to the abbreviation
90 92
             }
91 93
             $abbreviation .= $currentChar; //Add the character to the abbreviation
92 94
             $abbrevLength++; //Increment abbreviation length
Please login to merge, or discard this patch.
src/Ballybran/Helpers/Http/FileSystem.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
 
113 113
                 $this->explode = explode('.', $this->name);
114 114
             }
115
-            }else {
115
+            } else {
116 116
                 $this->name = $_FILES[$filename]['name'];
117 117
                 $this->size = $_FILES[$filename]['size'];
118 118
                 $this->type = $_FILES[$filename]['type'];
Please login to merge, or discard this patch.
src/Ballybran/Library/CSSCache.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,8 +54,9 @@  discard block
 block discarded – undo
54 54
     private function style_changed()
55 55
     {
56 56
         foreach ($this->filenames as $filename) {
57
-            if (!is_file($this->get_cache_name($filename)))
58
-                return true;
57
+            if (!is_file($this->get_cache_name($filename))) {
58
+                            return true;
59
+            }
59 60
         }
60 61
         return false;
61 62
     }
@@ -88,8 +89,9 @@  discard block
 block discarded – undo
88 89
 
89 90
         // remove any old, lingering caches for this file
90 91
         if ($dead_files = glob($this->get_cache_name($filename , TRUE) , GLOB_NOESCAPE)) {
91
-            foreach ($dead_files as $dead_file)
92
-                unlink($dead_file);
92
+            foreach ($dead_files as $dead_file) {
93
+                            unlink($dead_file);
94
+            }
93 95
         }
94 96
 
95 97
         $compressed = $this->compress(file_get_contents($filename));
Please login to merge, or discard this patch.