@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | * Idea from buddy.php Created by Perberos. All rights reversed (C) 2006 |
15 | 15 | * */ |
16 | 16 | |
17 | -include('common.' . substr(strrchr(__FILE__, '.'), 1)); |
|
17 | +include('common.'.substr(strrchr(__FILE__, '.'), 1)); |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * @var array $user |
@@ -35,14 +35,14 @@ discard block |
||
35 | 35 | $cBuddy->new_friend_name_unsafe = sys_get_param_str_unsafe('request_user_name'); |
36 | 36 | $cBuddy->new_request_text_unsafe = sys_get_param_str_unsafe('request_text'); |
37 | 37 | $cBuddy->playerArray = $user; |
38 | - $cBuddy->playerId = function (BuddyRoutingParams $cBuddy) { |
|
38 | + $cBuddy->playerId = function(BuddyRoutingParams $cBuddy) { |
|
39 | 39 | return $cBuddy->playerArray['id']; |
40 | 40 | }; |
41 | - $cBuddy->playerName = function (BuddyRoutingParams $cBuddy) { |
|
41 | + $cBuddy->playerName = function(BuddyRoutingParams $cBuddy) { |
|
42 | 42 | return $cBuddy->playerArray['username']; |
43 | 43 | }; |
44 | - $cBuddy->playerNameAndCoordinates = function (BuddyRoutingParams $cBuddy) { |
|
45 | - return "{$cBuddy->playerArray['username']} " . uni_render_coordinates($cBuddy->playerArray); |
|
44 | + $cBuddy->playerNameAndCoordinates = function(BuddyRoutingParams $cBuddy) { |
|
45 | + return "{$cBuddy->playerArray['username']} ".uni_render_coordinates($cBuddy->playerArray); |
|
46 | 46 | }; |
47 | 47 | |
48 | 48 | classSupernova::$gc->buddy->route($cBuddy); |
@@ -129,7 +129,7 @@ |
||
129 | 129 | if (is_callable($callable)) { |
130 | 130 | $this->{$type}[$varName] = $callable; |
131 | 131 | } else { |
132 | - throw new Exception('Error assigning callable in ' . get_called_class() . '! Callable typed [' . $type . '] is not a callable or not accessible in the scope'); |
|
132 | + throw new Exception('Error assigning callable in '.get_called_class().'! Callable typed ['.$type.'] is not a callable or not accessible in the scope'); |
|
133 | 133 | } |
134 | 134 | } |
135 | 135 |
@@ -82,14 +82,14 @@ discard block |
||
82 | 82 | $this->_container->assignAccessor( |
83 | 83 | 'type', |
84 | 84 | P_CONTAINER_SETTER, |
85 | - function ($value) use ($that) { |
|
85 | + function($value) use ($that) { |
|
86 | 86 | $that->type = $value; |
87 | 87 | } |
88 | 88 | ); |
89 | 89 | $this->_container->assignAccessor( |
90 | 90 | 'level', |
91 | 91 | P_CONTAINER_IMPORTER, |
92 | - function (&$row) use ($that) { |
|
92 | + function(&$row) use ($that) { |
|
93 | 93 | //pdump('level setter is launched'); |
94 | 94 | //pdump($row, '$row'); |
95 | 95 | //var_dump($that); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $this->_container->assignAccessor( |
111 | 111 | 'dbLevel', |
112 | 112 | P_CONTAINER_EXPORTER, |
113 | - function (&$row) use ($that) { |
|
113 | + function(&$row) use ($that) { |
|
114 | 114 | //pdump('level setter is launched'); |
115 | 115 | //pdump($row, '$row'); |
116 | 116 | //var_dump($that); |