Completed
Pull Request — master (#298)
by
unknown
13:34
created
src/JsValidatorFactory.php 2 patches
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,16 +2,16 @@
 block discarded – undo
2 2
 
3 3
 namespace Proengsoft\JsValidation;
4 4
 
5
+use Illuminate\Contracts\Validation\Factory as ValidationFactory;
6
+use Illuminate\Foundation\Http\FormRequest;
5 7
 use Illuminate\Support\Arr;
6 8
 use Illuminate\Validation\Validator;
7
-use Illuminate\Foundation\Http\FormRequest;
8
-use Proengsoft\JsValidation\Javascript\RuleParser;
9
+use Proengsoft\JsValidation\Javascript\JavascriptValidator;
9 10
 use Proengsoft\JsValidation\Javascript\MessageParser;
10
-use Proengsoft\JsValidation\Support\DelegatedValidator;
11
+use Proengsoft\JsValidation\Javascript\RuleParser;
11 12
 use Proengsoft\JsValidation\Javascript\ValidatorHandler;
12
-use Proengsoft\JsValidation\Javascript\JavascriptValidator;
13
+use Proengsoft\JsValidation\Support\DelegatedValidator;
13 14
 use Proengsoft\JsValidation\Support\ValidationRuleParserProxy;
14
-use Illuminate\Contracts\Validation\Factory as ValidationFactory;
15 15
 
16 16
 class JsValidatorFactory
17 17
 {
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @param array       $customAttributes
59 59
      * @param null|string $selector
60 60
      *
61
-     * @return JavascriptValidator
61
+     * @return string
62 62
      */
63 63
     public function make(array $rules, array $messages = [], array $customAttributes = [], $selector = null)
64 64
     {
@@ -133,6 +133,9 @@  discard block
 block discarded – undo
133 133
         return $this->validator($validator, $selector);
134 134
     }
135 135
 
136
+    /**
137
+     * @param string $class
138
+     */
136 139
     protected function parseFormRequestName($class)
137 140
     {
138 141
         $params = [];
Please login to merge, or discard this patch.
src/Remote/Validator.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Proengsoft\JsValidation\Remote;
4 4
 
5
+use Illuminate\Http\Exceptions\HttpResponseException;
5 6
 use Illuminate\Http\JsonResponse;
6 7
 use Illuminate\Validation\ValidationException;
7 8
 use Illuminate\Validation\ValidationRuleParser;
8
-use Proengsoft\JsValidation\Support\RuleListTrait;
9
-use Illuminate\Http\Exceptions\HttpResponseException;
10 9
 use Illuminate\Validation\Validator as BaseValidator;
11 10
 use Proengsoft\JsValidation\Support\AccessProtectedTrait;
11
+use Proengsoft\JsValidation\Support\RuleListTrait;
12 12
 
13 13
 /**
14 14
  * Class RemoteValidator.
Please login to merge, or discard this patch.