Passed
Push — master ( 63f184...1f6a82 )
by Petr
07:23 queued 05:15
created
php-tests/BasicTests/ConfigTest.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -20,19 +20,19 @@  discard block
 block discarded – undo
20 20
         Config::init(new XLoader());
21 21
         Config::load('baz');
22 22
 
23
-        $this->assertEquals('pqr', Config::get('baz','def'));
24
-        $this->assertEquals('lkj', Config::get('baz','ewq', 'lkj'));
25
-        $this->assertEquals('vwx%s', Config::get('baz','jkl', '123'));
26
-        $this->assertEquals('123', Config::get('baz','asdf%s', '123'));
23
+        $this->assertEquals('pqr', Config::get('baz', 'def'));
24
+        $this->assertEquals('lkj', Config::get('baz', 'ewq', 'lkj'));
25
+        $this->assertEquals('vwx%s', Config::get('baz', 'jkl', '123'));
26
+        $this->assertEquals('123', Config::get('baz', 'asdf%s', '123'));
27 27
 
28 28
         $this->assertInstanceOf('\kalanis\kw_confs\Interfaces\ILoader', Config::getLoader());
29 29
 
30
-        $this->assertEquals(null, Config::get('wtf','non'));
31
-        $this->assertEquals(null, Config::get('baz','uup'));
30
+        $this->assertEquals(null, Config::get('wtf', 'non'));
31
+        $this->assertEquals(null, Config::get('baz', 'uup'));
32 32
         Config::set('wtf', 'non', '351');
33 33
         Config::set('baz', 'uup', '684');
34
-        $this->assertEquals(null, Config::get('wtf','non'));
35
-        $this->assertEquals('684', Config::get('baz','uup'));
34
+        $this->assertEquals(null, Config::get('wtf', 'non'));
35
+        $this->assertEquals('684', Config::get('baz', 'uup'));
36 36
     }
37 37
 
38 38
     public function testClass(): void
@@ -40,10 +40,10 @@  discard block
 block discarded – undo
40 40
         Config::init(new XLoader());
41 41
         Config::loadClass(new XConf());
42 42
 
43
-        $this->assertEquals('76pqr', Config::get('testing','def23'));
44
-        $this->assertEquals('lkj', Config::get('testing','ewq', 'lkj'));
45
-        $this->assertEquals('32vwx%s', Config::get('testing','jkl67', '123'));
46
-        $this->assertEquals('123', Config::get('testing','asdf%s', '123'));
43
+        $this->assertEquals('76pqr', Config::get('testing', 'def23'));
44
+        $this->assertEquals('lkj', Config::get('testing', 'ewq', 'lkj'));
45
+        $this->assertEquals('32vwx%s', Config::get('testing', 'jkl67', '123'));
46
+        $this->assertEquals('123', Config::get('testing', 'asdf%s', '123'));
47 47
     }
48 48
 }
49 49
 
Please login to merge, or discard this patch.
php-src/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
      */
76 76
     public static function set(string $module, string $key, $defaultValue = null): void
77 77
     {
78
-        isset(static::$configs[$module]) ? static::$configs[$module][$key] = $defaultValue : null ;
78
+        isset(static::$configs[$module]) ? static::$configs[$module][$key] = $defaultValue : null;
79 79
     }
80 80
 
81 81
     public static function getLoader(): ?ILoader
Please login to merge, or discard this patch.
php-src/Loaders/PhpLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     {
55 55
         $basicLookupDir = $this->pathLib->getDocumentRoot() . $this->pathLib->getPathToSystemRoot();
56 56
         foreach ($this->pathMasks as $pathMask) {
57
-            $unmasked = sprintf( $pathMask,
57
+            $unmasked = sprintf($pathMask,
58 58
                 DIRECTORY_SEPARATOR, $basicLookupDir,
59 59
                 IPaths::DIR_USER, $this->routedLib->getUser(),
60 60
                 IPaths::DIR_MODULE, $module,
Please login to merge, or discard this patch.