@@ -38,7 +38,7 @@ class ServerConfig
3838 'joomla.version ' => "latest " ,
3939 'memcached.enabled ' => "0 " ,
4040 'memcached.port ' => "11211 " ,
41- 'memcached.version ' => "latest " ,
41+ 'memcached.version ' => "latest " ,
4242 'meta.description ' => "Test installation " ,
4343 'meta.keywords ' => "" ,
4444 'meta.showAuthor ' => "1 " ,
@@ -64,16 +64,18 @@ class ServerConfig
6464 'server.type ' => "nginx " ,
6565 'session.handler ' => "database " ,
6666 'session.lifetime ' => "15 " ,
67- 'network.name ' => "joomla " ,
68- 'selenium.no ' => "1 " ,
69- 'selenium.version ' => "latest " ,
70- 'extension.path ' => "../../../weblinks/ "
67+ 'network.name ' => "joomla " ,
68+ 'selenium.no ' => "1 " ,
69+ 'selenium.version ' => "latest " ,
70+ 'extension.path ' => "../../../weblinks/ "
7171 ];
7272
7373 /**
7474 * ServerConfig constructor.
7575 */
76- public function __construct () {}
76+ public function __construct ()
77+ {
78+ }
7779
7880 /**
7981 * @param $filename string $filename The path to the configuration file.
@@ -110,15 +112,15 @@ public function loadFromConfig($config, $path)
110112 /**
111113 * Read the configuration
112114 *
113- * @param string $filename The path to the configuration file.
115+ * @param string $filename The path to the configuration file.
114116 *
115117 * @return string[]
116118 */
117119 private function read ($ filename )
118120 {
119121 $ config = [];
120122
121- $ xml = simplexml_load_file ( $ filename );
123+ $ xml = simplexml_load_string ( file_get_contents ( $ filename) );
122124
123125 foreach ($ xml ->attributes () as $ key => $ attribute )
124126 {
@@ -159,7 +161,7 @@ public function getDomain()
159161 /**
160162 * Get a configuration value
161163 *
162- * @param string $key The key
164+ * @param string $key The key
163165 *
164166 * @return string The value
165167 */
0 commit comments