Passed
Push — master ( 724f49...5f1981 )
by Smoren
02:38
created
src/Factories/Checks/ContainerCheckFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     public static function getLengthIsCheck(IntegerRuleInterface $rule): CheckInterface
106 106
     {
107 107
         return CheckBuilder::create(CheckName::LENGTH_IS)
108
-            ->withPredicate(static function ($value) use ($rule) {
108
+            ->withPredicate(static function($value) use ($rule) {
109 109
                 /** @var \Countable $value */
110 110
                 $rule->validate(\count($value));
111 111
                 return true;
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     public static function getHasOptionalAttributeCheck(string $name, MixedRuleInterface $rule): CheckInterface
126 126
     {
127 127
         return CheckBuilder::create(CheckName::HAS_ATTRIBUTE)
128
-            ->withPredicate(static function ($value, string $name) use ($rule) {
128
+            ->withPredicate(static function($value, string $name) use ($rule) {
129 129
                 if (!ContainerAccessHelper::hasAccessibleAttribute($value, $name)) {
130 130
                     return true;
131 131
                 }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     public static function getAttributeIsCheck(string $name, MixedRuleInterface $rule): CheckInterface
140 140
     {
141 141
         return CheckBuilder::create(CheckName::ATTRIBUTE_IS)
142
-            ->withPredicate(static function ($value, string $name) use ($rule) {
142
+            ->withPredicate(static function($value, string $name) use ($rule) {
143 143
                 $rule->validate(ContainerAccessHelper::getAttributeValue($value, $name));
144 144
                 return true;
145 145
             })
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     public static function getValueByIndexCheck(int $index, MixedRuleInterface $rule): CheckInterface
161 161
     {
162 162
         return CheckBuilder::create(CheckName::VALUE_BY_INDEX)
163
-            ->withPredicate(static function ($value, int $index) use ($rule) {
163
+            ->withPredicate(static function($value, int $index) use ($rule) {
164 164
                 $rule->validate($value[$index]);
165 165
                 return true;
166 166
             })
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     public static function getAllKeysAreCheck(MixedRuleInterface $rule): CheckInterface
173 173
     {
174 174
         return CheckBuilder::create(CheckName::ALL_KEYS_ARE)
175
-            ->withPredicate(static function ($value) use ($rule) {
175
+            ->withPredicate(static function($value) use ($rule) {
176 176
                 foreach ($value as $k => $v) {
177 177
                     $rule->validate($k);
178 178
                 }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     public static function getAllValuesAreCheck(MixedRuleInterface $rule): CheckInterface
186 186
     {
187 187
         return CheckBuilder::create(CheckName::ALL_VALUES_ARE)
188
-            ->withPredicate(static function ($value) use ($rule) {
188
+            ->withPredicate(static function($value) use ($rule) {
189 189
                 foreach ($value as $v) {
190 190
                     $rule->validate($v);
191 191
                 }
Please login to merge, or discard this patch.