Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
Scrutinizer Auto-Fixer 2017-03-12 23:45:38 +00:00
parent b053be5d88
commit 1caef6d633
4 changed files with 19 additions and 1 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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 = "

View file

@ -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);