mirror of
https://codeberg.org/vlw/scaffold.git
synced 2026-01-11 22:16:00 +01:00
fix(style): trim trailing whitespaces
This commit is contained in:
parent
4fa45083d0
commit
7f381633d6
5 changed files with 17 additions and 17 deletions
|
|
@ -10,7 +10,7 @@
|
|||
class API {
|
||||
/**
|
||||
* Create a new API request with automatic request validation
|
||||
*
|
||||
*
|
||||
* @param ?Ruleset $ruleset An optional Reflect\Rules\Ruleset to eval
|
||||
*/
|
||||
public function __construct(?Ruleset $ruleset = null) {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
/**
|
||||
* Paginate request by chaining this after vlw/MySQL->from() and before vlw/MySQL->select()
|
||||
*
|
||||
*
|
||||
* @param ?Paginate $paginate a vlw\Scaffold\Helper\Paginate instance
|
||||
* @return self Instance chainable with vlw\MySQL
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
/**
|
||||
* Start a new Paginate instance
|
||||
*
|
||||
*
|
||||
* @param int $total Total amount of items to paginate
|
||||
* @param ?int $size Amount of items to display on each page
|
||||
* @param ?int $current Index of current page
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
/**
|
||||
* Get current database offset
|
||||
*
|
||||
*
|
||||
* @return int Database offset of first item on current page
|
||||
*/
|
||||
public int $offset {
|
||||
|
|
@ -49,7 +49,7 @@
|
|||
|
||||
/**
|
||||
* Get total amount of pages
|
||||
*
|
||||
*
|
||||
* @return int Total number of pages
|
||||
*/
|
||||
public int $pages {
|
||||
|
|
@ -58,7 +58,7 @@
|
|||
|
||||
/**
|
||||
* Returns true if a previous page exists
|
||||
*
|
||||
*
|
||||
* @return bool Previous page exists
|
||||
*/
|
||||
public bool $previous {
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
|
||||
/**
|
||||
* True if a next page exists
|
||||
*
|
||||
*
|
||||
* @return bool Next page exists
|
||||
*/
|
||||
public bool $next {
|
||||
|
|
@ -76,7 +76,7 @@
|
|||
|
||||
/**
|
||||
* Get pages witin ±range from current page
|
||||
*
|
||||
*
|
||||
* @param ?int $range Desired range from current page to return
|
||||
* @return array<int> Indecies of pages within the desired range
|
||||
*/
|
||||
|
|
@ -95,7 +95,7 @@
|
|||
|
||||
/**
|
||||
* Returns a url to a page by index
|
||||
*
|
||||
*
|
||||
* @param int $page Page index
|
||||
* @return string Search parameters to the target page
|
||||
*/
|
||||
|
|
@ -105,7 +105,7 @@
|
|||
|
||||
/**
|
||||
* Returns a url to the previous page
|
||||
*
|
||||
*
|
||||
* @return string Search parameters to the previous page
|
||||
*/
|
||||
public function previous(): string {
|
||||
|
|
@ -114,7 +114,7 @@
|
|||
|
||||
/**
|
||||
* Returns a url to the next page
|
||||
*
|
||||
*
|
||||
* @return string Search parameters to the next page
|
||||
*/
|
||||
public function next(): string {
|
||||
|
|
@ -123,7 +123,7 @@
|
|||
|
||||
/**
|
||||
* Clamp page within range of all pages
|
||||
*
|
||||
*
|
||||
* @param int $page Page index
|
||||
* @return int Clamped page index
|
||||
*/
|
||||
|
|
@ -133,7 +133,7 @@
|
|||
|
||||
/**
|
||||
* Construct search parameters for a page while preserving existing search parameters
|
||||
*
|
||||
*
|
||||
* @param int $page Page index
|
||||
* @return string A search parameter to the target page
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
/**
|
||||
* Generate an all binary 0:s UUID
|
||||
*
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function nil(): string {
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
/**
|
||||
* Generate an all binary 1:s UUID
|
||||
*
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function max(): string {
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
/**
|
||||
* Generate a version 4 UUID
|
||||
*
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function v4(): string {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
class Scaffold {
|
||||
/**
|
||||
* Include a source file
|
||||
*
|
||||
*
|
||||
* @param string $pathname Relative path from project root to a source file
|
||||
*/
|
||||
public static function load(string $pathname): void {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue