original_string: public function scopeLive($query)
  	{
  		return $query->where($this->getTable().'.status', '=', Post::APPROVED)
  			->where($this->getTable().'.published_date', '<=', \Carbon\Carbon::now());
  	}
code: public function scopeLive($query)
  	{
  		return $query->where($this->getTable().'.status', '=', Post::APPROVED)
  			->where($this->getTable().'.published_date', '<=', \Carbon\Carbon::now());
  	}
code_tokens: public function scopeLive ( $ query ) { return $ query -> where ( $ this -> getTable ( ) . '.status' , '=' , Post :: APPROVED ) -> where ( $ this -> getTable ( ) . '.published_date' , '<=' , \ Carbon \ Carbon :: now ( ) ) ; }
docstring: Query scope for "live" posts, adds conditions for status = APPROVED and published date is in the past
  
  @param $query
  @return mixed
docstring_tokens: Query scope for live posts adds conditions for status = APPROVED and published date is in the past