mirror of
				https://github.com/sitelease/sugar-cube-client.git
				synced 2025-10-31 12:02:30 +01:00 
			
		
		
		
	Small updates to Interfaces and abstract classes
+ Removed extra spaces from method definitions
This commit is contained in:
		| @ -99,7 +99,7 @@ abstract class AbstractApiRequester implements ApiRequesterInterface, RequestCha | ||||
|      * @param Client $client | ||||
|      * @param object|null $caller | ||||
|      */ | ||||
|     public function __construct(Client &$client , ?object $caller) | ||||
|     public function __construct(Client &$client, ?object $caller) | ||||
|     { | ||||
|         $this->setClient($client); | ||||
|         $this->setCaller($caller); | ||||
|  | ||||
| @ -15,7 +15,7 @@ interface ApiRequesterInterface | ||||
|      * @param Client $client | ||||
|      * @param object|null $caller | ||||
|      */ | ||||
|     public function __construct(Client &$client , ?object $caller); | ||||
|     public function __construct(Client &$client, ?object $caller); | ||||
|  | ||||
|     /** | ||||
|      * Get the gitea client (by reference) | ||||
|  | ||||
| @ -28,7 +28,7 @@ abstract class AbstractApiModel implements ApiModelInterface, JsonSerializable, | ||||
|      * @param object|null $caller The object that called this method | ||||
|      * @param mixed $args The organization visibility. | ||||
|      */ | ||||
|     public function __construct(Client &$client , ?object $caller, ...$args) { | ||||
|     public function __construct(Client &$client, ?object $caller, ...$args) { | ||||
|         $this->setClient($client); | ||||
|         $this->setCaller($caller); | ||||
|     } | ||||
| @ -59,7 +59,7 @@ abstract class AbstractApiModel implements ApiModelInterface, JsonSerializable, | ||||
|      * @param object|null $caller The object that called this method | ||||
|      * @param object $map A JSON data object | ||||
|      */ | ||||
|     static function fromJson(object &$client , ?object $caller, object $map) { | ||||
|     static function fromJson(object &$client, ?object $caller, object $map) { | ||||
|         trigger_error("The abstract 'fromJson()' method must be overwritten"); | ||||
|         return false; | ||||
|     } | ||||
|  | ||||
| @ -19,7 +19,7 @@ interface ApiModelInterface | ||||
|      * @param object|null $caller The object that called this method | ||||
|      * @param mixed $args The organization visibility. | ||||
|      */ | ||||
|     public function __construct(Client &$client , ?object $caller, ...$args); | ||||
|     public function __construct(Client &$client, ?object $caller, ...$args); | ||||
|  | ||||
|     /** | ||||
|      * Create a new API model object from a JSON map object | ||||
| @ -39,7 +39,7 @@ interface ApiModelInterface | ||||
|      * @param object|null $caller The object that called this method | ||||
|      * @param object $map A JSON data object | ||||
|      */ | ||||
|     static function fromJson(object &$client , ?object $caller, object $map); | ||||
|     static function fromJson(object &$client, ?object $caller, object $map); | ||||
|  | ||||
|     /** | ||||
|      * Convert this Api model object to a JSON map. | ||||
|  | ||||
		Reference in New Issue
	
	Block a user