🐞 fix: phpcs issue cleanup
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* Project runtime configuration values.
|
||||
* Spacetraders API Client Library - Project configuration
|
||||
*
|
||||
* @package Spacetraders
|
||||
* Runtime configuration values.
|
||||
*
|
||||
* @category Configuration
|
||||
* @package SpacetradersAPI
|
||||
* @author Keith Solomon <keith@keithsolomon.net>
|
||||
* @license MIT License
|
||||
* @version GIT: <git_id>
|
||||
* @link https://git.keithsolomon.net/keith/Spacetraders
|
||||
*/
|
||||
|
||||
return array(
|
||||
|
||||
@@ -1,24 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Spacetraders API Exception Class
|
||||
*
|
||||
* PHP version 7.4
|
||||
*
|
||||
* @category Exception
|
||||
* @package Spacetraders
|
||||
* @author Keith Solomon <keith@keithsolomon.net>
|
||||
* @license MIT License
|
||||
* @link https://github.com/your-repo/spacetraders
|
||||
*/
|
||||
|
||||
/**
|
||||
* Custom exception class for Spacetraders API related errors.
|
||||
* Spacetraders API Client Library - Exception class
|
||||
*
|
||||
* This exception is thrown when API calls to the Spacetraders service
|
||||
* encounter errors such as network issues, invalid responses, authentication
|
||||
* failures, or other API-specific problems.
|
||||
*
|
||||
* @category Exception
|
||||
* @package SpacetradersAPI
|
||||
* @author Keith Solomon <keith@keithsolomon.net>
|
||||
* @license MIT License
|
||||
* @version GIT: <git_id>
|
||||
* @link https://git.keithsolomon.net/keith/Spacetraders
|
||||
*/
|
||||
|
||||
/**
|
||||
* Custom exception class for Spacetraders API related errors.
|
||||
*
|
||||
* @extends RuntimeException
|
||||
*/
|
||||
class SpacetradersApiException extends RuntimeException {
|
||||
|
||||
@@ -7,11 +7,12 @@
|
||||
* It includes methods for authentication, making API requests, and handling responses,
|
||||
* making it easier to integrate Spacetraders into your applications or scripts.
|
||||
*
|
||||
* @package SpacetradersAPI
|
||||
* @author Keith Solomon <keith@keithsolomon.net>
|
||||
* @license MIT License
|
||||
* @version GIT: <git_id>
|
||||
* @link https://spacetraders.io
|
||||
* @category API
|
||||
* @package SpacetradersAPI
|
||||
* @author Keith Solomon <keith@keithsolomon.net>
|
||||
* @license MIT License
|
||||
* @version GIT: <git_id>
|
||||
* @link https://git.keithsolomon.net/keith/Spacetraders
|
||||
*/
|
||||
|
||||
require_once __DIR__ . '/spacetraders-api-exception.php';
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* Spacetraders SQLite storage for configuration and API cache.
|
||||
* Spacetraders API Client Library - Storage
|
||||
*
|
||||
* @category Storage
|
||||
* @package SpacetradersAPI
|
||||
* @author Keith Solomon <keith@keithsolomon.net>
|
||||
* @license MIT License
|
||||
* @link https://git.keithsolomon.net/keith/Spacetraders
|
||||
* SQLite storage for configuration and API cache.
|
||||
*
|
||||
* @category Storage
|
||||
* @package SpacetradersAPI
|
||||
* @author Keith Solomon <keith@keithsolomon.net>
|
||||
* @license MIT License
|
||||
* @version GIT: <git_id>
|
||||
* @link https://git.keithsolomon.net/keith/Spacetraders
|
||||
*/
|
||||
|
||||
/**
|
||||
* Spacetraders SQLite storage for configuration and API cache.
|
||||
*
|
||||
* @package SpacetradersAPI
|
||||
* Storage for configuration and API cache.
|
||||
*/
|
||||
class SpacetradersStorage {
|
||||
/**
|
||||
@@ -45,7 +46,7 @@ class SpacetradersStorage {
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private function _initializeSchema(): void {
|
||||
private function _initializeSchema(): void { // phpcs:ignore
|
||||
$this->db->exec(
|
||||
'CREATE TABLE IF NOT EXISTS settings (
|
||||
setting_key TEXT PRIMARY KEY,
|
||||
|
||||
Reference in New Issue
Block a user