@@ -136,8 +136,7 @@ public function load_resource_string($str)
136
136
137
137
public function get_git ($ grp , $ nam , $ ver , $ typ = 'phar ' , $ url = '' )
138
138
{
139
- if ($ this ->dynmaicVersioning ())
140
- $ ver = $ this ->resolveGitVersion ($ grp , $ name , $ ver , $ url );
139
+ if ($ this ->dynmaicVersioning ()) $ ver = $ this ->resolveGitVersion ($ grp , $ nam , $ ver , $ url );
141
140
$ resourceFile = $ this ->local_file_name ($ grp , $ nam , $ ver , $ typ );
142
141
if ($ url == null ) $ url = "https://github.com/ $ grp/ $ nam/releases/download/ $ ver/ $ nam. $ typ " ;
143
142
if (!file_exists ($ resourceFile )) $ this ->fetch_dependency ($ url , $ resourceFile );
@@ -275,7 +274,7 @@ public function gitVersionList($owner, $repo)
275
274
$ ch = curl_init ();
276
275
curl_setopt ($ ch , CURLOPT_URL , $ releaseUrl );
277
276
curl_setopt ($ ch , CURLOPT_RETURNTRANSFER , 1 );
278
- if (self :: $ gitAuth != null ) curl_setopt ($ ch , CURLOPT_USERPWD , self :: $ gitAuth );
277
+ if ($ this -> gitAuth != null ) curl_setopt ($ ch , CURLOPT_USERPWD , $ this -> gitAuth );
279
278
curl_setopt ($ ch , CURLOPT_USERAGENT , "bhoogter " );
280
279
curl_setopt ($ ch , CURLOPT_SSL_VERIFYPEER , false );
281
280
curl_setopt ($ ch , CURLOPT_FOLLOWLOCATION , true );
0 commit comments