@@ -23,6 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | /** |
25 | 25 | * Initializes the Model object. |
26 | + * @param Model $model |
|
26 | 27 | */ |
27 | 28 | public function __construct($model) |
28 | 29 | { |
@@ -290,7 +291,7 @@ discard block |
||
290 | 291 | * Sends HTTP headers. Simply calls PHP built-in header function. But being |
291 | 292 | * a function here, it can easily be tested/mocked. |
292 | 293 | * |
293 | - * @param $header string header to be sent |
|
294 | + * @param string $header string header to be sent |
|
294 | 295 | */ |
295 | 296 | protected function sendHeader($header) |
296 | 297 | { |
@@ -156,18 +156,18 @@ discard block |
||
156 | 156 | $localname = $vocab->getLocalName($uri); |
157 | 157 | if ($localname !== $uri && $localname === urlencode($localname)) { |
158 | 158 | // check that the prefix stripping worked, and there are no problematic chars in localname |
159 | - $paramstr = count($params) > 0 ? '?' . http_build_query($params) : ''; |
|
159 | + $paramstr = count($params) > 0 ? '?'.http_build_query($params) : ''; |
|
160 | 160 | if ($type && $type !== '' && $type !== 'vocab' && !($localname === '' && $type === 'page')) { |
161 | - return "$vocid/$lang/$type/$localname" . $paramstr; |
|
161 | + return "$vocid/$lang/$type/$localname".$paramstr; |
|
162 | 162 | } |
163 | 163 | |
164 | - return "$vocid/$lang/$localname" . $paramstr; |
|
164 | + return "$vocid/$lang/$localname".$paramstr; |
|
165 | 165 | } |
166 | 166 | |
167 | 167 | // case 2: URI outside vocabulary namespace, or has problematic chars |
168 | 168 | // pass the full URI as parameter instead |
169 | 169 | $params['uri'] = $uri; |
170 | - return "$vocid/$lang/$type/?" . http_build_query($params); |
|
170 | + return "$vocid/$lang/$type/?".http_build_query($params); |
|
171 | 171 | } |
172 | 172 | |
173 | 173 | /** |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | { |
322 | 322 | if ($modifiedDate) { |
323 | 323 | $ifModifiedSince = $this->getIfModifiedSince(); |
324 | - $this->sendHeader("Last-Modified: " . $modifiedDate->format('Y-m-d H:i:s')); |
|
324 | + $this->sendHeader("Last-Modified: ".$modifiedDate->format('Y-m-d H:i:s')); |
|
325 | 325 | if ($ifModifiedSince !== null && $ifModifiedSince >= $modifiedDate) { |
326 | 326 | $this->sendHeader("HTTP/1.0 304 Not Modified"); |
327 | 327 | return true; |
@@ -235,6 +235,11 @@ discard block |
||
235 | 235 | )); |
236 | 236 | } |
237 | 237 | |
238 | + /** |
|
239 | + * @param string $fromName |
|
240 | + * @param string|null $fromEmail |
|
241 | + * @param string $sender |
|
242 | + */ |
|
238 | 243 | private function createFeedbackHeaders($fromName, $fromEmail, $toMail, $sender) |
239 | 244 | { |
240 | 245 | $headers = "MIME-Version: 1.0" . "\r\n"; |
@@ -256,6 +261,7 @@ discard block |
||
256 | 261 | * @param string $fromName senders own name. |
257 | 262 | * @param string $fromEmail senders email address. |
258 | 263 | * @param string $fromVocab which vocabulary is the feedback related to. |
264 | + * @param string $toMail |
|
259 | 265 | */ |
260 | 266 | public function sendFeedback($request, $message, $fromName = null, $fromEmail = null, $fromVocab = null, $toMail = null) |
261 | 267 | { |
@@ -538,6 +544,7 @@ discard block |
||
538 | 544 | |
539 | 545 | /** |
540 | 546 | * Invokes a very generic errorpage. |
547 | + * @param string $message |
|
541 | 548 | */ |
542 | 549 | public function invokeGenericErrorPage($request, $message = null) |
543 | 550 | { |