Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-29 10:38:33 +0400
committerBart Visscher <bartv@thisnet.nl>2012-08-29 22:28:45 +0400
commit52f2e7112ea985203eca16aa787bd75a7cf92194 (patch)
tree1d1f5070b050652940847c569b1d3968bdae082c /lib/image.php
parent76bc4753e9bd2698415b067108806d82ac56b663 (diff)
Whitespace fixes in lib
Diffstat (limited to 'lib/image.php')
-rw-r--r--lib/image.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/image.php b/lib/image.php
index 90c64320a7c..e87cf9e16d9 100644
--- a/lib/image.php
+++ b/lib/image.php
@@ -383,7 +383,7 @@ class OC_Image {
/**
* @brief Loads an image from an open file handle.
* It is the responsibility of the caller to position the pointer at the correct place and to close the handle again.
- * @param $handle
+ * @param $handle
* @returns An image resource or false on error
*/
public function loadFromFileHandle($handle) {
@@ -468,7 +468,7 @@ class OC_Image {
break;
*/
default:
-
+
// this is mostly file created from encrypted file
$this->resource = imagecreatefromstring(\OC_Filesystem::file_get_contents(\OC_Filesystem::getLocalPath($imagepath)));
$itype = IMAGETYPE_PNG;
@@ -534,7 +534,7 @@ class OC_Image {
$width_orig=imageSX($this->resource);
$height_orig=imageSY($this->resource);
$ratio_orig = $width_orig/$height_orig;
-
+
if ($ratio_orig > 1) {
$new_height = round($maxsize/$ratio_orig);
$new_width = $maxsize;
@@ -564,7 +564,7 @@ class OC_Image {
public function preciseResize($width, $height) {
if (!$this->valid()) {
OC_Log::write('core',__METHOD__.'(): No image loaded', OC_Log::ERROR);
- return false;
+ return false;
}
$width_orig=imageSX($this->resource);
$height_orig=imageSY($this->resource);