mirror of
https://github.com/sitelease/sugar-cube-client.git
synced 2025-10-31 20:12:29 +01:00
Added a user guide based on MkDocs
This commit is contained in:
@ -244,7 +244,7 @@ class Repository implements \JsonSerializable {
|
||||
*/
|
||||
function getName(): string {
|
||||
if (mb_strlen($this->name)) return $this->name;
|
||||
return mb_strlen($fullName = $this->getFullName()) ? explode('/', $fullName, 2)[0] : '';
|
||||
return mb_strlen($fullName = $this->getFullName()) ? explode('/', $fullName)[1] : '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -3,7 +3,7 @@ declare(strict_types=1);
|
||||
namespace Gitea\Models;
|
||||
|
||||
/**
|
||||
* Warps the version of the Gitea server.
|
||||
* Wraps the version of the Gitea server.
|
||||
*/
|
||||
class ServerVersion implements \JsonSerializable {
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ final class StatusState {
|
||||
const FAILURE = 'failure';
|
||||
|
||||
/**
|
||||
* @var string The status is a pending.
|
||||
* @var string The status is pending.
|
||||
*/
|
||||
const PENDING = 'pending';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user