PHP Classes

There are an simple error: if($get = -> (==) 'percent' || $...

Recommend this page to a friend!

      Twitter API PHP Class  >  All threads  >  There are an simple error: if($get =...  >  (Un) Subscribe thread alerts  
Subject:There are an simple error: if($get =...
Summary:Package rating comment
Messages:1
Author:Julio Cesar Fagundes Fonseca
Date:2010-05-24 23:47:55
 

Julio Cesar Fagundes Fonseca rated this package as follows:

Utility: Not sure
Consistency: Not sure

  1. There are an simple error: if($get =...   Reply   Report abuse  
Picture of Julio Cesar Fagundes Fonseca Julio Cesar Fagundes Fonseca - 2010-05-24 23:47:55
There are an simple error:

if($get = -> (==) 'percent' || $get =(=) '%'){
return floor($jsoncallback['remaining_hits']/$jsoncallback['hourly_limit']*100);
} else if($get =(=) 'hits'){
return $jsoncallback['remaining_hits'];
} else if($get =(=) 'limit'){
return $jsoncallback['hourly_limit'];
} else if($get =(=) 'reset'){
return $jsoncallback['reset_time_in_seconds'];
}