More type hints!

This commit is contained in:
green-ponies (jgen)
2012-02-09 23:04:37 -05:00
parent 0b26eba141
commit 30eb5ddd8b
31 changed files with 66 additions and 57 deletions

View File

@@ -143,16 +143,14 @@ class ResizeImage extends Extension {
// Private functions
/* ----------------------------- */
/*
This function could be made much smaller by using the ImageReplaceEvent
ie: Pretend that we are replacing the image with a resized copy.
*/
private function resize_image($image_id, $width, $height) {
global $config;
global $user;
global $page;
global $database;
private function resize_image(/*int*/ $image_id, /*int*/ $width, /*int*/ $height) {
global $config, $user, $page, $database;
if ( ($height <= 0) && ($width <= 0) ) {
throw new ImageResizeException("Invalid options for height and width. ($width x $height)");