Completed
Pull Request — master (#11)
by ARCANEDEV
02:31
created
src/Exporters/AbstractExporter.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,8 +164,9 @@
 block discarded – undo
164 164
      */
165 165
     protected function makeRows()
166 166
     {
167
-        if ( ! empty($headerRow = $this->serializer->getHeader()))
168
-            $this->writer->addRow($headerRow);
167
+        if ( ! empty($headerRow = $this->serializer->getHeader())) {
168
+                    $this->writer->addRow($headerRow);
169
+        }
169 170
 
170 171
         foreach ($this->data as $record) {
171 172
             $this->writer->addRow(
Please login to merge, or discard this patch.
src/Importers/AbstractImporter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
     /**
120 120
      * Get the parsed data for a single sheet.
121 121
      *
122
-     * @param  int|string  $sheet
122
+     * @param  integer  $sheet
123 123
      *
124 124
      * @return \Illuminate\Support\Collection
125 125
      */
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -182,8 +182,7 @@
 block discarded – undo
182 182
                 }
183 183
 
184 184
                 $sheets->put($index, $rows);
185
-            }
186
-            elseif ($sheetIndex === $index) {
185
+            } elseif ($sheetIndex === $index) {
187 186
                 foreach ($sheet->getRowIterator() as $row) {
188 187
                     $sheets->push($this->parser->transform($row));
189 188
                 }
Please login to merge, or discard this patch.