Passed
Push — master ( e3a586...14f326 )
by Roman
02:27
created
src/Table.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -98,10 +98,10 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function rotate($angle) {
100 100
         $data = [];
101
-        switch($angle) {
101
+        switch ($angle) {
102 102
             case 90:
103
-                for($i = count($this->data) - 1; $i >= 0; $i--) {
104
-                    foreach($this->data[$i] as $key => $val) {
103
+                for ($i = count($this->data) - 1; $i >= 0; $i--) {
104
+                    foreach ($this->data[$i] as $key => $val) {
105 105
                         $data[$key][] = $val;
106 106
                     }
107 107
                 }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
                 $this->rotate(-90);
115 115
                 return;
116 116
             case -90:
117
-                for ($i = $this->getDimensionX() -1; $i >= 0; $i--) {
117
+                for ($i = $this->getDimensionX() - 1; $i >= 0; $i--) {
118 118
                     $row = [];
119 119
                     foreach ($this->data as $val) {
120 120
                         $row[] = $val[$i];
Please login to merge, or discard this patch.