@@ -17,7 +17,6 @@ |
||
17 | 17 | use Egulias\EmailValidator\Validation\RFCValidation; |
18 | 18 | use RuntimeException; |
19 | 19 | use Sensorario\Resources\Resource; |
20 | -use Sensorario\Resources\Rule; |
|
21 | 20 | use Sensorario\Resources\Rulers\Ruler; |
22 | 21 | use Sensorario\Resources\Validators\Interfaces\Validator; |
23 | 22 |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | if ($this->typeMismatch()) { |
64 | 64 | if ($this->resource->isFieldNumericButString($this->fieldName)) { |
65 | 65 | throw new \RuntimeException( |
66 | - 'Property `'.$this->fieldName.'` must be an integer!' |
|
66 | + 'Property `' . $this->fieldName . '` must be an integer!' |
|
67 | 67 | ); |
68 | 68 | } |
69 | 69 | |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | { |
92 | 92 | if ($this->rule->isNotMail()) { |
93 | 93 | throw new \RuntimeException( |
94 | - 'Oops! `'. $this->rule->getRuleType() .'` custom validator is not available. Only email is.' |
|
94 | + 'Oops! `' . $this->rule->getRuleType() . '` custom validator is not available. Only email is.' |
|
95 | 95 | ); |
96 | 96 | } |
97 | 97 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | |
48 | 48 | public function asArray() : array |
49 | 49 | { |
50 | - return $this->rule; |
|
50 | + return $this->rule; |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | public function isValid() |
@@ -47,7 +47,7 @@ |
||
47 | 47 | |
48 | 48 | public function asArray() : array |
49 | 49 | { |
50 | - return $this->rule; |
|
50 | + return $this->rule; |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | public function isValid() |