@@ -24,11 +24,11 @@ |
||
| 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 | } |
@@ -168,7 +168,7 @@ |
||
| 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(), |
@@ -96,7 +96,7 @@ |
||
| 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 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 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 |
||
| 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(), |