original_string: protected function _mockValidator()
      {
          $validator = new Validator();
  
          return $validator
              ->requirePresence('site_title')
              ->add('site_title', 'length', [
                  'rule' => ['minLength', 3],
                  'message' => __d('system', "Site's name must be at least 3 characters long."),
              ])
              ->requirePresence('site_email')
              ->add('site_email', 'validEmail', [
                  'rule' => 'email',
                  'message' => __d('system', 'Invalid e-Mail.'),
              ]);
      }
code: protected function _mockValidator()
      {
          $validator = new Validator();
  
          return $validator
              ->requirePresence('site_title')
              ->add('site_title', 'length', [
                  'rule' => ['minLength', 3],
                  'message' => __d('system', "Site's name must be at least 3 characters long."),
              ])
              ->requirePresence('site_email')
              ->add('site_email', 'validEmail', [
                  'rule' => 'email',
                  'message' => __d('system', 'Invalid e-Mail.'),
              ]);
      }
code_tokens: protected function _mockValidator ( ) { $ validator = new Validator ( ) ; return $ validator -> requirePresence ( 'site_title' ) -> add ( 'site_title' , 'length' , [ 'rule' => [ 'minLength' , 3 ] , 'message' => __d ( 'system' , "Site's name must be at least 3 characters long." ) , ] ) -> requirePresence ( 'site_email' ) -> add ( 'site_email' , 'validEmail' , [ 'rule' => 'email' , 'message' => __d ( 'system' , 'Invalid e-Mail.' ) , ] ) ; }
docstring: Created a mock validator object used when validating options
  
  @return \Cake\Validation\Validator
docstring_tokens: Created a mock validator object used when validating options