original_string: public function setup(Model $model, $settings = array()) {
          if ($settings) {
              foreach ($settings as $field => $options) {
                  $this->settings[$model->alias][$field] = (array) $options + array('required' => true);
              }
          }
      }
code: public function setup(Model $model, $settings = array()) {
          if ($settings) {
              foreach ($settings as $field => $options) {
                  $this->settings[$model->alias][$field] = (array) $options + array('required' => true);
              }
          }
      }
code_tokens: public function setup ( Model $ model , $ settings = array ( ) ) { if ( $ settings ) { foreach ( $ settings as $ field => $ options ) { $ this -> settings [ $ model -> alias ] [ $ field ] = ( array ) $ options + array ( 'required' => true ) ; } } }
docstring: Setup the validation and model settings.
  
  @param Model $model
  @param array $settings
docstring_tokens: Setup the validation and model settings .