original_string: protected function validateAccepted( $value )
  	{
  		$acceptable = ['yes', 'on', '1', 1, true, 'true'];
  
  		return $this->validateRequired( $value ) && in_array( $value, $acceptable, true );
  	}
code: protected function validateAccepted( $value )
  	{
  		$acceptable = ['yes', 'on', '1', 1, true, 'true'];
  
  		return $this->validateRequired( $value ) && in_array( $value, $acceptable, true );
  	}
code_tokens: protected function validateAccepted ( $ value ) { $ acceptable = [ 'yes' , 'on' , '1' , 1 , true , 'true' ] ; return $ this -> validateRequired ( $ value ) && in_array ( $ value , $ acceptable , true ) ; }
docstring: Validate that an attribute was "accepted".
  
  This validation rule implies the attribute is "required".
  
  @param mixed  $value
  
  @return bool
docstring_tokens: Validate that an attribute was accepted .