@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | --$limit; |
96 | 96 | } |
97 | 97 | |
98 | - usort($result, function ($a, $b) { |
|
98 | + usort($result, function($a, $b) { |
|
99 | 99 | if ($a['time'] === $b['time']) { |
100 | 100 | return 0; |
101 | 101 | } |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | $data = array( |
162 | 162 | 'token' => $profile->getToken(), |
163 | 163 | 'parent' => $profile->getParentToken(), |
164 | - 'children' => array_map(function ($p) { |
|
164 | + 'children' => array_map(function($p) { |
|
165 | 165 | return $p->getToken(); |
166 | 166 | }, $profile->getChildren()), |
167 | 167 | 'data' => $profile->getCollectors(), |
@@ -111,7 +111,7 @@ |
||
111 | 111 | ); |
112 | 112 | |
113 | 113 | $result = $this->getMongo()->updateOne(array('_id' => $profile->getToken()), array( |
114 | - '$set' => array_filter($record, function ($v) { |
|
114 | + '$set' => array_filter($record, function($v) { |
|
115 | 115 | return !empty($v); |
116 | 116 | }), |
117 | 117 | ), array('upsert' => true)); |
@@ -167,7 +167,7 @@ |
||
167 | 167 | $data = array( |
168 | 168 | 'token' => $profile->getToken(), |
169 | 169 | 'parent' => $profile->getParentToken(), |
170 | - 'children' => array_map(function ($p) { |
|
170 | + 'children' => array_map(function($p) { |
|
171 | 171 | return $p->getToken(); |
172 | 172 | }, $profile->getChildren()), |
173 | 173 | 'data' => $profile->getCollectors(), |
@@ -167,7 +167,7 @@ |
||
167 | 167 | $data = array( |
168 | 168 | 'token' => $profile->getToken(), |
169 | 169 | 'parent' => $profile->getParentToken(), |
170 | - 'children' => array_map(function ($p) { |
|
170 | + 'children' => array_map(function($p) { |
|
171 | 171 | return $p->getToken(); |
172 | 172 | }, $profile->getChildren()), |
173 | 173 | 'data' => $profile->getCollectors(), |