File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 "name" : " flyff" ,
44 "description" : " Plugin for Azuriom" ,
55 "version" : " 0.2.7" ,
6- "url" : " https:/ /azuriom.com" ,
6+ "url" : " https:\/\ / azuriom.com" ,
77 "authors" : [
88 " Javdu10"
99 ],
1010 "providers" : [
1111 " \\ Azuriom\\ Plugin\\ Flyff\\ Providers\\ FlyffServiceProvider" ,
1212 " \\ Azuriom\\ Plugin\\ Flyff\\ Providers\\ RouteServiceProvider"
1313 ],
14- "apiId" :35 ,
15- "installRedirectPath" : " install/flyff"
16- }
14+ "apiId" : 35 ,
15+ "installRedirectPath" : " install\ / flyff"
16+ }
Original file line number Diff line number Diff line change @@ -14,18 +14,19 @@ public function name()
1414 {
1515 return 'Flyff ' ;
1616 }
17- public function id (){ return 'flyff ' ;}
17+ public function id ()
18+ {
19+ return 'flyff ' ;
20+ }
1821
1922 public function getAvatarUrl (User $ user , int $ size = 64 )
2023 {
2124 $ files = Storage::files ("public/flyff/avatars/ {$ user ->id }" );
2225 if (count ($ files ) > 0 ) {
23- $ url = Storage::url (Arr::random ($ files ));
26+ return url ( Storage::url (Arr::random ($ files) ));
2427 } else {
25- $ url = plugin_asset ('flyff ' , 'img/unknown_avatar.png ' );
28+ return plugin_asset ('flyff ' , 'img/unknown_avatar.png ' );
2629 }
27-
28- return $ url ;
2930 }
3031
3132 public function getUserUniqueId (string $ name )
Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ public function getTotalTimePlayedAttribute(): string
349349 public function getAvatarUrlAttribute ()
350350 {
351351 if (!is_null ($ this ->flyffAccount ) && Storage::exists ("public/flyff/avatars/ {$ this ->flyffAccount ->Azuriom_user_id }/ {$ this ->m_szName }.png " )) {
352- return Storage::url ("public/flyff/avatars/ {$ this ->flyffAccount ->Azuriom_user_id }/ {$ this ->m_szName }.png " );
352+ return url ( Storage::url ("public/flyff/avatars/ {$ this ->flyffAccount ->Azuriom_user_id }/ {$ this ->m_szName }.png " ) );
353353 }
354354
355355 return plugin_asset ('flyff ' , 'img/unknown_avatar.png ' );
You can’t perform that action at this time.
0 commit comments