Completed
Pull Request — master (#1033)
by
unknown
01:46
created
controller/WebController.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -235,6 +235,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
@@ -569,6 +575,7 @@  discard block
 block discarded – undo
569 575
 
570 576
     /**
571 577
      * Invokes a very generic errorpage.
578
+     * @param Request $request
572 579
      */
573 580
     public function invokeGenericErrorPage($request, $message = null)
574 581
     {
Please login to merge, or discard this patch.
model/Model.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
     /**
65 65
      * Return the logging facility
66
-     * @return object logger
66
+     * @return Monolog\Logger logger
67 67
      */
68 68
     public function getLogger() {
69 69
         return $this->logger;
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
      * Get the label for a resource, preferring 1. the given language 2. configured languages 3. any language.
547 547
      * @param EasyRdf\Resource $res resource whose label to return
548 548
      * @param string $lang preferred language
549
-     * @return EasyRdf\Literal label as an EasyRdf\Literal object, or null if not found
549
+     * @return string label as an EasyRdf\Literal object, or null if not found
550 550
      */
551 551
     public function getResourceLabel($res, $lang)
552 552
     {
Please login to merge, or discard this patch.
model/Vocabulary.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -165,10 +165,10 @@  discard block
 block discarded – undo
165 165
             $sparql = $this->getSparql();
166 166
             $result = $sparql->queryConceptScheme($defaultcs);
167 167
         } catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) {
168
-             if ($this->model->getConfig()->getLogCaughtExceptions()) {
169
-                 error_log('Caught exception: ' . $e->getMessage());
170
-             }
171
-             return null;
168
+              if ($this->model->getConfig()->getLogCaughtExceptions()) {
169
+                  error_log('Caught exception: ' . $e->getMessage());
170
+              }
171
+              return null;
172 172
         }
173 173
         $conceptscheme = $result->resource($defaultcs);
174 174
         $this->order = array("dc:title", "dc11:title", "skos:prefLabel", "rdfs:label", "dc:subject", "dc11:subject", "dc:description", "dc11:description", "dc:publisher", "dc11:publisher", "dc:creator", "dc11:creator", "dc:contributor", "dc:language", "dc11:language", "owl:versionInfo", "dc:source", "dc11:source");
@@ -238,9 +238,9 @@  discard block
 block discarded – undo
238 238
         try {
239 239
             $conceptSchemes = $this->getSparql()->queryConceptSchemes($lang);
240 240
         } catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) {
241
-             if ($this->model->getConfig()->getLogCaughtExceptions()) {
242
-                 error_log('Caught exception: ' . $e->getMessage());
243
-             }
241
+              if ($this->model->getConfig()->getLogCaughtExceptions()) {
242
+                  error_log('Caught exception: ' . $e->getMessage());
243
+              }
244 244
         }
245 245
         return $conceptSchemes;
246 246
     }
@@ -436,9 +436,9 @@  discard block
 block discarded – undo
436 436
         try {
437 437
             $conceptInfo = $sparql->queryConceptInfo($uri, $this->config->getArrayClassURI(), array($this), $clang);
438 438
         } catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) {
439
-             if ($this->model->getConfig()->getLogCaughtExceptions()) {
440
-                 error_log('Caught exception: ' . $e->getMessage());
441
-             }
439
+              if ($this->model->getConfig()->getLogCaughtExceptions()) {
440
+                  error_log('Caught exception: ' . $e->getMessage());
441
+              }
442 442
         }
443 443
         return $conceptInfo;
444 444
     }
Please login to merge, or discard this patch.