Completed
Push — master ( 5d8274...535412 )
by Elf
03:21
created
src/Constants/Sex.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * Convert a sex string to int type.
28 28
      *
29
-     * @param  mixed  $string
30 29
      * @return int
31 30
      */
32 31
     public static function type($sex)
@@ -43,7 +42,7 @@  discard block
 block discarded – undo
43 42
     /**
44 43
      * All sex types.
45 44
      *
46
-     * @return int[]
45
+     * @return integer[]
47 46
      */
48 47
     public static function allTypes()
49 48
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,6 +47,6 @@
 block discarded – undo
47 47
      */
48 48
     public static function allTypes()
49 49
     {
50
-        return [static::MALE, static::FEMALE];
50
+        return [ static::MALE, static::FEMALE ];
51 51
     }
52 52
 }
Please login to merge, or discard this patch.
src/Traits/SexAttribute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,6 +24,6 @@
 block discarded – undo
24 24
      */
25 25
     public function setSexAttribute($value)
26 26
     {
27
-        $this->attributes['sex'] = Sex::type($value);
27
+        $this->attributes[ 'sex' ] = Sex::type($value);
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
src/Traits/FreshCreatedAt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     protected static function bootFreshCreatedAt()
28 28
     {
29
-        static::creating(function ($model) {
29
+        static::creating(function($model) {
30 30
             $model->setCreatedAt($model->freshTimestamp());
31 31
         });
32 32
     }
Please login to merge, or discard this patch.