Passed
Push — develop ( 5c61b7...a7d981 )
by Freddie
03:02
created
src/SchemaAttribute.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -233,11 +233,11 @@  discard block
 block discarded – undo
233 233
      */
234 234
     public function default()
235 235
     {
236
-        if (!isset($this->constraints[Rule::DEFAULT])) {
236
+        if (!isset($this->constraints[Rule::default])) {
237 237
             return null;
238 238
         }
239 239
 
240
-        return $this->constraints[Rule::DEFAULT];
240
+        return $this->constraints[Rule::default];
241 241
     }
242 242
 
243 243
     public function usedIn(string $action): bool
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
                 unset($constraints[$name]);
373 373
             } elseif ($name === Rule::FOREIGNKEY && \is_string($value)) {
374 374
                 $constraints[$name] = $this->getFkOptions($value);
375
-            } elseif ($name === Rule::DEFAULT && \is_string($value) && \preg_match('#^\d.\d#', $value)) {
375
+            } elseif ($name === Rule::default && \is_string($value) && \preg_match('#^\d.\d#', $value)) {
376 376
                 $constraints[$name] = (float)$value;
377 377
             } else {
378 378
                 $constraints[$name] = \is_numeric($value) ? (int)$value : $value;
Please login to merge, or discard this patch.