original_string: public function get_preferences_as_booleans() {
          $preferences = [];
          $preferences[$this->view] = true;
          $preferences[$this->sort] = true;
          $preferences[$this->grouping] = true;
  
          return $preferences;
      }
code: public function get_preferences_as_booleans() {
          $preferences = [];
          $preferences[$this->view] = true;
          $preferences[$this->sort] = true;
          $preferences[$this->grouping] = true;
  
          return $preferences;
      }
code_tokens: public function get_preferences_as_booleans ( ) { $ preferences = [ ] ; $ preferences [ $ this -> view ] = true ; $ preferences [ $ this -> sort ] = true ; $ preferences [ $ this -> grouping ] = true ; return $ preferences ; }
docstring: Get the user preferences as an array to figure out what has been selected
  
  @return array $preferences Array with the pref as key and value set to true
docstring_tokens: Get the user preferences as an array to figure out what has been selected