@@ -171,7 +171,7 @@ |
||
| 171 | 171 | // convert to vocids array to support multi-vocabulary search |
| 172 | 172 | $vocids = ($vocabs !== null && $vocabs !== '') ? explode(' ', $vocabs) : array(); |
| 173 | 173 | $vocabObjects = array(); |
| 174 | - foreach($vocids as $vocid) { |
|
| 174 | + foreach ($vocids as $vocid) { |
|
| 175 | 175 | $vocabObjects[] = $this->model->getVocabulary($vocid); |
| 176 | 176 | } |
| 177 | 177 | $parameters->setVocabularies($vocabObjects); |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | // register a Twig filter for generating URLs for vocabulary resources (concepts and groups) |
| 75 | 75 | $controller = $this; // for use by anonymous function below |
| 76 | - $urlFilter = new Twig_SimpleFilter('link_url', function ($uri, $vocab, $lang, $type = 'page', $clang = null, $term = null) use ($controller) { |
|
| 76 | + $urlFilter = new Twig_SimpleFilter('link_url', function($uri, $vocab, $lang, $type = 'page', $clang = null, $term = null) use ($controller) { |
|
| 77 | 77 | // $vocab can either be null, a vocabulary id (string) or a Vocabulary object |
| 78 | 78 | if ($vocab === null) { |
| 79 | 79 | // target vocabulary is unknown, best bet is to link to the plain URI |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | $this->twig->addFilter($urlFilter); |
| 115 | 115 | |
| 116 | 116 | // register a Twig filter for generating strings from language codes with CLDR |
| 117 | - $langFilter = new Twig_SimpleFilter('lang_name', function ($langcode, $lang) { |
|
| 117 | + $langFilter = new Twig_SimpleFilter('lang_name', function($langcode, $lang) { |
|
| 118 | 118 | return Language::getName($langcode, $lang); |
| 119 | 119 | }); |
| 120 | 120 | $this->twig->addFilter($langFilter); |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | // convert to vocids array to support multi-vocabulary search |
| 358 | 358 | $vocids = ($vocabs !== null && $vocabs !== '') ? explode(' ', $vocabs) : null; |
| 359 | 359 | $vocabObjects = array(); |
| 360 | - foreach($vocids as $vocid) { |
|
| 360 | + foreach ($vocids as $vocid) { |
|
| 361 | 361 | $vocabObjects[] = $this->model->getVocabulary($vocid); |
| 362 | 362 | } |
| 363 | 363 | $parameters->setVocabularies($vocabObjects); |
@@ -383,7 +383,7 @@ discard block |
||
| 383 | 383 | 'search_count' => $counts, |
| 384 | 384 | 'languages' => $this->languages, |
| 385 | 385 | 'search_results' => $search_results, |
| 386 | - 'rest' => $parameters->getOffset()>0, |
|
| 386 | + 'rest' => $parameters->getOffset() > 0, |
|
| 387 | 387 | 'global_search' => true, |
| 388 | 388 | 'term' => $request->getQueryParam('q'), |
| 389 | 389 | 'lang_list' => $langList, |
@@ -446,7 +446,7 @@ discard block |
||
| 446 | 446 | 'vocab' => $vocab, |
| 447 | 447 | 'search_results' => $search_results, |
| 448 | 448 | 'search_count' => $counts, |
| 449 | - 'rest' => $parameters->getOffset()>0, |
|
| 449 | + 'rest' => $parameters->getOffset() > 0, |
|
| 450 | 450 | 'limit_parent' => $parameters->getParentLimit(), |
| 451 | 451 | 'limit_type' => $request->getQueryParam('type'), |
| 452 | 452 | 'limit_group' => $parameters->getGroupLimit(), |
@@ -592,7 +592,7 @@ discard block |
||
| 592 | 592 | * Loads and renders the view containing a list of recent changes in the vocabulary. |
| 593 | 593 | * @param Request $request |
| 594 | 594 | */ |
| 595 | - public function invokeChangeList($request, $prop='dc:created') |
|
| 595 | + public function invokeChangeList($request, $prop = 'dc:created') |
|
| 596 | 596 | { |
| 597 | 597 | // set language parameters for gettext |
| 598 | 598 | $this->setLanguageProperties($request->getLang()); |