Merge pull request #2 from jgen/scrutinizer-patch-1
Scrutinizer Auto-Fixes
This commit is contained in:
		
						commit
						9a68d7ac98
					
				| @ -168,7 +168,7 @@ class SearchTermParseEvent extends Event { | |||||||
| 
 | 
 | ||||||
| 	/** | 	/** | ||||||
| 	 * @param string|null $term | 	 * @param string|null $term | ||||||
| 	 * @param array $context | 	 * @param string[] $context | ||||||
| 	 */ | 	 */ | ||||||
| 	public function __construct($term, array $context) { | 	public function __construct($term, array $context) { | ||||||
| 		$this->term = $term; | 		$this->term = $term; | ||||||
|  | |||||||
| @ -776,6 +776,9 @@ class OuroborosAPI extends Extension | |||||||
|         $page->set_data($response); |         $page->set_data($response); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |     /** | ||||||
|  |      * @param string $type | ||||||
|  |      */ | ||||||
|     private function createItemXML(XMLWriter &$xml, $type, $item) |     private function createItemXML(XMLWriter &$xml, $type, $item) | ||||||
|     { |     { | ||||||
|         $xml->startElement($type); |         $xml->startElement($type); | ||||||
|  | |||||||
| @ -45,6 +45,9 @@ class ViewImageTheme extends Themelet { | |||||||
| 		return "$h_prev | $h_index | $h_next"; | 		return "$h_prev | $h_index | $h_next"; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | 	/** | ||||||
|  | 	 * @return string | ||||||
|  | 	 */ | ||||||
| 	protected function build_navigation(Image $image) { | 	protected function build_navigation(Image $image) { | ||||||
| 		$h_pin = $this->build_pin($image); | 		$h_pin = $this->build_pin($image); | ||||||
| 		$h_search = " | 		$h_search = " | ||||||
|  | |||||||
| @ -63,6 +63,9 @@ abstract class ShimmiePHPUnitTestCase extends \PHPUnit_Framework_TestCase { | |||||||
| 		$this->assertNotContains($title, $page->title); | 		$this->assertNotContains($title, $page->title); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | 	/** | ||||||
|  | 	 * @param integer $code | ||||||
|  | 	 */ | ||||||
| 	protected function assert_response($code) { | 	protected function assert_response($code) { | ||||||
| 		global $page; | 		global $page; | ||||||
| 		$this->assertEquals($code, $page->code); | 		$this->assertEquals($code, $page->code); | ||||||
| @ -84,15 +87,24 @@ abstract class ShimmiePHPUnitTestCase extends \PHPUnit_Framework_TestCase { | |||||||
| 		$this->assertContains($text, $this->page_to_text($section)); | 		$this->assertContains($text, $this->page_to_text($section)); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | 	/** | ||||||
|  | 	 * @param string $text | ||||||
|  | 	 */ | ||||||
| 	protected function assert_no_text($text, $section=null) { | 	protected function assert_no_text($text, $section=null) { | ||||||
| 		$this->assertNotContains($text, $this->page_to_text($section)); | 		$this->assertNotContains($text, $this->page_to_text($section)); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | 	/** | ||||||
|  | 	 * @param string $content | ||||||
|  | 	 */ | ||||||
| 	protected function assert_content($content) { | 	protected function assert_content($content) { | ||||||
| 		global $page; | 		global $page; | ||||||
| 		$this->assertContains($content, $page->data); | 		$this->assertContains($content, $page->data); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | 	/** | ||||||
|  | 	 * @param string $content | ||||||
|  | 	 */ | ||||||
| 	protected function assert_no_content($content) { | 	protected function assert_no_content($content) { | ||||||
| 		global $page; | 		global $page; | ||||||
| 		$this->assertNotContains($content, $page->data); | 		$this->assertNotContains($content, $page->data); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user