Passed
Pull Request — main (#1866)
by
unknown
04:06
created
src/model/GlobalConfig.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         if (str_starts_with($path, '/')) {
45 45
             $realpath = realpath($path);
46 46
         } else {
47
-            $realpath = realpath(dirname(__FILE__) . "/" . $path);
47
+            $realpath = realpath(dirname(__FILE__)."/".$path);
48 48
         }
49 49
         if (!$realpath) {
50 50
             throw new ConfigFileNotFoundException($path);
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             if (str_starts_with(getenv('SKOSMOS_CONFIG_NAME'), '/')) {
79 79
                 $path = getenv('SKOSMOS_CONFIG_NAME');
80 80
             } else {
81
-                $path = dirname(__FILE__) . '/../../' . getenv('SKOSMOS_CONFIG_NAME');
81
+                $path = dirname(__FILE__).'/../../'.getenv('SKOSMOS_CONFIG_NAME');
82 82
             }
83 83
         }
84 84
         return GlobalConfig::getCheckedConfigFileRealPath($path);
@@ -120,8 +120,8 @@  discard block
 block discarded – undo
120 120
         // use APC user cache to store parsed config.ttl configuration
121 121
         if ($this->cache->isAvailable() && !is_null($this->configModifiedTime)) {
122 122
             // @codeCoverageIgnoreStart
123
-            $key = realpath($this->filePath) . ", " . $this->configModifiedTime;
124
-            $nskey = "namespaces of " . $key;
123
+            $key = realpath($this->filePath).", ".$this->configModifiedTime;
124
+            $nskey = "namespaces of ".$key;
125 125
             $this->graph = $this->cache->fetch($key);
126 126
             $this->namespaces = $this->cache->fetch($nskey);
127 127
             if ($this->graph === false || $this->namespaces === false) { // was not found in cache
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
     public function getGlobalPlugins()
427 427
     {
428 428
         $globalPlugins = array();
429
-        $globalPluginsResource =  $this->getResource()->getResource("skosmos:globalPlugins");
429
+        $globalPluginsResource = $this->getResource()->getResource("skosmos:globalPlugins");
430 430
         if ($globalPluginsResource) {
431 431
             foreach ($globalPluginsResource as $resource) {
432 432
                 $globalPlugins[] = $resource->getValue();
Please login to merge, or discard this patch.