Completed
Push — master ( 707b28...82d13a )
by Andrew
02:12
created
src/Csv.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -71,11 +71,17 @@  discard block
 block discarded – undo
71 71
         }
72 72
     }
73 73
 
74
+    /**
75
+     * @param \Closure $callback
76
+     */
74 77
     public function mapRows($callback)
75 78
     {
76 79
         $this->data = array_map($callback, $this->data);
77 80
     }
78 81
 
82
+    /**
83
+     * @param \Closure $callback
84
+     */
79 85
     public function filterRows($callback)
80 86
     {
81 87
         $this->data = array_filter($this->data, $callback);
@@ -136,6 +142,9 @@  discard block
 block discarded – undo
136 142
         // TODO
137 143
     }
138 144
 
145
+    /**
146
+     * @param string $column
147
+     */
139 148
     public function removeDuplicates($column)
140 149
     {
141 150
         $index = array();
@@ -148,6 +157,9 @@  discard block
 block discarded – undo
148 157
         });
149 158
     }
150 159
 
160
+    /**
161
+     * @param string $column
162
+     */
151 163
     public function removeBlanks($column)
152 164
     {
153 165
         $this->filterRows(function ($row) use ($column) {
Please login to merge, or discard this patch.