original_string: public function validate( $data, array $rules = [] )
  	{
  		$this->normalizeData( $data );
  		$this->setRules( $rules );
  
  		foreach( $this->rules as $attribute => $rules ) {
  			foreach( $rules as $rule ) {
  				$this->validateAttribute( $rule, $attribute );
  
  				if( $this->shouldStopValidating( $attribute ))break;
  			}
  		}
  
  		return $this->errors;
  	}
code: public function validate( $data, array $rules = [] )
  	{
  		$this->normalizeData( $data );
  		$this->setRules( $rules );
  
  		foreach( $this->rules as $attribute => $rules ) {
  			foreach( $rules as $rule ) {
  				$this->validateAttribute( $rule, $attribute );
  
  				if( $this->shouldStopValidating( $attribute ))break;
  			}
  		}
  
  		return $this->errors;
  	}
code_tokens: public function validate ( $ data , array $ rules = [ ] ) { $ this -> normalizeData ( $ data ) ; $ this -> setRules ( $ rules ) ; foreach ( $ this -> rules as $ attribute => $ rules ) { foreach ( $ rules as $ rule ) { $ this -> validateAttribute ( $ rule , $ attribute ) ; if ( $ this -> shouldStopValidating ( $ attribute ) ) break ; } } return $ this -> errors ; }
docstring: Run the validator's rules against its data.
  
  @param mixed $data
  
  @return array
docstring_tokens: Run the validator s rules against its data .