original_string: public function all()
      {
          try {
              return $this->model->all(['name', 'value'])->pluck('value', 'name')->map(function ($value, $name) {
                  return $this->castSetting($name, $value);
              })->toArray();
          } catch (Exception $e) {
              throw new ReadException($e);
          }
      }
code: public function all()
      {
          try {
              return $this->model->all(['name', 'value'])->pluck('value', 'name')->map(function ($value, $name) {
                  return $this->castSetting($name, $value);
              })->toArray();
          } catch (Exception $e) {
              throw new ReadException($e);
          }
      }
code_tokens: public function all ( ) { try { return $ this -> model -> all ( [ 'name' , 'value' ] ) -> pluck ( 'value' , 'name' ) -> map ( function ( $ value , $ name ) { return $ this -> castSetting ( $ name , $ value ) ; } ) -> toArray ( ) ; } catch ( Exception $ e ) { throw new ReadException ( $ e ) ; } }
docstring: Returns a setting from the database.
  
  @throws \CachetHQ\Cachet\Settings\ReadException
  
  @return array
docstring_tokens: Returns a setting from the database .