Passed
Push — master ( 9d2646...095e1f )
by Ruben
01:59
created
src/SiteAnalyzer.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         
39 39
         try {
40 40
             return Persistence::updateCount($pdo, $config, $options);
41
-        } catch(Exception $e) {
41
+        } catch (Exception $e) {
42 42
             try {
43 43
                 Persistence::crateDatabase($pdo, $config);
44 44
                 return Persistence::updateCount($pdo, $config, $options);
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@  discard block
 block discarded – undo
31 31
         
32 32
         if (array_key_exists('pdo', $options)) {            
33 33
             $pdo = $options['pdo'];	
34
-        }
35
-        else {            
34
+        } else {            
36 35
             $pdo = Persistence::getPDO($config);
37 36
         }
38 37
         
@@ -119,8 +118,7 @@  discard block
 block discarded – undo
119 118
         foreach ($data as $row) {
120 119
             if (array_key_exists($row['user'], $count)) {
121 120
                 $count[$row['user']]++;
122
-            }
123
-            else {
121
+            } else {
124 122
                 $count[$row['user']] = 1;
125 123
             }            
126 124
         }
Please login to merge, or discard this patch.