Completed
Push — master ( f5d71d...bfd9cb )
by Sam
12:52
created
tests/view/ContentNegotiatorTest.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -5,6 +5,7 @@
 block discarded – undo
5 5
 	/**
6 6
 	 * Small helper to render templates from strings
7 7
 	 * Cloned from SSViewerTest
8
+	 * @param string $templateString
8 9
 	 */
9 10
 	private function render($templateString, $data = null) {
10 11
 		$t = SSViewer::fromString($templateString);
Please login to merge, or discard this patch.
admin/code/LeftAndMain.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 	/**
253 253
 	 * Gets the combined configuration of all LeafAndMain subclasses required by the client app.
254 254
 	 *
255
-	 * @return array
255
+	 * @return string
256 256
 	 *
257 257
 	 * WARNING: Experimental API
258 258
 	 */
@@ -691,7 +691,7 @@  discard block
 block discarded – undo
691 691
 	 *
692 692
 	 * @param string $url
693 693
 	 * @param int $code
694
-	 * @return HTTPResponse|string
694
+	 * @return string|null
695 695
 	 */
696 696
 	public function redirect($url, $code=302) {
697 697
 		if($this->getRequest()->isAjax()) {
@@ -969,7 +969,7 @@  discard block
 block discarded – undo
969 969
 	 * {@link SSViewer::get_templates_by_class()}
970 970
 	 *
971 971
 	 * @param string $suffix
972
-	 * @return array
972
+	 * @return string
973 973
 	 */
974 974
 	public function getTemplatesWithSuffix($suffix) {
975 975
 		$templates = SSViewer::get_templates_by_class(get_class($this), $suffix, __CLASS__);
@@ -2039,7 +2039,7 @@  discard block
 block discarded – undo
2039 2039
 	}
2040 2040
 
2041 2041
 	/**
2042
-	 * @return String
2042
+	 * @return DBField
2043 2043
 	 */
2044 2044
 	public function Locale() {
2045 2045
 		return DBField::create_field('Locale', i18n::get_locale());
Please login to merge, or discard this patch.
Control/Controller.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,6 +142,7 @@  discard block
 block discarded – undo
142 142
 	 * {@inheritdoc}
143 143
 	 *
144 144
 	 * Also set the URLParams
145
+	 * @param HTTPRequest $request
145 146
 	 */
146 147
 	public function setRequest($request) {
147 148
 		$return = parent::setRequest($request);
@@ -501,7 +502,7 @@  discard block
 block discarded – undo
501 502
 	 *
502 503
 	 * @param array $params
503 504
 	 *
504
-	 * @return string
505
+	 * @return DBHTMLText
505 506
 	 */
506 507
 	public function render($params = null) {
507 508
 		$template = $this->getViewer($this->getAction());
@@ -664,7 +665,7 @@  discard block
 block discarded – undo
664 665
 	 * Tests whether a redirection has been requested. If redirect() has been called, it will return
665 666
 	 * the URL redirected to. Otherwise, it will return null.
666 667
 	 *
667
-	 * @return null|string
668
+	 * @return boolean
668 669
 	 */
669 670
 	public function redirectedTo() {
670 671
 		return $this->getResponse() && $this->getResponse()->getHeader('Location');
Please login to merge, or discard this patch.
Control/RequestHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@
 block discarded – undo
289 289
 	 *
290 290
 	 * Must not raise HTTPResponse_Exceptions - instead it should return
291 291
 	 *
292
-	 * @param $request
292
+	 * @param HTTPRequest $request
293 293
 	 * @param $action
294 294
 	 * @return HTTPResponse
295 295
 	 */
Please login to merge, or discard this patch.