original_string: public function getAll($cache = true)
      {
          if ($cache)
          {
              return $this->cache->getAll();
          }
  
  
          $all = [];
  
          $rows = $this->database->table($this->config['db_table'])->get();
          foreach ($rows as $row)
          {
              $value = json_decode($row->setting_value, true);
  
              $all[$row->setting_key] = $value;
          }
  
          return $all;
      }
code: public function getAll($cache = true)
      {
          if ($cache)
          {
              return $this->cache->getAll();
          }
  
  
          $all = [];
  
          $rows = $this->database->table($this->config['db_table'])->get();
          foreach ($rows as $row)
          {
              $value = json_decode($row->setting_value, true);
  
              $all[$row->setting_key] = $value;
          }
  
          return $all;
      }
code_tokens: public function getAll ( $ cache = true ) { if ( $ cache ) { return $ this -> cache -> getAll ( ) ; } $ all = [ ] ; $ rows = $ this -> database -> table ( $ this -> config [ 'db_table' ] ) -> get ( ) ; foreach ( $ rows as $ row ) { $ value = json_decode ( $ row -> setting_value , true ) ; $ all [ $ row -> setting_key ] = $ value ; } return $ all ; }
docstring: Fetch all values
  
  @param $cache
  
  @return mixed
docstring_tokens: Fetch all values