+ * Link: http://code.shishnet.org/shimmie2/
* License: GPLv2
* Description: Show a twitter feed with the Sea of Clouds script
*/
diff --git a/contrib/twitter_soc/theme.php b/contrib/twitter_soc/theme.php
index be5c68fe..efbf7959 100644
--- a/contrib/twitter_soc/theme.php
+++ b/contrib/twitter_soc/theme.php
@@ -4,7 +4,7 @@ class TwitterSocTheme extends Themelet {
/*
* Show $text on the $page
*/
- public function display_feed(Page $page, $username) {
+ public function display_feed(Page $page, /*string*/ $username) {
$page->add_block(new Block("Tweets", '
Follow us on Twitter
diff --git a/contrib/word_filter/main.php b/contrib/word_filter/main.php
index df13e73f..f85cc3de 100644
--- a/contrib/word_filter/main.php
+++ b/contrib/word_filter/main.php
@@ -2,6 +2,7 @@
/*
* Name: Word Filter
* Author: Shish
+ * Link: http://code.shishnet.org/shimmie2/
* License: GPLv2
* Description: Simple search and replace
*/
@@ -22,7 +23,7 @@ class WordFilter extends Extension {
$event->panel->add_block($sb);
}
- private function filter($text) {
+ private function filter(/*string*/ $text) {
$map = $this->get_map();
foreach($map as $search => $replace) {
$search = trim($search);
diff --git a/core/util.inc.php b/core/util.inc.php
index fa2758d8..482d4263 100644
--- a/core/util.inc.php
+++ b/core/util.inc.php
@@ -648,16 +648,16 @@ define("SCORE_LOG_NOTSET", 0);
/**
* A shorthand way to send a LogEvent
*/
-function log_msg($section, $priority, $message) {
+function log_msg(/*string*/ $section, /*int*/ $priority, /*string*/ $message) {
send_event(new LogEvent($section, $priority, $message));
}
// More shorthand ways of logging
-function log_debug($section, $message) {log_msg($section, SCORE_LOG_DEBUG, $message);}
-function log_info($section, $message) {log_msg($section, SCORE_LOG_INFO, $message);}
-function log_warning($section, $message) {log_msg($section, SCORE_LOG_WARNING, $message);}
-function log_error($section, $message) {log_msg($section, SCORE_LOG_ERROR, $message);}
-function log_critical($section, $message) {log_msg($section, SCORE_LOG_CRITICAL, $message);}
+function log_debug(/*string*/ $section, /*string*/ $message) {log_msg($section, SCORE_LOG_DEBUG, $message);}
+function log_info(/*string*/ $section, /*string*/ $message) {log_msg($section, SCORE_LOG_INFO, $message);}
+function log_warning(/*string*/ $section, /*string*/ $message) {log_msg($section, SCORE_LOG_WARNING, $message);}
+function log_error(/*string*/ $section, /*string*/ $message) {log_msg($section, SCORE_LOG_ERROR, $message);}
+function log_critical(/*string*/ $section, /*string*/ $message) {log_msg($section, SCORE_LOG_CRITICAL, $message);}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
diff --git a/ext/ext_manager/theme.php b/ext/ext_manager/theme.php
index 25f4aac7..7dd74d5c 100644
--- a/ext/ext_manager/theme.php
+++ b/ext/ext_manager/theme.php
@@ -1,7 +1,7 @@
Enabled" : "";
$html = "
diff --git a/ext/handle_pixel/main.php b/ext/handle_pixel/main.php
index 2904ed0f..b5bb9601 100644
--- a/ext/handle_pixel/main.php
+++ b/ext/handle_pixel/main.php
@@ -2,6 +2,7 @@
/**
* Name: Handle Pixel
* Author: Shish
+ * Link: http://code.shishnet.org/shimmie2/
* Description: Handle JPEG, PNG, GIF, etc files
*/
@@ -17,7 +18,7 @@ class PixelFileHandler extends DataHandlerExtension {
return in_array(strtolower($ext), $exts);
}
- protected function create_image_from_data($filename, $metadata) {
+ protected function create_image_from_data(/*string*/ $filename, /*array*/ $metadata) {
global $config;
$image = new Image();
@@ -38,7 +39,7 @@ class PixelFileHandler extends DataHandlerExtension {
return $image;
}
- protected function check_contents($file) {
+ protected function check_contents(/*string*/ $file) {
$valid = Array(IMAGETYPE_PNG, IMAGETYPE_GIF, IMAGETYPE_JPEG);
if(!file_exists($file)) return false;
$info = getimagesize($file);
@@ -47,7 +48,7 @@ class PixelFileHandler extends DataHandlerExtension {
return false;
}
- protected function create_thumb($hash) {
+ protected function create_thumb(/*string*/ $hash) {
$outname = warehouse_path("thumbs", $hash);
if(file_exists($outname)) {
return true;
@@ -55,7 +56,7 @@ class PixelFileHandler extends DataHandlerExtension {
return $this->create_thumb_force($hash);
}
- protected function create_thumb_force($hash) {
+ protected function create_thumb_force(/*string*/ $hash) {
$inname = warehouse_path("images", $hash);
$outname = warehouse_path("thumbs", $hash);
global $config;
@@ -76,7 +77,7 @@ class PixelFileHandler extends DataHandlerExtension {
}
// IM thumber {{{
- private function make_thumb_convert($inname, $outname) {
+ private function make_thumb_convert(/*string*/ $inname, /*string*/ $outname) {
global $config;
$w = $config->get_int("thumb_width");
@@ -113,7 +114,7 @@ class PixelFileHandler extends DataHandlerExtension {
}
// }}}
// epeg thumber {{{
- private function make_thumb_epeg($inname, $outname) {
+ private function make_thumb_epeg(/*string*/ $inname, /*string*/ $outname) {
global $config;
$w = $config->get_int("thumb_width");
exec("epeg $inname -c 'Created by EPEG' --max $w $outname");
@@ -121,7 +122,7 @@ class PixelFileHandler extends DataHandlerExtension {
}
// }}}
// GD thumber {{{
- private function make_thumb_gd($inname, $outname) {
+ private function make_thumb_gd(/*string*/ $inname, /*string*/ $outname) {
global $config;
$thumb = $this->get_thumb($inname);
$ok = imagejpeg($thumb, $outname, $config->get_int('thumb_quality'));
@@ -129,7 +130,7 @@ class PixelFileHandler extends DataHandlerExtension {
return $ok;
}
- private function get_thumb($tmpname) {
+ private function get_thumb(/*string*/ $tmpname) {
global $config;
$info = getimagesize($tmpname);
@@ -165,7 +166,7 @@ class PixelFileHandler extends DataHandlerExtension {
}
}
- private function read_file($fname) {
+ private function read_file(/*string*/ $fname) {
$fp = fopen($fname, "r");
if(!$fp) return false;