You've already forked Php-Template
tests
This commit is contained in:
@@ -22,7 +22,6 @@ use Siteworx\Config\Exception\UnsupportedFormatException;
|
||||
*/
|
||||
class Config extends Facade
|
||||
{
|
||||
|
||||
protected static $cached = false;
|
||||
|
||||
|
||||
@@ -41,7 +40,6 @@ class Config extends Facade
|
||||
}
|
||||
} catch (BindingResolutionException) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return \Siteworx\Config\Config::load(__DIR__ . '/../../config.php');
|
||||
|
||||
@@ -13,11 +13,10 @@ use Nyholm\Psr7\Response;
|
||||
*/
|
||||
class JsonResponseFactory
|
||||
{
|
||||
|
||||
/**
|
||||
* Create a JSON response with the given data and status code.
|
||||
*
|
||||
* @param mixed $data The data to include in the response.
|
||||
* @param array $data The data to include in the response.
|
||||
* @param int $statusCode The HTTP status code for the response.
|
||||
* @return Response The JSON response.
|
||||
* @throws \JsonException
|
||||
@@ -32,4 +31,4 @@ class JsonResponseFactory
|
||||
body: json_encode($data, JSON_THROW_ON_ERROR)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,4 +70,3 @@ class CorsMiddleware implements MiddlewareInterface
|
||||
return $response->withHeader('Access-Control-Max-Age', $maxAge);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user