original_string: private function limit($limit = 0) {
          if(is_array($limit) && !empty(array_filter($limit))) {
              foreach($limit as $start => $end) {
                   return " LIMIT ".intval($start).", ".intval($end);
              }
          }
          elseif((int)$limit > 0) {
              return " LIMIT ".intval($limit);
          }
          return false;
      }
code: private function limit($limit = 0) {
          if(is_array($limit) && !empty(array_filter($limit))) {
              foreach($limit as $start => $end) {
                   return " LIMIT ".intval($start).", ".intval($end);
              }
          }
          elseif((int)$limit > 0) {
              return " LIMIT ".intval($limit);
          }
          return false;
      }
code_tokens: private function limit ( $ limit = 0 ) { if ( is_array ( $ limit ) && ! empty ( array_filter ( $ limit ) ) ) { foreach ( $ limit as $ start => $ end ) { return " LIMIT " . intval ( $ start ) . ", " . intval ( $ end ) ; } } elseif ( ( int ) $ limit > 0 ) { return " LIMIT " . intval ( $ limit ) ; } return false ; }
docstring: Returns the limit SQL for the current query as a string
  @param integer|array $limit This should either be set as an integer or should be set as an array with a start and end value
  @return string|false Will return the LIMIT string for the current query if it is valid else returns false
docstring_tokens: Returns the limit SQL for the current query as a string