original_string: public function apply($builder)
      {
          if (!empty($values = $this->getValues())) {
              $range = json_decode($values, true);
              if (!isset($range['start']) or ! isset($range['end'])) {
                  return $builder;
              }
              $start = $range['start'] . ' 00:00:00';
              $end   = $range['end'] . ' 23:59:59';
              $builder->whereBetween('tbl_notifications_stack.created_at', [$start, $end]);
          }
      }
code: public function apply($builder)
      {
          if (!empty($values = $this->getValues())) {
              $range = json_decode($values, true);
              if (!isset($range['start']) or ! isset($range['end'])) {
                  return $builder;
              }
              $start = $range['start'] . ' 00:00:00';
              $end   = $range['end'] . ' 23:59:59';
              $builder->whereBetween('tbl_notifications_stack.created_at', [$start, $end]);
          }
      }
code_tokens: public function apply ( $ builder ) { if ( ! empty ( $ values = $ this -> getValues ( ) ) ) { $ range = json_decode ( $ values , true ) ; if ( ! isset ( $ range [ 'start' ] ) or ! isset ( $ range [ 'end' ] ) ) { return $ builder ; } $ start = $ range [ 'start' ] . ' 00:00:00' ; $ end = $ range [ 'end' ] . ' 23:59:59' ; $ builder -> whereBetween ( 'tbl_notifications_stack.created_at' , [ $ start , $ end ] ) ; } }
docstring: Filters data by parameters from memory
  
  @param mixed $builder
docstring_tokens: Filters data by parameters from memory