Passed
Push — master ( c227df...528f97 )
by Petr
07:58
created
php-src/Sources/Input.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 {
19 19
     public function __construct(IFiltered $inputs, ?string $virtualDir = null)
20 20
     {
21
-        $requestUri = $inputs->getInArray('REQUEST_URI', [IEntry::SOURCE_SERVER, ] );
21
+        $requestUri = $inputs->getInArray('REQUEST_URI', [IEntry::SOURCE_SERVER, ]);
22 22
         $entry = reset($requestUri);
23 23
         parent::__construct(
24 24
             $entry ? strval($entry) : '',
Please login to merge, or discard this patch.
php-tests/BasicTests/SourcesTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
11 11
 {
12 12
     public function testBasic(): void
13 13
     {
14
-        $params = new Sources\Arrays(['abc'=>'def','ghi'=>'jkl','mno'=>'pqr',]);
15
-        $this->assertEquals(['abc'=>'def','ghi'=>'jkl','mno'=>'pqr',], $params->getData());
14
+        $params = new Sources\Arrays(['abc'=>'def', 'ghi'=>'jkl', 'mno'=>'pqr', ]);
15
+        $this->assertEquals(['abc'=>'def', 'ghi'=>'jkl', 'mno'=>'pqr', ], $params->getData());
16 16
     }
17 17
 
18 18
     public function testArrayAccess1(): void
Please login to merge, or discard this patch.
php-src/RoutedPath.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,13 +51,13 @@
 block discarded – undo
51 51
     public function __construct(Sources\ASource $source)
52 52
     {
53 53
         $params = $source->getData();
54
-        $this->user = strval($params['user'] ?? $this->user );
55
-        $this->lang = strval($params['lang'] ?? $this->lang );
54
+        $this->user = strval($params['user'] ?? $this->user);
55
+        $this->lang = strval($params['lang'] ?? $this->lang);
56 56
         $this->path = array_filter(isset($params['path']) ? Stuff::linkToArray(strval($params['path'])) : $this->path);
57 57
         $this->module = array_filter(isset($params['module']) ? Support::moduleNameFromRequest(strval($params['module'])) : $this->module);
58 58
         $this->isSingle = isset($params['single']);
59
-        $this->staticPath = strval($params['staticPath'] ?? $this->staticPath );
60
-        $this->virtualPrefix = strval($params['virtualPrefix'] ?? $this->virtualPrefix );
59
+        $this->staticPath = strval($params['staticPath'] ?? $this->staticPath);
60
+        $this->virtualPrefix = strval($params['virtualPrefix'] ?? $this->virtualPrefix);
61 61
     }
62 62
 
63 63
     public function getStaticPath(): string
Please login to merge, or discard this patch.
php-tests/BasicTests/ThereAndBackTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         return [
58 58
             [[], [], false, ''],
59 59
             [['FooBar', 'Baz'], [], false, ''],
60
-            [[], ['FooBar', 'Baz'], false, '',],
60
+            [[], ['FooBar', 'Baz'], false, '', ],
61 61
             [[], [], false, 'anyone'],
62 62
             [['FooBar', 'Baz'], ['FooBar', 'Baz'], false, 'anyone'],
63 63
             [['FooBar', 'Baz'], ['FooBar', 'Baz'], true, 'anyone'],
Please login to merge, or discard this patch.
php-tests/BasicTests/PathTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function testBasic1(): void
18 18
     {
19
-        $path = new RoutedPath(new Arrays(['user' => 'def', 'module' => 'jkl', 'mno' => 'pqr',]));
19
+        $path = new RoutedPath(new Arrays(['user' => 'def', 'module' => 'jkl', 'mno' => 'pqr', ]));
20 20
         $this->assertEmpty($path->getStaticPath());
21 21
         $this->assertEmpty($path->getVirtualPrefix());
22 22
         $this->assertEquals('def', $path->getUser());
Please login to merge, or discard this patch.