diff options
author | Zach Prezkuta <fermion@gmx.com> | 2012-06-18 21:06:54 -0600 |
---|---|---|
committer | Zach Prezkuta <fermion@gmx.com> | 2012-06-18 21:06:54 -0600 |
commit | 7cd516e34f95945b7f15f42cfe7318dfd907c8d8 (patch) | |
tree | 825a133196bb9b95c55a8b770e5990bd5fb0a80d /include | |
parent | 42fa47e8f780e50392ca2b2289f58d2f6b840c86 (diff) | |
download | volse-hubzilla-7cd516e34f95945b7f15f42cfe7318dfd907c8d8.tar.gz volse-hubzilla-7cd516e34f95945b7f15f42cfe7318dfd907c8d8.tar.bz2 volse-hubzilla-7cd516e34f95945b7f15f42cfe7318dfd907c8d8.zip |
fix some whitespace issues
Diffstat (limited to 'include')
-rw-r--r-- | include/Photo.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/Photo.php b/include/Photo.php index 66dec0611..54db9278e 100644 --- a/include/Photo.php +++ b/include/Photo.php @@ -124,20 +124,20 @@ class Photo { } public function flip($horiz = true, $vert = false) { - $w = imagesx($this->image); - $h = imagesy($this->image); - $flipped = imagecreate($w, $h); + $w = imagesx($this->image); + $h = imagesy($this->image); + $flipped = imagecreate($w, $h); if($horiz) { - for ($x = 0; $x < $w; $x++) { - imagecopy($flipped, $this->image, $x, 0, $w - $x - 1, 0, 1, $h); - } - } - if($vert) { - for ($y = 0; $y < $h; $y++) { - imagecopy($flipped, $this->image, 0, $y, 0, $h - $y - 1, $w, 1); - } - } - $this->image = $flipped; + for ($x = 0; $x < $w; $x++) { + imagecopy($flipped, $this->image, $x, 0, $w - $x - 1, 0, 1, $h); + } + } + if($vert) { + for ($y = 0; $y < $h; $y++) { + imagecopy($flipped, $this->image, 0, $y, 0, $h - $y - 1, $w, 1); + } + } + $this->image = $flipped; } public function orient($filename) { |