@@ -67,17 +67,17 @@ discard block |
||
| 67 | 67 | { |
| 68 | 68 | $context = new RequestContext(); |
| 69 | 69 | $context->fromRequest($this->symfony_request); |
| 70 | - $baseUrl = generate_board_url(true) . $context->getBaseUrl(); |
|
| 70 | + $baseUrl = generate_board_url(true).$context->getBaseUrl(); |
|
| 71 | 71 | |
| 72 | 72 | $scriptName = $this->symfony_request->getScriptName(); |
| 73 | 73 | $scriptName = substr($scriptName, -1, 1) == '/' ? '' : utf8_basename($scriptName); |
| 74 | 74 | |
| 75 | 75 | if ($scriptName != '') { |
| 76 | - $baseUrl = str_replace('/' . $scriptName, '', $baseUrl); |
|
| 76 | + $baseUrl = str_replace('/'.$scriptName, '', $baseUrl); |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | $friends = $this->model->getFriends(); |
| 80 | - $friends_online = array_filter($friends, function ($friend) { |
|
| 80 | + $friends_online = array_filter($friends, function($friend) { |
|
| 81 | 81 | return $friend['user_status'] != 0; |
| 82 | 82 | }); |
| 83 | 83 | $this->template->assign_var('S_COUNT_FRIENDS', count($friends_online)); |
@@ -118,13 +118,13 @@ discard block |
||
| 118 | 118 | { |
| 119 | 119 | $context = new RequestContext(); |
| 120 | 120 | $context->fromRequest($this->symfony_request); |
| 121 | - $baseUrl = generate_board_url(true) . $context->getBaseUrl(); |
|
| 121 | + $baseUrl = generate_board_url(true).$context->getBaseUrl(); |
|
| 122 | 122 | |
| 123 | 123 | $scriptName = $this->symfony_request->getScriptName(); |
| 124 | 124 | $scriptName = substr($scriptName, -1, 1) == '/' ? '' : utf8_basename($scriptName); |
| 125 | 125 | |
| 126 | 126 | if ($scriptName != '') { |
| 127 | - $baseUrl = str_replace('/' . $scriptName, '', $baseUrl); |
|
| 127 | + $baseUrl = str_replace('/'.$scriptName, '', $baseUrl); |
|
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | $user_id = $event['member']['user_id']; |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | |
| 307 | 307 | $unsorted_messages = array_merge($sent, $inbox); |
| 308 | 308 | |
| 309 | - uasort($unsorted_messages, function ($a, $b) { |
|
| 309 | + uasort($unsorted_messages, function($a, $b) { |
|
| 310 | 310 | return ($a['sentAt'] > $b['sentAt']) ? -1 : 1; |
| 311 | 311 | }); |
| 312 | 312 | |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | */ |
| 347 | 347 | protected function parseFile($file, $type) { |
| 348 | 348 | $item = array(); |
| 349 | - $item['id'] = 'f_' . $file['id']; |
|
| 349 | + $item['id'] = 'f_'.$file['id']; |
|
| 350 | 350 | $item['sender_id'] = $file['sender_id']; |
| 351 | 351 | $item['sender_avatar'] = $this->user_loader->get_avatar($file['sender_id'], true, true); |
| 352 | 352 | $item['receiver_id'] = $file['receiver_id']; |