original_string: public function scopeByYearMonth($query, $year, $month)
  	{
  		return $query->where(\DB::raw('DATE_FORMAT(published_date, "%Y%m")'), '=', $year.$month);
  	}
code: public function scopeByYearMonth($query, $year, $month)
  	{
  		return $query->where(\DB::raw('DATE_FORMAT(published_date, "%Y%m")'), '=', $year.$month);
  	}
code_tokens: public function scopeByYearMonth ( $ query , $ year , $ month ) { return $ query -> where ( \ DB :: raw ( 'DATE_FORMAT(published_date, "%Y%m")' ) , '=' , $ year . $ month ) ; }
docstring: Query scope for posts published within the given year and month number.
  
  @param $query
  @param $year
  @param $month
  @return mixed
docstring_tokens: Query scope for posts published within the given year and month number .