Passed
Branch master (bed6df)
by Alex
08:53 queued 12s
created
Category
DependencyInjection/SitetheoryProfilerStorageExtension.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@
 block discarded – undo
24 24
         $config = $this->processConfiguration($configuration, $configs);
25 25
 
26 26
         // Root Configuration Parameters
27
-        $container->setParameter('sitetheory_profiler_storage.profiler.defaultStorage',$config['profiler']['defaultStorage']);
28
-        $container->setParameter('sitetheory_profiler_storage.profiler.class',$config['profiler']['class']);
29
-        $container->setParameter('sitetheory_profiler_storage.profiler.dsn',$config['profiler']['dsn']);
30
-        $container->setParameter('sitetheory_profiler_storage.profiler.username',$config['profiler']['username']);
31
-        $container->setParameter('sitetheory_profiler_storage.profiler.password',$config['profiler']['password']);
32
-        $container->setParameter('sitetheory_profiler_storage.profiler.ttl',$config['profiler']['ttl']);
27
+        $container->setParameter('sitetheory_profiler_storage.profiler.defaultStorage', $config['profiler']['defaultStorage']);
28
+        $container->setParameter('sitetheory_profiler_storage.profiler.class', $config['profiler']['class']);
29
+        $container->setParameter('sitetheory_profiler_storage.profiler.dsn', $config['profiler']['dsn']);
30
+        $container->setParameter('sitetheory_profiler_storage.profiler.username', $config['profiler']['username']);
31
+        $container->setParameter('sitetheory_profiler_storage.profiler.password', $config['profiler']['password']);
32
+        $container->setParameter('sitetheory_profiler_storage.profiler.ttl', $config['profiler']['ttl']);
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
Profiler/RedisProfilerStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
         $data = array(
169 169
             'token' => $profile->getToken(),
170 170
             'parent' => $profile->getParentToken(),
171
-            'children' => array_map(function ($p) { return $p->getToken(); }, $profile->getChildren()),
171
+            'children' => array_map(function($p) { return $p->getToken(); }, $profile->getChildren()),
172 172
             'data' => $profile->getCollectors(),
173 173
             'ip' => $profile->getIp(),
174 174
             'method' => $profile->getMethod(),
Please login to merge, or discard this patch.
Profiler/MongoDbProfilerStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
             'status_code' => $profile->getStatusCode(),
97 97
         );
98 98
 
99
-        $result = $this->getMongo()->update(array('_id' => $profile->getToken()), array_filter($record, function ($v) { return !empty($v); }), array('upsert' => true));
99
+        $result = $this->getMongo()->update(array('_id' => $profile->getToken()), array_filter($record, function($v) { return !empty($v); }), array('upsert' => true));
100 100
 
101 101
         return (bool) (isset($result['ok']) ? $result['ok'] : $result);
102 102
     }
Please login to merge, or discard this patch.
Profiler/BaseMemcacheProfilerStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             --$limit;
97 97
         }
98 98
 
99
-        usort($result, function ($a, $b) {
99
+        usort($result, function($a, $b) {
100 100
             if ($a['time'] === $b['time']) {
101 101
                 return 0;
102 102
             }
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
         $data = array(
163 163
             'token' => $profile->getToken(),
164 164
             'parent' => $profile->getParentToken(),
165
-            'children' => array_map(function ($p) { return $p->getToken(); }, $profile->getChildren()),
165
+            'children' => array_map(function($p) { return $p->getToken(); }, $profile->getChildren()),
166 166
             'data' => $profile->getCollectors(),
167 167
             'ip' => $profile->getIp(),
168 168
             'method' => $profile->getMethod(),
Please login to merge, or discard this patch.