@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | * |
263 | 263 | * @param Concept $concept |
264 | 264 | * @param Vocabulary $vocab |
265 | - * @return DateTime|null |
|
265 | + * @return DateTime |
|
266 | 266 | */ |
267 | 267 | protected function getModifiedDate(Concept $concept, Vocabulary $vocab) |
268 | 268 | { |
@@ -438,6 +438,11 @@ discard block |
||
438 | 438 | )); |
439 | 439 | } |
440 | 440 | |
441 | + /** |
|
442 | + * @param string $fromName |
|
443 | + * @param string|null $fromEmail |
|
444 | + * @param string $sender |
|
445 | + */ |
|
441 | 446 | private function createFeedbackHeaders($fromName, $fromEmail, $toMail, $sender) |
442 | 447 | { |
443 | 448 | $headers = "MIME-Version: 1.0″ . '\r\n"; |
@@ -460,6 +465,7 @@ discard block |
||
460 | 465 | * @param string $fromName senders own name. |
461 | 466 | * @param string $fromEmail senders email adress. |
462 | 467 | * @param string $fromVocab which vocabulary is the feedback related to. |
468 | + * @param string $toMail |
|
463 | 469 | */ |
464 | 470 | public function sendFeedback($request, $message, $fromName = null, $fromEmail = null, $fromVocab = null, $toMail = null) |
465 | 471 | { |
@@ -740,6 +746,7 @@ discard block |
||
740 | 746 | |
741 | 747 | /** |
742 | 748 | * Invokes a very generic errorpage. |
749 | + * @param string $message |
|
743 | 750 | */ |
744 | 751 | public function invokeGenericErrorPage($request, $message = null) |
745 | 752 | { |
@@ -28,17 +28,17 @@ discard block |
||
28 | 28 | */ |
29 | 29 | private $configModifiedTime = null; |
30 | 30 | |
31 | - public function __construct($config_name='/../config.ttl') |
|
31 | + public function __construct($config_name = '/../config.ttl') |
|
32 | 32 | { |
33 | 33 | $this->cache = new Cache(); |
34 | 34 | try { |
35 | - $this->filePath = realpath( dirname(__FILE__) . $config_name ); |
|
35 | + $this->filePath = realpath(dirname(__FILE__).$config_name); |
|
36 | 36 | if (!file_exists($this->filePath)) { |
37 | 37 | throw new Exception('config.ttl file is missing, please provide one.'); |
38 | 38 | } |
39 | 39 | $this->initializeConfig(); |
40 | 40 | } catch (Exception $e) { |
41 | - echo "Error: " . $e->getMessage(); |
|
41 | + echo "Error: ".$e->getMessage(); |
|
42 | 42 | return; |
43 | 43 | } |
44 | 44 | } |
@@ -72,8 +72,8 @@ discard block |
||
72 | 72 | // use APC user cache to store parsed config.ttl configuration |
73 | 73 | if ($this->cache->isAvailable() && !is_null($this->configModifiedTime)) { |
74 | 74 | // @codeCoverageIgnoreStart |
75 | - $key = realpath($this->filePath) . ", " . $this->configModifiedTime; |
|
76 | - $nskey = "namespaces of " . $key; |
|
75 | + $key = realpath($this->filePath).", ".$this->configModifiedTime; |
|
76 | + $nskey = "namespaces of ".$key; |
|
77 | 77 | $this->graph = $this->cache->fetch($key); |
78 | 78 | $this->namespaces = $this->cache->fetch($nskey); |
79 | 79 | if ($this->graph === false || $this->namespaces === false) { // was not found in cache |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | $this->resource = $configResources[0]; |
95 | 95 | $this->initializeNamespaces(); |
96 | 96 | } catch (Exception $e) { |
97 | - echo "Error: " . $e->getMessage(); |
|
97 | + echo "Error: ".$e->getMessage(); |
|
98 | 98 | } |
99 | 99 | } |
100 | 100 | |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | public function getGlobalPlugins() |
325 | 325 | { |
326 | 326 | $globalPlugins = array(); |
327 | - $globalPluginsResource = $this->getResource()->getResource("skosmos:globalPlugins"); |
|
327 | + $globalPluginsResource = $this->getResource()->getResource("skosmos:globalPlugins"); |
|
328 | 328 | if ($globalPluginsResource) { |
329 | 329 | foreach ($globalPluginsResource as $resource) { |
330 | 330 | $globalPlugins[] = $resource->getValue(); |