@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | "skos:related", "skos:historyNote", "skosmos:memberOf", |
31 | 31 | "skosmos:memberOfArray"); |
32 | 32 | |
33 | - public function __construct(Model $model, EasyRdf\Resource $resource, array $globalPlugins=array()) |
|
33 | + public function __construct(Model $model, EasyRdf\Resource $resource, array $globalPlugins = array()) |
|
34 | 34 | { |
35 | 35 | parent::__construct($model, $resource); |
36 | 36 | $this->globalPlugins = $globalPlugins; |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | $paramValue = $paramLiteral->getValue(); |
124 | 124 | $paramLang = $paramLiteral->getLang(); |
125 | 125 | if ($paramLang) { |
126 | - $paramName .= '_' . $paramLang; |
|
126 | + $paramName .= '_'.$paramLang; |
|
127 | 127 | } |
128 | 128 | $this->pluginParameters[$pluginName][$paramName] = $paramValue; |
129 | 129 | } |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | $labelProperty = $override->getResource('skosmos:property'); |
156 | 156 | $labelPropUri = $labelProperty->shorten(); |
157 | 157 | if (empty($this->labelOverrides[$labelPropUri])) { |
158 | - $this->labelOverrides[$labelPropUri] = array(); |
|
158 | + $this->labelOverrides[$labelPropUri] = array(); |
|
159 | 159 | } |
160 | 160 | $newOverrides = array(); |
161 | 161 | |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | $langs = $this->getLanguages(); |
230 | 230 | $deflang = reset($langs); // picking the first one from the list with reset since the keys are not numeric |
231 | 231 | if (sizeof($langs) > 1) { |
232 | - trigger_error("Default language for vocabulary '" . $this->getShortName() . "' unknown, choosing '$deflang'.", E_USER_WARNING); |
|
232 | + trigger_error("Default language for vocabulary '".$this->getShortName()."' unknown, choosing '$deflang'.", E_USER_WARNING); |
|
233 | 233 | } |
234 | 234 | |
235 | 235 | return $deflang; |
@@ -30,10 +30,10 @@ discard block |
||
30 | 30 | */ |
31 | 31 | private $configModifiedTime = null; |
32 | 32 | |
33 | - public function __construct(Model $model, string $config_name='../../config.ttl') |
|
33 | + public function __construct(Model $model, string $config_name = '../../config.ttl') |
|
34 | 34 | { |
35 | 35 | $this->cache = new Cache(); |
36 | - $this->filePath = realpath(dirname(__FILE__) . "/" . $config_name); |
|
36 | + $this->filePath = realpath(dirname(__FILE__)."/".$config_name); |
|
37 | 37 | if (!file_exists($this->filePath)) { |
38 | 38 | throw new Exception('config.ttl file is missing, please provide one.'); |
39 | 39 | } |
@@ -69,8 +69,8 @@ discard block |
||
69 | 69 | // use APC user cache to store parsed config.ttl configuration |
70 | 70 | if ($this->cache->isAvailable() && !is_null($this->configModifiedTime)) { |
71 | 71 | // @codeCoverageIgnoreStart |
72 | - $key = realpath($this->filePath) . ", " . $this->configModifiedTime; |
|
73 | - $nskey = "namespaces of " . $key; |
|
72 | + $key = realpath($this->filePath).", ".$this->configModifiedTime; |
|
73 | + $nskey = "namespaces of ".$key; |
|
74 | 74 | $this->graph = $this->cache->fetch($key); |
75 | 75 | $this->namespaces = $this->cache->fetch($nskey); |
76 | 76 | if ($this->graph === false || $this->namespaces === false) { // was not found in cache |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | public function getGlobalPlugins() |
320 | 320 | { |
321 | 321 | $globalPlugins = array(); |
322 | - $globalPluginsResource = $this->getResource()->getResource("skosmos:globalPlugins"); |
|
322 | + $globalPluginsResource = $this->getResource()->getResource("skosmos:globalPlugins"); |
|
323 | 323 | if ($globalPluginsResource) { |
324 | 324 | foreach ($globalPluginsResource as $resource) { |
325 | 325 | $globalPlugins[] = $resource->getValue(); |