Passed
Push — master ( c5a948...aa9102 )
by Smoren
02:15
created
src/Factories/Checks/ContainerCheckFactory.php 1 patch
Spacing   +5 added lines, -5 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) use ($name, $rule) {
128
+            ->withPredicate(static function($value) use ($name, $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
             })
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     public static function getAllKeysAreCheck(MixedRuleInterface $rule): CheckInterface
152 152
     {
153 153
         return CheckBuilder::create(CheckName::ALL_KEYS_ARE)
154
-            ->withPredicate(static function ($value) use ($rule) {
154
+            ->withPredicate(static function($value) use ($rule) {
155 155
                 foreach ($value as $k => $v) {
156 156
                     $rule->validate($k);
157 157
                 }
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     public static function getAllValuesAreCheck(MixedRuleInterface $rule): CheckInterface
165 165
     {
166 166
         return CheckBuilder::create(CheckName::ALL_VALUES_ARE)
167
-            ->withPredicate(static function ($value) use ($rule) {
167
+            ->withPredicate(static function($value) use ($rule) {
168 168
                 foreach ($value as $v) {
169 169
                     $rule->validate($v);
170 170
                 }
Please login to merge, or discard this patch.