Completed
Push — master ( aeb328...0c790b )
by Neomerx
03:07
created
src/Validator/Values.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     public static function notNull()
52 52
     {
53
-        return new CallableRule(function ($input) {
53
+        return new CallableRule(function($input) {
54 54
             return $input !== null;
55 55
         }, MessageCodes::NOT_NULL);
56 56
     }
Please login to merge, or discard this patch.
sample/Application.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,12 +77,12 @@  discard block
 block discarded – undo
77 77
             'interests'    => v::isListOfStrings(),
78 78
         ];
79 79
 
80
-        $this->console('Invalid data' . PHP_EOL);
80
+        $this->console('Invalid data'.PHP_EOL);
81 81
         $this->printErrors(
82 82
             v::validator(v::arrayX($rules))->validate($invalidInput)
83 83
         );
84 84
 
85
-        $this->console(PHP_EOL . 'Valid data' . PHP_EOL);
85
+        $this->console(PHP_EOL.'Valid data'.PHP_EOL);
86 86
         $this->printErrors(
87 87
             v::validator(v::arrayX($rules))->validate($validInput)
88 88
         );
@@ -120,11 +120,11 @@  discard block
 block discarded – undo
120 120
             $paramValue = $error->getParameterValue();
121 121
             $errorMsg   = $translator->translate($error);
122 122
 
123
-            $this->console("Param `$paramName` failed for `$paramValue` with: $errorMsg" . PHP_EOL);
123
+            $this->console("Param `$paramName` failed for `$paramValue` with: $errorMsg".PHP_EOL);
124 124
         }
125 125
 
126 126
         if ($hasErrors === false) {
127
-            $this->console('No errors' . PHP_EOL);
127
+            $this->console('No errors'.PHP_EOL);
128 128
         }
129 129
     }
130 130
 
Please login to merge, or discard this patch.
sample/main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php namespace Sample;
2 2
 
3
-require_once __DIR__ . '/vendor/autoload.php';
3
+require_once __DIR__.'/vendor/autoload.php';
4 4
 
5 5
 /**
6 6
  * Copyright 2015-2016 [email protected] (www.neomerx.com)
Please login to merge, or discard this patch.
sample/Validation/Validator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public static function isEmail()
32 32
     {
33
-        $condition = function ($input) {
33
+        $condition = function($input) {
34 34
             return filter_var($input, FILTER_VALIDATE_EMAIL) !== false;
35 35
         };
36 36
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public static function isExistingPaymentPlan()
64 64
     {
65 65
         // emulate database request
66
-        $existsInDatabase = function ($recordId) {
66
+        $existsInDatabase = function($recordId) {
67 67
             return $recordId < 3;
68 68
         };
69 69
 
Please login to merge, or discard this patch.
src/Validator/Compares.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     protected static function equals($value)
34 34
     {
35
-        return new CallableRule(function ($input) use ($value) {
35
+        return new CallableRule(function($input) use ($value) {
36 36
             return $input === $value;
37 37
         }, MessageCodes::EQUALS);
38 38
     }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     protected static function notEquals($value)
46 46
     {
47
-        return new CallableRule(function ($input) use ($value) {
47
+        return new CallableRule(function($input) use ($value) {
48 48
             return $input !== $value;
49 49
         }, MessageCodes::NOT_EQUALS);
50 50
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     protected static function lessThan($value)
58 58
     {
59
-        return new CallableRule(function ($input) use ($value) {
59
+        return new CallableRule(function($input) use ($value) {
60 60
             return $input < $value;
61 61
         }, MessageCodes::LESS_THAN);
62 62
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     protected static function lessOrEquals($value)
70 70
     {
71
-        return new CallableRule(function ($input) use ($value) {
71
+        return new CallableRule(function($input) use ($value) {
72 72
             return $input <= $value;
73 73
         }, MessageCodes::LESS_OR_EQUALS);
74 74
     }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     protected static function moreThan($value)
82 82
     {
83
-        return new CallableRule(function ($input) use ($value) {
83
+        return new CallableRule(function($input) use ($value) {
84 84
             return $input > $value;
85 85
         }, MessageCodes::MORE_THAN);
86 86
     }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     protected static function moreOrEquals($value)
94 94
     {
95
-        return new CallableRule(function ($input) use ($value) {
95
+        return new CallableRule(function($input) use ($value) {
96 96
             return $input >= $value;
97 97
         }, MessageCodes::MORE_OR_EQUALS);
98 98
     }
Please login to merge, or discard this patch.
src/Validator/ExpressionsX.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
      * @param RuleInterface[]    $rules
75 75
      * @param RuleInterface|null $unlisted
76 76
      *
77
-     * @return AutoNameRuleInterface
77
+     * @return RuleInterface
78 78
      */
79 79
     protected static function arrayX(array $rules, RuleInterface $unlisted = null)
80 80
     {
Please login to merge, or discard this patch.