1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-01-18 03:28:16 +01:00

code formatting and making log() public

This commit is contained in:
Mikael Roos 2014-05-20 00:55:43 +02:00
parent dedd01bc71
commit b4f51f3438

View File

@ -1183,7 +1183,7 @@ class CImage
* @param int $height of the new image. * @param int $height of the new image.
* @return image resource. * @return image resource.
*/ */
private function CreateImageKeepTransparency($width, $height) private function createImageKeepTransparency($width, $height)
{ {
$this->log("Creating a new working image width={$width}px, height={$height}px."); $this->log("Creating a new working image width={$width}px, height={$height}px.");
$img = imagecreatetruecolor($width, $height); $img = imagecreatetruecolor($width, $height);
@ -1386,13 +1386,15 @@ class CImage
* *
* @param string $message to log. * @param string $message to log.
* *
* @return void * @return this
*/ */
private function log($message) public function log($message)
{ {
if ($this->verbose) { if ($this->verbose) {
$this->log[] = $message; $this->log[] = $message;
} }
return $this;
} }