Passed
Pull Request — master (#595)
by
unknown
17:03
created
htdocs/modules/avatars/class/AvatarsProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     private function getUserById($uid)
67 67
     {
68
-        $user = \Xoops::getInstance()->getHandlerMember()->getUser((int) $uid);
68
+        $user = \Xoops::getInstance()->getHandlerMember()->getUser((int)$uid);
69 69
         return (is_object($user)) ? $user : null;
70 70
     }
71 71
 
@@ -86,22 +86,22 @@  discard block
 block discarded – undo
86 86
                 if ($userinfo->getVar('user_avatar')
87 87
                     && 'blank.gif' !== $userinfo->getVar('user_avatar')
88 88
                 ) {
89
-                    $response->setValue($this->xoops_upload_url . "/" . $userinfo->getVar('user_avatar'));
89
+                    $response->setValue($this->xoops_upload_url."/".$userinfo->getVar('user_avatar'));
90 90
                     $noInfo = false;
91 91
                 }
92 92
             }
93 93
         } elseif (is_array($userinfo)) {
94 94
             if (!empty($userinfo['user_avatar']) && $userinfo['user_avatar'] !== 'blank.gif') {
95
-                $response->setValue($this->xoops_upload_url . "/" . $userinfo['user_avatar']);
95
+                $response->setValue($this->xoops_upload_url."/".$userinfo['user_avatar']);
96 96
                 $noInfo = false;
97 97
             }
98 98
         } elseif (is_scalar($userinfo)) {
99
-            $user = $this->getUserById((int) $userinfo);
99
+            $user = $this->getUserById((int)$userinfo);
100 100
             if (is_object($user) && ($user instanceof XoopsUser)) {
101 101
                 if ($user->getVar('user_avatar')
102 102
                     && 'blank.gif' !== $user->getVar('user_avatar')
103 103
                 ) {
104
-                    $response->setValue($this->xoops_upload_url . "/" . $user->getVar('user_avatar'));
104
+                    $response->setValue($this->xoops_upload_url."/".$user->getVar('user_avatar'));
105 105
                     $noInfo = false;
106 106
                 }
107 107
             }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     {
124 124
         $noInfo = true;
125 125
         if ($userinfo instanceof XoopsUser) {
126
-            $link = $this->xoops_url . '/modules/avatars/include/editavatar.php';
126
+            $link = $this->xoops_url.'/modules/avatars/include/editavatar.php';
127 127
             $response->setValue($link);
128 128
             $noInfo = false;
129 129
         }
Please login to merge, or discard this patch.