Completed
Push — 1.x ( 9c8fd3...8c441f )
by Asao
02:24
created
src/Forms.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
 
91 91
     /**
92 92
      * @param Tag $form
93
-     * @return mixed
93
+     * @return Tag
94 94
      */
95 95
     private function setClass($form)
96 96
     {
Please login to merge, or discard this patch.
src/Tags/Composite.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     }
53 53
 
54 54
     /**
55
-     * @param $name
55
+     * @param string $name
56 56
      * @return $this
57 57
      */
58 58
     private function name($name)
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     }
65 65
 
66 66
     /**
67
-     * @param string|Closure $format
67
+     * @param string $format
68 68
      * @return $this
69 69
      */
70 70
     public function format($format)
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,12 +70,12 @@  discard block
 block discarded – undo
70 70
     public function format($format)
71 71
     {
72 72
         if (is_string($format)) {
73
-            $format = function ($list) use ($format) {
73
+            $format = function($list) use ($format) {
74 74
                 $fields = [
75 75
                     $format,
76 76
                 ];
77 77
                 foreach ($list as $tag) {
78
-                    $fields[] = (string)$tag;
78
+                    $fields[] = (string) $tag;
79 79
                 }
80 80
                 return call_user_func_array('sprintf', $fields);
81 81
             };
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     public function resetWidth($width = 'auto')
134 134
     {
135 135
         $width = $width ?: 'auto';
136
-        foreach($this->fields as $field) {
136
+        foreach ($this->fields as $field) {
137 137
             $field->style('width: ' . $width);
138 138
             if ($width === 'auto') {
139 139
                 $field->style('display: inline');
Please login to merge, or discard this patch.
src/Data/AbstractData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
             if (is_array($found)) {
78 78
                 return in_array($value, $found);
79 79
             }
80
-            return (string)$value === (string)$found;
80
+            return (string) $value === (string) $found;
81 81
         }
82 82
         return true;
83 83
     }
Please login to merge, or discard this patch.
src/Data/Accessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         if ((is_array($data))) {
35 35
             return true;
36 36
         }
37
-        if (is_object($data) &&  $data instanceof ArrayAccess) {
37
+        if (is_object($data) && $data instanceof ArrayAccess) {
38 38
             return true;
39 39
         }
40 40
         return false;
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public static function getArray($data, $key, $default = null)
50 50
     {
51
-        return array_key_exists($key, $data) ? $data[$key]: $default;
51
+        return array_key_exists($key, $data) ? $data[$key] : $default;
52 52
     }
53 53
 
54 54
     /**
Please login to merge, or discard this patch.
src/Data/Escape.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      */
59 59
     public function getEscape()
60 60
     {
61
-        return function ($value) {
61
+        return function($value) {
62 62
             return $this->escape($value);
63 63
         };
64 64
     }
Please login to merge, or discard this patch.
src/Data/Message.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,9 +72,9 @@
 block discarded – undo
72 72
             self::ALERT   => 2,
73 73
             self::MESSAGE => 1,
74 74
         ];
75
-        $serious   = array_reduce(
75
+        $serious = array_reduce(
76 76
             $this->messages,
77
-            function ($carry, $msg) use ($msgScores) {
77
+            function($carry, $msg) use ($msgScores) {
78 78
                 $myScore      = $msgScores[$msg['type']];
79 79
                 $msg['score'] = $myScore;
80 80
                 return $myScore > $carry['score'] ? $msg : $carry;
Please login to merge, or discard this patch.
src/Dates.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      */
68 68
     public function __construct($options = [])
69 69
     {
70
-        foreach( ['years', 'months', 'days', 'hours', 'minutes', 'seconds'] as $field) {
70
+        foreach (['years', 'months', 'days', 'hours', 'minutes', 'seconds'] as $field) {
71 71
             if (isset($options[$field])) {
72 72
                 $this->$field = $options[$field];
73 73
             }
Please login to merge, or discard this patch.
src/Lists/AbstractList.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     protected function getList()
87 87
     {
88 88
         $years = [];
89
-        $cmp   = function ($y) {
89
+        $cmp   = function($y) {
90 90
             if ($this->step > 0) {
91 91
                 return $y <= $this->end;
92 92
             }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             return false;
97 97
         };
98 98
         for ($y = $this->start; $cmp($y); $y += $this->step) {
99
-            $years[sprintf($this->formatValue,$y)] = $this->format($y);
99
+            $years[sprintf($this->formatValue, $y)] = $this->format($y);
100 100
         }
101 101
         return $years;
102 102
     }
Please login to merge, or discard this patch.
src/Lists/DatesComposer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
         }
88 88
         $format = $format ?: $info['format'];
89 89
         $fields = [];
90
-        foreach($info['fields'] as $key => $method) {
90
+        foreach ($info['fields'] as $key => $method) {
91 91
             $fields[$key] = $this->dates->$method($name);
92 92
         }
93 93
         return $this->dates->makeComposite($name, $fields, $format, $value);
Please login to merge, or discard this patch.