Completed
Pull Request — master (#982)
by
unknown
01:45
created
controller/WebController.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -593,14 +593,14 @@
 block discarded – undo
593 593
     }
594 594
 
595 595
     /**
596
-    * Formats the list of concepts as labels arranged by modification month
597
-    * @param Request $request
598
-    * @param string $prop the name of the property for a time stamp
599
-    * @return Array list of concept labels
600
-    */
596
+     * Formats the list of concepts as labels arranged by modification month
597
+     * @param Request $request
598
+     * @param string $prop the name of the property for a time stamp
599
+     * @return Array list of concept labels
600
+     */
601 601
     public function formatChangeList($request, $prop)
602 602
     {
603
-       $changeList = $this->getChangeList($request, $prop);
603
+        $changeList = $this->getChangeList($request, $prop);
604 604
         $formatByDate = array();
605 605
         foreach($changeList as $concept) {
606 606
             $concept['datestring'] = Punic\Calendar::formatDate($concept['date'], 'medium', $request->getLang());
Please login to merge, or discard this patch.
controller/RestController.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -575,9 +575,9 @@  discard block
 block discarded – undo
575 575
                 $vocid = $request->getVocab()->getId();
576 576
                 return $this->returnError('404', 'Not Found', "No download source URL known for vocabulary $vocid in language $dataLang");
577 577
             }
578
-		} else {
578
+    } else {
579 579
             header("Location: " . $urls[$format]);
580
-		}
580
+    }
581 581
     }
582 582
 
583 583
     private function returnDataResults($results, $format) {
@@ -1100,15 +1100,15 @@  discard block
 block discarded – undo
1100 1100
         foreach($changeList as $conceptInfo) {
1101 1101
             if (array_key_exists('date', $conceptInfo)) {
1102 1102
                 $simpleChangeList[] =  array( 'uri' => $conceptInfo['uri'],
1103
-                                               'prefLabel' => $conceptInfo['prefLabel'],
1104
-                                               'date' => $conceptInfo['date']->format("Y-m-d\TH:i:sO") );
1103
+                                                'prefLabel' => $conceptInfo['prefLabel'],
1104
+                                                'date' => $conceptInfo['date']->format("Y-m-d\TH:i:sO") );
1105 1105
             }
1106 1106
         }
1107 1107
         return $this->returnJson(array_merge_recursive($this->context,
1108 1108
                                                         array('@context' => array( '@language' => $request->getLang(),
1109
-                                                                                     'prefLabel' => 'skos:prefLabel',
1110
-                                                                                     'xsd' => 'http://www.w3.org/2001/XMLSchema#',
1111
-                                                                                     'date' => array( '@id' => 'http://purl.org/dc/terms/date', '@type' => 'http://www.w3.org/2001/XMLSchema#dateTime') )
1109
+                                                                                      'prefLabel' => 'skos:prefLabel',
1110
+                                                                                      'xsd' => 'http://www.w3.org/2001/XMLSchema#',
1111
+                                                                                      'date' => array( '@id' => 'http://purl.org/dc/terms/date', '@type' => 'http://www.w3.org/2001/XMLSchema#dateTime') )
1112 1112
                                                         ),
1113 1113
                                                         array('changeList' => $simpleChangeList)));
1114 1114
 
Please login to merge, or discard this patch.