GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — develop ( 9735e1...67887f )
by gyeong-won
05:39
created
modules/communication/communication.controller.php 2 patches
Spacing   +75 added lines, -75 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 	 */
24 24
 	function procCommunicationUpdateAllowMessage()
25 25
 	{
26
-		if(!Context::get('is_logged'))
26
+		if (!Context::get('is_logged'))
27 27
 		{
28 28
 			return new BaseObject(-1, 'msg_not_logged');
29 29
 		}
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 		$args = new stdClass();
32 32
 		$args->allow_message = Context::get('allow_message');
33 33
 
34
-		if(!in_array($args->allow_message, array('Y', 'N', 'F')))
34
+		if (!in_array($args->allow_message, array('Y', 'N', 'F')))
35 35
 		{
36 36
 			$args->allow_message = 'Y';
37 37
 		}
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	function procCommunicationSendMessage()
54 54
 	{
55 55
 		// Check login information
56
-		if(!Context::get('is_logged'))
56
+		if (!Context::get('is_logged'))
57 57
 		{
58 58
 			return new BaseObject(-1, 'msg_not_logged');
59 59
 		}
@@ -62,25 +62,25 @@  discard block
 block discarded – undo
62 62
 
63 63
 		// Check variables
64 64
 		$receiver_srl = Context::get('receiver_srl');
65
-		if(!$receiver_srl)
65
+		if (!$receiver_srl)
66 66
 		{
67 67
 			return new BaseObject(-1, 'msg_not_exists_member');
68 68
 		}
69 69
 
70 70
 		$title = trim(Context::get('title'));
71
-		if(!$title)
71
+		if (!$title)
72 72
 		{
73 73
 			return new BaseObject(-1, 'msg_title_is_null');
74 74
 		}
75 75
 
76 76
 		$content = trim(Context::get('content'));
77
-		if(!$content)
77
+		if (!$content)
78 78
 		{
79 79
 			return new BaseObject(-1, 'msg_content_is_null');
80 80
 		}
81 81
 
82 82
 		$send_mail = Context::get('send_mail');
83
-		if($send_mail != 'Y')
83
+		if ($send_mail != 'Y')
84 84
 		{
85 85
 			$send_mail = 'N';
86 86
 		}
@@ -90,28 +90,28 @@  discard block
 block discarded – undo
90 90
 		$oCommunicationModel = getModel('communication');
91 91
 		$config = $oCommunicationModel->getConfig();
92 92
 
93
-		if(!$oCommunicationModel->checkGrant($config->grant_write))
93
+		if (!$oCommunicationModel->checkGrant($config->grant_write))
94 94
 		{
95 95
 			return new BaseObject(-1, 'msg_not_permitted');
96 96
 		}
97 97
 
98 98
 		$receiver_member_info = $oMemberModel->getMemberInfoByMemberSrl($receiver_srl);
99
-		if($receiver_member_info->member_srl != $receiver_srl)
99
+		if ($receiver_member_info->member_srl != $receiver_srl)
100 100
 		{
101 101
 			return new BaseObject(-1, 'msg_not_exists_member');
102 102
 		}
103 103
 
104 104
 		// check whether to allow to receive the message(pass if a top-administrator)
105
-		if($logged_info->is_admin != 'Y')
105
+		if ($logged_info->is_admin != 'Y')
106 106
 		{
107
-			if($receiver_member_info->allow_message == 'F')
107
+			if ($receiver_member_info->allow_message == 'F')
108 108
 			{
109
-				if(!$oCommunicationModel->isFriend($receiver_member_info->member_srl))
109
+				if (!$oCommunicationModel->isFriend($receiver_member_info->member_srl))
110 110
 				{
111 111
 					return new BaseObject(-1, 'msg_allow_message_to_friend');
112 112
 				}
113 113
 			}
114
-			else if($receiver_member_info->allow_message == 'N')
114
+			else if ($receiver_member_info->allow_message == 'N')
115 115
 			{
116 116
 				return new BaseObject(-1, 'msg_disallow_message');
117 117
 			}
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 		// send a message
121 121
 		$output = $this->sendMessage($logged_info->member_srl, $receiver_srl, $title, $content);
122 122
 
123
-		if(!$output->toBool())
123
+		if (!$output->toBool())
124 124
 		{
125 125
 			return $output;
126 126
 		}
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 		$message_srl = $output->get('message_srl');
129 129
 
130 130
 		// send an e-mail
131
-		if($send_mail == 'Y')
131
+		if ($send_mail == 'Y')
132 132
 		{
133 133
 			$view_url = Context::getRequestUri();
134 134
 			$content = sprintf("%s<br /><br />From : <a href=\"%s\" target=\"_blank\">%s</a>", $content, $view_url, $view_url);
@@ -140,9 +140,9 @@  discard block
 block discarded – undo
140 140
 			$oMail->send();
141 141
 		}
142 142
 
143
-		if(!in_array(Context::getRequestMethod(), array('XMLRPC', 'JSON')))
143
+		if (!in_array(Context::getRequestMethod(), array('XMLRPC', 'JSON')))
144 144
 		{
145
-			if(Context::get('is_popup') === 'Y')
145
+			if (Context::get('is_popup') === 'Y')
146 146
 			{
147 147
 				global $lang;
148 148
 				htmlHeader();
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 		$receiver_args->related_srl = 0;
200 200
 		$receiver_args->list_order = $related_srl * -1;
201 201
 		$receiver_args->sender_srl = $sender_srl;
202
-		if(!$receiver_args->sender_srl)
202
+		if (!$receiver_args->sender_srl)
203 203
 		{
204 204
 			$receiver_args->sender_srl = $receiver_srl;
205 205
 		}
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 		$trigger_obj->content = $content;
221 221
 		$trigger_obj->sender_log = $sender_log;
222 222
 		$triggerOutput = ModuleHandler::triggerCall('communication.sendMessage', 'before', $trigger_obj);
223
-		if(!$triggerOutput->toBool())
223
+		if (!$triggerOutput->toBool())
224 224
 		{
225 225
 			return $triggerOutput;
226 226
 		}
@@ -229,10 +229,10 @@  discard block
 block discarded – undo
229 229
 		$oDB->begin();
230 230
 
231 231
 		// messages to save in the sendor's message box
232
-		if($sender_srl && $sender_log)
232
+		if ($sender_srl && $sender_log)
233 233
 		{
234 234
 			$output = executeQuery('communication.sendMessage', $sender_args);
235
-			if(!$output->toBool())
235
+			if (!$output->toBool())
236 236
 			{
237 237
 				$oDB->rollback();
238 238
 				return $output;
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 
242 242
 		// messages to save in the receiver's message box
243 243
 		$output = executeQuery('communication.sendMessage', $receiver_args);
244
-		if(!$output->toBool())
244
+		if (!$output->toBool())
245 245
 		{
246 246
 			$oDB->rollback();
247 247
 			return $output;
@@ -249,14 +249,14 @@  discard block
 block discarded – undo
249 249
 
250 250
 		// Call a trigger (after)
251 251
 		$trigger_output = ModuleHandler::triggerCall('communication.sendMessage', 'after', $trigger_obj);
252
-		if(!$trigger_output->toBool())
252
+		if (!$trigger_output->toBool())
253 253
 		{
254 254
 			$oDB->rollback();
255 255
 			return $trigger_output;
256 256
 		}
257 257
 
258 258
 		// create a flag that message is sent (in file format) 
259
-		$flag_path = './files/member_extra_info/new_message_flags/' . getNumberingPath($receiver_srl);
259
+		$flag_path = './files/member_extra_info/new_message_flags/'.getNumberingPath($receiver_srl);
260 260
 		FileHandler::makeDir($flag_path);
261 261
 		$flag_file = sprintf('%s%s', $flag_path, $receiver_srl);
262 262
 		$flag_count = FileHandler::readFile($flag_file);
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 	function procCommunicationStoreMessage()
278 278
 	{
279 279
 		// Check login information
280
-		if(!Context::get('is_logged'))
280
+		if (!Context::get('is_logged'))
281 281
 		{
282 282
 			return new BaseObject(-1, 'msg_not_logged');
283 283
 		}
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 
286 286
 		// Check variable
287 287
 		$message_srl = Context::get('message_srl');
288
-		if(!$message_srl)
288
+		if (!$message_srl)
289 289
 		{
290 290
 			return new BaseObject(-1, 'msg_invalid_request');
291 291
 		}
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
 		// get the message
294 294
 		$oCommunicationModel = getModel('communication');
295 295
 		$message = $oCommunicationModel->getSelectedMessage($message_srl);
296
-		if(!$message || $message->message_type != 'R')
296
+		if (!$message || $message->message_type != 'R')
297 297
 		{
298 298
 			return new BaseObject(-1, 'msg_invalid_request');
299 299
 		}
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 		$args->message_srl = $message_srl;
303 303
 		$args->receiver_srl = $logged_info->member_srl;
304 304
 		$output = executeQuery('communication.setMessageStored', $args);
305
-		if(!$output->toBool())
305
+		if (!$output->toBool())
306 306
 		{
307 307
 			return $output;
308 308
 		}
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 	function procCommunicationDeleteMessage()
318 318
 	{
319 319
 		// Check login information
320
-		if(!Context::get('is_logged'))
320
+		if (!Context::get('is_logged'))
321 321
 		{
322 322
 			return new BaseObject(-1, 'msg_not_logged');
323 323
 		}
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
 
328 328
 		// Check the variable
329 329
 		$message_srl = Context::get('message_srl');
330
-		if(!$message_srl)
330
+		if (!$message_srl)
331 331
 		{
332 332
 			return new BaseObject(-1, 'msg_invalid_request');
333 333
 		}
@@ -335,23 +335,23 @@  discard block
 block discarded – undo
335 335
 		// Get the message
336 336
 		$oCommunicationModel = getModel('communication');
337 337
 		$message = $oCommunicationModel->getSelectedMessage($message_srl);
338
-		if(!$message)
338
+		if (!$message)
339 339
 		{
340 340
 			return new BaseObject(-1, 'msg_invalid_request');
341 341
 		}
342 342
 
343 343
 		// Check the grant
344
-		switch($message->message_type)
344
+		switch ($message->message_type)
345 345
 		{
346 346
 			case 'S':
347
-				if($message->sender_srl != $member_srl)
347
+				if ($message->sender_srl != $member_srl)
348 348
 				{
349 349
 					return new BaseObject(-1, 'msg_invalid_request');
350 350
 				}
351 351
 				break;
352 352
 
353 353
 			case 'R':
354
-				if($message->receiver_srl != $member_srl)
354
+				if ($message->receiver_srl != $member_srl)
355 355
 				{
356 356
 					return new BaseObject(-1, 'msg_invalid_request');
357 357
 				}
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
 		$args = new stdClass();
363 363
 		$args->message_srl = $message_srl;
364 364
 		$output = executeQuery('communication.deleteMessage', $args);
365
-		if(!$output->toBool())
365
+		if (!$output->toBool())
366 366
 		{
367 367
 			return $output;
368 368
 		}
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
 	function procCommunicationDeleteMessages()
378 378
 	{
379 379
 		// Check login information
380
-		if(!Context::get('is_logged'))
380
+		if (!Context::get('is_logged'))
381 381
 		{
382 382
 			return new BaseObject(-1, 'msg_not_logged');
383 383
 		}
@@ -386,41 +386,41 @@  discard block
 block discarded – undo
386 386
 		$member_srl = $logged_info->member_srl;
387 387
 
388 388
 		// check variables
389
-		if(!Context::get('message_srl_list'))
389
+		if (!Context::get('message_srl_list'))
390 390
 		{
391 391
 			return new BaseObject(-1, 'msg_cart_is_null');
392 392
 		}
393 393
 
394 394
 		$message_srl_list = Context::get('message_srl_list');
395
-		if(!is_array($message_srl_list))
395
+		if (!is_array($message_srl_list))
396 396
 		{
397 397
 			$message_srl_list = explode('|@|', trim($message_srl_list));
398 398
 		}
399 399
 
400
-		if(!count($message_srl_list))
400
+		if (!count($message_srl_list))
401 401
 		{
402 402
 			return new BaseObject(-1, 'msg_cart_is_null');
403 403
 		}
404 404
 
405 405
 		$message_type = Context::get('message_type');
406
-		if(!$message_type || !in_array($message_type, array('R', 'S', 'T')))
406
+		if (!$message_type || !in_array($message_type, array('R', 'S', 'T')))
407 407
 		{
408 408
 			return new BaseObject(-1, 'msg_invalid_request');
409 409
 		}
410 410
 
411 411
 		$message_count = count($message_srl_list);
412 412
 		$target = array();
413
-		for($i = 0; $i < $message_count; $i++)
413
+		for ($i = 0; $i < $message_count; $i++)
414 414
 		{
415 415
 			$message_srl = (int) trim($message_srl_list[$i]);
416
-			if(!$message_srl)
416
+			if (!$message_srl)
417 417
 			{
418 418
 				continue;
419 419
 			}
420 420
 
421 421
 			$target[] = $message_srl;
422 422
 		}
423
-		if(!count($target))
423
+		if (!count($target))
424 424
 		{
425 425
 			return new BaseObject(-1, 'msg_cart_is_null');
426 426
 		}
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
 		$args->message_srls = implode(',', $target);
431 431
 		$args->message_type = $message_type;
432 432
 
433
-		if($message_type == 'S')
433
+		if ($message_type == 'S')
434 434
 		{
435 435
 			$args->sender_srl = $member_srl;
436 436
 		}
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 		}
441 441
 
442 442
 		$output = executeQuery('communication.deleteMessages', $args);
443
-		if(!$output->toBool())
443
+		if (!$output->toBool())
444 444
 		{
445 445
 			return $output;
446 446
 		}
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
 	function procCommunicationAddFriend()
459 459
 	{
460 460
 		// Check login information
461
-		if(!Context::get('is_logged'))
461
+		if (!Context::get('is_logged'))
462 462
 		{
463 463
 			return new BaseObject(-1, 'msg_not_logged');
464 464
 		}
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
 		$logged_info = Context::get('logged_info');
467 467
 
468 468
 		$target_srl = (int) trim(Context::get('target_srl'));
469
-		if(!$target_srl)
469
+		if (!$target_srl)
470 470
 		{
471 471
 			return new BaseObject(-1, 'msg_invalid_request');
472 472
 		}
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
 		$args->member_srl = $logged_info->member_srl;
480 480
 		$args->target_srl = $target_srl;
481 481
 		$output = executeQuery('communication.addFriend', $args);
482
-		if(!$output->toBool())
482
+		if (!$output->toBool())
483 483
 		{
484 484
 			return $output;
485 485
 		}
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
 		$this->add('member_srl', $target_srl);
488 488
 		$this->setMessage('success_registed');
489 489
 
490
-		if(!in_array(Context::getRequestMethod(), array('XMLRPC', 'JSON')))
490
+		if (!in_array(Context::getRequestMethod(), array('XMLRPC', 'JSON')))
491 491
 		{
492 492
 			global $lang;
493 493
 			htmlHeader();
@@ -506,7 +506,7 @@  discard block
 block discarded – undo
506 506
 	function procCommunicationMoveFriend()
507 507
 	{
508 508
 		// Check login information
509
-		if(!Context::get('is_logged'))
509
+		if (!Context::get('is_logged'))
510 510
 		{
511 511
 			return new BaseObject(-1, 'msg_not_logged');
512 512
 		}
@@ -515,27 +515,27 @@  discard block
 block discarded – undo
515 515
 
516 516
 		// Check variables
517 517
 		$friend_srl_list = Context::get('friend_srl_list');
518
-		if(!$friend_srl_list)
518
+		if (!$friend_srl_list)
519 519
 		{
520 520
 			return new BaseObject(-1, 'msg_cart_is_null');
521 521
 		}
522 522
 
523
-		if(!is_array($friend_srl_list))
523
+		if (!is_array($friend_srl_list))
524 524
 		{
525 525
 			$friend_srl_list = explode('|@|', $friend_srl_list);
526 526
 		}
527 527
 
528
-		if(!count($friend_srl_list))
528
+		if (!count($friend_srl_list))
529 529
 		{
530 530
 			return new BaseObject(-1, 'msg_cart_is_null');
531 531
 		}
532 532
 
533 533
 		$friend_count = count($friend_srl_list);
534 534
 		$target = array();
535
-		for($i = 0; $i < $friend_count; $i++)
535
+		for ($i = 0; $i < $friend_count; $i++)
536 536
 		{
537 537
 			$friend_srl = (int) trim($friend_srl_list[$i]);
538
-			if(!$friend_srl)
538
+			if (!$friend_srl)
539 539
 			{
540 540
 				continue;
541 541
 			}
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
 			$target[] = $friend_srl;
544 544
 		}
545 545
 
546
-		if(!count($target))
546
+		if (!count($target))
547 547
 		{
548 548
 			return new BaseObject(-1, 'msg_cart_is_null');
549 549
 		}
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
 		$args->friend_group_srl = Context::get('target_friend_group_srl');
556 556
 
557 557
 		$output = executeQuery('communication.moveFriend', $args);
558
-		if(!$output->toBool())
558
+		if (!$output->toBool())
559 559
 		{
560 560
 			return $output;
561 561
 		}
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
 	function procCommunicationDeleteFriend()
574 574
 	{
575 575
 		// Check login information
576
-		if(!Context::get('is_logged'))
576
+		if (!Context::get('is_logged'))
577 577
 		{
578 578
 			return new BaseObject(-1, 'msg_not_logged');
579 579
 		}
@@ -584,12 +584,12 @@  discard block
 block discarded – undo
584 584
 		// Check variables
585 585
 		$friend_srl_list = Context::get('friend_srl_list');
586 586
 
587
-		if(!is_array($friend_srl_list))
587
+		if (!is_array($friend_srl_list))
588 588
 		{
589 589
 			$friend_srl_list = explode('|@|', $friend_srl_list);
590 590
 		}
591 591
 
592
-		if(!count($friend_srl_list))
592
+		if (!count($friend_srl_list))
593 593
 		{
594 594
 			return new BaseObject(-1, 'msg_cart_is_null');
595 595
 		}
@@ -597,10 +597,10 @@  discard block
 block discarded – undo
597 597
 		$friend_count = count($friend_srl_list);
598 598
 		$target = array();
599 599
 
600
-		for($i = 0; $i < $friend_count; $i++)
600
+		for ($i = 0; $i < $friend_count; $i++)
601 601
 		{
602 602
 			$friend_srl = (int) trim($friend_srl_list[$i]);
603
-			if(!$friend_srl)
603
+			if (!$friend_srl)
604 604
 			{
605 605
 				continue;
606 606
 			}
@@ -608,7 +608,7 @@  discard block
 block discarded – undo
608 608
 			$target[] = $friend_srl;
609 609
 		}
610 610
 
611
-		if(!count($target))
611
+		if (!count($target))
612 612
 		{
613 613
 			return new BaseObject(-1, 'msg_cart_is_null');
614 614
 		}
@@ -618,7 +618,7 @@  discard block
 block discarded – undo
618 618
 		$args->friend_srls = implode(',', $target);
619 619
 		$args->member_srl = $logged_info->member_srl;
620 620
 		$output = executeQuery('communication.deleteFriend', $args);
621
-		if(!$output->toBool())
621
+		if (!$output->toBool())
622 622
 		{
623 623
 			return $output;
624 624
 		}
@@ -636,7 +636,7 @@  discard block
 block discarded – undo
636 636
 	function procCommunicationAddFriendGroup()
637 637
 	{
638 638
 		// Check login information
639
-		if(!Context::get('is_logged'))
639
+		if (!Context::get('is_logged'))
640 640
 		{
641 641
 			return new BaseObject(-1, 'msg_not_logged');
642 642
 		}
@@ -650,13 +650,13 @@  discard block
 block discarded – undo
650 650
 		$args->title = Context::get('title');
651 651
 		$args->title = htmlspecialchars($args->title, ENT_COMPAT | ENT_HTML401, 'UTF-8', false);
652 652
 
653
-		if(!$args->title)
653
+		if (!$args->title)
654 654
 		{
655 655
 			return new BaseObject(-1, 'msg_invalid_request');
656 656
 		}
657 657
 
658 658
 		// modify if friend_group_srl exists.
659
-		if($args->friend_group_srl)
659
+		if ($args->friend_group_srl)
660 660
 		{
661 661
 			$output = executeQuery('communication.renameFriendGroup', $args);
662 662
 			$msg_code = 'success_updated';
@@ -668,9 +668,9 @@  discard block
 block discarded – undo
668 668
 			$msg_code = 'success_registed';
669 669
 		}
670 670
 
671
-		if(!$output->toBool())
671
+		if (!$output->toBool())
672 672
 		{
673
-			if(!in_array(Context::getRequestMethod(), array('XMLRPC', 'JSON')))
673
+			if (!in_array(Context::getRequestMethod(), array('XMLRPC', 'JSON')))
674 674
 			{
675 675
 				global $lang;
676 676
 				htmlHeader();
@@ -687,7 +687,7 @@  discard block
 block discarded – undo
687 687
 		}
688 688
 		else
689 689
 		{
690
-			if(!in_array(Context::getRequestMethod(), array('XMLRPC', 'JSON')))
690
+			if (!in_array(Context::getRequestMethod(), array('XMLRPC', 'JSON')))
691 691
 			{
692 692
 				global $lang;
693 693
 				htmlHeader();
@@ -712,7 +712,7 @@  discard block
 block discarded – undo
712 712
 	function procCommunicationRenameFriendGroup()
713 713
 	{
714 714
 		// Check login information
715
-		if(!Context::get('is_logged'))
715
+		if (!Context::get('is_logged'))
716 716
 		{
717 717
 			return new BaseObject(-1, 'msg_not_logged');
718 718
 		}
@@ -726,13 +726,13 @@  discard block
 block discarded – undo
726 726
 		$args->title = Context::get('title');
727 727
 		$args->title = htmlspecialchars($args->title, ENT_COMPAT | ENT_HTML401, 'UTF-8', false);
728 728
 
729
-		if(!$args->title)
729
+		if (!$args->title)
730 730
 		{
731 731
 			return new BaseObject(-1, 'msg_invalid_request');
732 732
 		}
733 733
 
734 734
 		$output = executeQuery('communication.renameFriendGroup', $args);
735
-		if(!$output->toBool())
735
+		if (!$output->toBool())
736 736
 		{
737 737
 			return $output;
738 738
 		}
@@ -747,7 +747,7 @@  discard block
 block discarded – undo
747 747
 	function procCommunicationDeleteFriendGroup()
748 748
 	{
749 749
 		// Check login information
750
-		if(!Context::get('is_logged'))
750
+		if (!Context::get('is_logged'))
751 751
 		{
752 752
 			return new BaseObject(-1, 'msg_not_logged');
753 753
 		}
@@ -759,7 +759,7 @@  discard block
 block discarded – undo
759 759
 		$args->friend_group_srl = Context::get('friend_group_srl');
760 760
 		$args->member_srl = $logged_info->member_srl;
761 761
 		$output = executeQuery('communication.deleteFriendGroup', $args);
762
-		if(!$output->toBool())
762
+		if (!$output->toBool())
763 763
 		{
764 764
 			return $output;
765 765
 		}
Please login to merge, or discard this patch.
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -110,8 +110,7 @@  discard block
 block discarded – undo
110 110
 				{
111 111
 					return new BaseObject(-1, 'msg_allow_message_to_friend');
112 112
 				}
113
-			}
114
-			else if($receiver_member_info->allow_message == 'N')
113
+			} else if($receiver_member_info->allow_message == 'N')
115 114
 			{
116 115
 				return new BaseObject(-1, 'msg_disallow_message');
117 116
 			}
@@ -151,8 +150,7 @@  discard block
 block discarded – undo
151 150
 				htmlFooter();
152 151
 				Context::close();
153 152
 				exit;
154
-			}
155
-			else
153
+			} else
156 154
 			{
157 155
 				$this->setMessage('success_sended');
158 156
 				$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('act', 'dispCommunicationMessages', 'message_type', 'S', 'message_srl', $message_srl);
@@ -433,8 +431,7 @@  discard block
 block discarded – undo
433 431
 		if($message_type == 'S')
434 432
 		{
435 433
 			$args->sender_srl = $member_srl;
436
-		}
437
-		else
434
+		} else
438 435
 		{
439 436
 			$args->receiver_srl = $member_srl;
440 437
 		}
@@ -661,8 +658,7 @@  discard block
 block discarded – undo
661 658
 			$output = executeQuery('communication.renameFriendGroup', $args);
662 659
 			$msg_code = 'success_updated';
663 660
 			// add if not exists
664
-		}
665
-		else
661
+		} else
666 662
 		{
667 663
 			$output = executeQuery('communication.addFriendGroup', $args);
668 664
 			$msg_code = 'success_registed';
@@ -679,13 +675,11 @@  discard block
 block discarded – undo
679 675
 				htmlFooter();
680 676
 				Context::close();
681 677
 				exit;
682
-			}
683
-			else
678
+			} else
684 679
 			{
685 680
 				return $output;
686 681
 			}
687
-		}
688
-		else
682
+		} else
689 683
 		{
690 684
 			if(!in_array(Context::getRequestMethod(), array('XMLRPC', 'JSON')))
691 685
 			{
@@ -697,8 +691,7 @@  discard block
 block discarded – undo
697 691
 				htmlFooter();
698 692
 				Context::close();
699 693
 				exit;
700
-			}
701
-			else
694
+			} else
702 695
 			{
703 696
 				$this->setMessage($msg_code);
704 697
 			}
Please login to merge, or discard this patch.