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] : '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user