Added a user guide based on MkDocs

This commit is contained in:
Cédric Belin
2018-11-21 17:53:26 +01:00
parent 21d1131813
commit 4e9e67a695
11 changed files with 211 additions and 9 deletions

View File

@ -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] : '';
}
/**

View File

@ -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 {

View File

@ -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';