@@ -378,7 +378,7 @@ |
||
| 378 | 378 | * |
| 379 | 379 | * @param Friend $friend |
| 380 | 380 | * |
| 381 | - * @return string |
|
| 381 | + * @return integer |
|
| 382 | 382 | */ |
| 383 | 383 | public function getFriendLnick(Friend $friend) |
| 384 | 384 | { |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | public function makeMessageParameter(Message $message, Credential $credential) |
| 22 | 22 | { |
| 23 | 23 | return [ |
| 24 | - 'content' => (string) $message->getContent(), |
|
| 24 | + 'content' => (string)$message->getContent(), |
|
| 25 | 25 | 'face' => $message->getFace(), |
| 26 | 26 | 'clientid' => $credential->getClientId(), |
| 27 | 27 | 'msg_id' => $message->getMsgId(), |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | $hex = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'); |
| 56 | 56 | $hash = ''; |
| 57 | 57 | for ($i = 0; $i < 8; ++$i) { |
| 58 | - $hash .= $hex[$x[$i] >> 4 & 0xf].$hex[$x[$i] & 0xf]; |
|
| 58 | + $hash .= $hex[$x[$i] >> 4 & 0xf] . $hex[$x[$i] & 0xf]; |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | return $hash; |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | { |
| 145 | 145 | list($s1, $s2) = explode(' ', microtime()); |
| 146 | 146 | |
| 147 | - return (float) sprintf('%.0f', (floatval($s1) + floatval($s2)) * 1000); |
|
| 147 | + return (float)sprintf('%.0f', (floatval($s1) + floatval($s2)) * 1000); |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | /** |
@@ -24,8 +24,8 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function firstByAttribute($attributeName, $attributeValue) |
| 26 | 26 | { |
| 27 | - $callback = function ($entity) use ($attributeName, $attributeValue) { |
|
| 28 | - $method = 'get'.ucfirst($attributeName); |
|
| 27 | + $callback = function($entity) use ($attributeName, $attributeValue) { |
|
| 28 | + $method = 'get' . ucfirst($attributeName); |
|
| 29 | 29 | |
| 30 | 30 | return $entity->$method() == $attributeValue; |
| 31 | 31 | }; |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | protected static function applyProperties($entityInstance, $data) |
| 55 | 55 | { |
| 56 | 56 | foreach ($data as $property => $value) { |
| 57 | - $funcName = 'set'.ucfirst($property); |
|
| 57 | + $funcName = 'set' . ucfirst($property); |
|
| 58 | 58 | if (method_exists($entityInstance, $funcName)) { |
| 59 | 59 | $entityInstance->$funcName($value); |
| 60 | 60 | } |