Passed
Pull Request — master (#4440)
by
unknown
12:48
created
src/PhpSpreadsheet/Worksheet/Worksheet.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -3872,19 +3872,19 @@  discard block
 block discarded – undo
3872 3872
     }
3873 3873
 
3874 3874
 
3875
-     /**
3876
-      * Copy a row, including style, data and height
3877
-      *
3878
-      * @param int $from row that will be copied
3879
-      * @param int $to row that will receive the copy
3880
-      * @return void
3881
-      */
3882
-      public function copyRow($from, $to) {
3875
+        /**
3876
+         * Copy a row, including style, data and height
3877
+         *
3878
+         * @param int $from row that will be copied
3879
+         * @param int $to row that will receive the copy
3880
+         * @return void
3881
+         */
3882
+        public function copyRow($from, $to) {
3883 3883
         $this->getRowDimension($to)->setRowHeight($this->getRowDimension($from)->getRowHeight());
3884 3884
         $fromRowCellIterator = $this->getRowIterator($from,$from)->current()->getCellIterator();
3885 3885
         try {
3886
-          $fromRowCellIterator->setIterateOnlyExistingCells(true);
3887
-          foreach ($fromRowCellIterator as $fromCellIt) {
3886
+            $fromRowCellIterator->setIterateOnlyExistingCells(true);
3887
+            foreach ($fromRowCellIterator as $fromCellIt) {
3888 3888
             $fromCoordinates = $fromCellIt->getCoordinate();
3889 3889
             $toCellCoordinates = $fromCellIt->getColumn().$to;
3890 3890
             // Cache data as trying to save the cells as variables doesn't work
@@ -3896,9 +3896,9 @@  discard block
 block discarded – undo
3896 3896
             $toCell->setValue($value);
3897 3897
             $toCell->setDataType($dataType);
3898 3898
             $this->duplicateStyle($style,$toCellCoordinates);
3899
-          }
3899
+            }
3900 3900
         } catch (\Exception $e) {
3901
-          unset($e); // Do nothing, the row was empty
3901
+            unset($e); // Do nothing, the row was empty
3902 3902
         }
3903 3903
     }
3904 3904
 
Please login to merge, or discard this patch.