Passed
Push — master ( 43a76c...9b0971 )
by Taosikai
14:08
created
src/Client.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -378,7 +378,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Request/SendMessageRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
src/Utils.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/EntityCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
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
         };
Please login to merge, or discard this patch.
src/EntityFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.