diff --git a/ext/index/main.php b/ext/index/main.php index 5d09218b..906b446f 100644 --- a/ext/index/main.php +++ b/ext/index/main.php @@ -168,7 +168,7 @@ class SearchTermParseEvent extends Event { /** * @param string|null $term - * @param array $context + * @param string[] $context */ public function __construct($term, array $context) { $this->term = $term; diff --git a/ext/ouroboros_api/main.php b/ext/ouroboros_api/main.php index 8c8a5138..95a69d97 100644 --- a/ext/ouroboros_api/main.php +++ b/ext/ouroboros_api/main.php @@ -776,6 +776,9 @@ class OuroborosAPI extends Extension $page->set_data($response); } + /** + * @param string $type + */ private function createItemXML(XMLWriter &$xml, $type, $item) { $xml->startElement($type); diff --git a/ext/view/theme.php b/ext/view/theme.php index 68e6affe..64bd1a57 100644 --- a/ext/view/theme.php +++ b/ext/view/theme.php @@ -45,6 +45,9 @@ class ViewImageTheme extends Themelet { return "$h_prev | $h_index | $h_next"; } + /** + * @return string + */ protected function build_navigation(Image $image) { $h_pin = $this->build_pin($image); $h_search = " diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 73172759..d17b242a 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -63,6 +63,9 @@ abstract class ShimmiePHPUnitTestCase extends \PHPUnit_Framework_TestCase { $this->assertNotContains($title, $page->title); } + /** + * @param integer $code + */ protected function assert_response($code) { global $page; $this->assertEquals($code, $page->code); @@ -84,15 +87,24 @@ abstract class ShimmiePHPUnitTestCase extends \PHPUnit_Framework_TestCase { $this->assertContains($text, $this->page_to_text($section)); } + /** + * @param string $text + */ protected function assert_no_text($text, $section=null) { $this->assertNotContains($text, $this->page_to_text($section)); } + /** + * @param string $content + */ protected function assert_content($content) { global $page; $this->assertContains($content, $page->data); } + /** + * @param string $content + */ protected function assert_no_content($content) { global $page; $this->assertNotContains($content, $page->data);