Passed
Pull Request — main (#1866)
by
unknown
03:47
created
src/model/GlobalConfig.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
         if (str_starts_with($path, '/')) {
36 36
             $realpath = realpath($path);
37 37
         } else {
38
-            $realpath = realpath(dirname(__FILE__) . "/" . $path);
38
+            $realpath = realpath(dirname(__FILE__)."/".$path);
39 39
         }
40 40
         if (!$realpath) {
41
-            throw new Exception('Config file ' . $path . ' is missing, please provide one.');
41
+            throw new Exception('Config file '.$path.' is missing, please provide one.');
42 42
         }
43 43
         return $realpath;
44 44
     }
@@ -67,12 +67,12 @@  discard block
 block discarded – undo
67 67
             return GlobalConfig::getCheckedConfigFileRealPath($config_name);
68 68
         }
69 69
         if (!getenv('SKOSMOS_CONFIG_NAME')) {
70
-            return GlobalConfig::getCheckedConfigFileRealPath(dirname(__FILE__) . '/../../config.ttl');
70
+            return GlobalConfig::getCheckedConfigFileRealPath(dirname(__FILE__).'/../../config.ttl');
71 71
         }
72 72
         if (str_starts_with(getenv('SKOSMOS_CONFIG_NAME'), '/')) {
73 73
             return GlobalConfig::getCheckedConfigFileRealPath(getenv('SKOSMOS_CONFIG_NAME'));
74 74
         }
75
-        return GlobalConfig::getCheckedConfigFileRealPath(dirname(__FILE__) . '/../../' . getenv('SKOSMOS_CONFIG_NAME'));
75
+        return GlobalConfig::getCheckedConfigFileRealPath(dirname(__FILE__).'/../../'.getenv('SKOSMOS_CONFIG_NAME'));
76 76
     }
77 77
 
78 78
     public function __construct(Model $model, ?string $config_name = null)
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
         // use APC user cache to store parsed config.ttl configuration
112 112
         if ($this->cache->isAvailable() && !is_null($this->configModifiedTime)) {
113 113
             // @codeCoverageIgnoreStart
114
-            $key = realpath($this->filePath) . ", " . $this->configModifiedTime;
115
-            $nskey = "namespaces of " . $key;
114
+            $key = realpath($this->filePath).", ".$this->configModifiedTime;
115
+            $nskey = "namespaces of ".$key;
116 116
             $this->graph = $this->cache->fetch($key);
117 117
             $this->namespaces = $this->cache->fetch($nskey);
118 118
             if ($this->graph === false || $this->namespaces === false) { // was not found in cache
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
     public function getGlobalPlugins()
418 418
     {
419 419
         $globalPlugins = array();
420
-        $globalPluginsResource =  $this->getResource()->getResource("skosmos:globalPlugins");
420
+        $globalPluginsResource = $this->getResource()->getResource("skosmos:globalPlugins");
421 421
         if ($globalPluginsResource) {
422 422
             foreach ($globalPluginsResource as $resource) {
423 423
                 $globalPlugins[] = $resource->getValue();
Please login to merge, or discard this patch.