Skip to content

Commit dec76cc

Browse files
committed
Change code in SolidStorageProvider route to be cleaner
- Fix dynamic call to static method - Use statements (sort alphabetically)
1 parent 0edad57 commit dec76cc

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/Routes/SolidStorageProvider.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22
namespace Pdsinterop\PhpSolid\Routes;
33

4-
use Pdsinterop\PhpSolid\StorageServer;
54
use Laminas\Diactoros\ServerRequestFactory;
5+
use Pdsinterop\PhpSolid\StorageServer;
66

77
class SolidStorageProvider {
88
public static function respondToStorageNew() {
99
$requestFactory = new ServerRequestFactory();
10-
$rawRequest = $requestFactory->fromGlobals($_SERVER, $_GET, $_POST, $_COOKIE, $_FILES);
10+
$rawRequest = $requestFactory::fromGlobals($_SERVER, $_GET, $_POST, $_COOKIE, $_FILES);
1111
$webId = StorageServer::getWebId($rawRequest);
1212

1313
if (!isset($webId) || $webId === "public") {
@@ -32,4 +32,3 @@ public static function respondToStorageNew() {
3232
echo json_encode($responseData, JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR);
3333
}
3434
}
35-

0 commit comments

Comments
 (0)