mirror of
https://github.com/sitelease/sugar-cube-client.git
synced 2025-11-01 12:32:29 +01:00
Corrected namespaces + Chnaged tab size to 4
+ Went through all the Model classes and updated their namespaces to match their parent folder name + Changed tab sizes to 4 spaces instead of 2 (in all php files)
This commit is contained in:
@ -5,7 +5,7 @@ namespace Gitea\Api;
|
|||||||
use GuzzleHttp\Psr7\Response;
|
use GuzzleHttp\Psr7\Response;
|
||||||
|
|
||||||
use Gitea\Client;
|
use Gitea\Client;
|
||||||
use Gitea\Models\Organization;
|
use Gitea\Model\Organization;
|
||||||
|
|
||||||
use Gitea\Api\Abstracts\AbstractApi;
|
use Gitea\Api\Abstracts\AbstractApi;
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ use GuzzleHttp\Exception\ServerException;
|
|||||||
|
|
||||||
use Gitea\Client;
|
use Gitea\Client;
|
||||||
use Gitea\Collections\ApiItemCollection;
|
use Gitea\Collections\ApiItemCollection;
|
||||||
use Gitea\Models\Repository;
|
use Gitea\Model\Repository;
|
||||||
|
|
||||||
use Gitea\Api\Abstracts\AbstractAllApi;
|
use Gitea\Api\Abstracts\AbstractAllApi;
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Gitea\Models;
|
namespace Gitea\Model;
|
||||||
|
|
||||||
use GuzzleHttp\Psr7\Uri;
|
use GuzzleHttp\Psr7\Uri;
|
||||||
use Psr\Http\Message\UriInterface;
|
use Psr\Http\Message\UriInterface;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
namespace Gitea\Models;
|
namespace Gitea\Model;
|
||||||
|
|
||||||
use GuzzleHttp\Psr7\{Uri};
|
use GuzzleHttp\Psr7\{Uri};
|
||||||
use Psr\Http\Message\{UriInterface};
|
use Psr\Http\Message\{UriInterface};
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
namespace Gitea\Models;
|
namespace Gitea\Model;
|
||||||
|
|
||||||
/** Represents the GPG verification of a commit. */
|
/** Represents the GPG verification of a commit. */
|
||||||
class PayloadCommitVerification implements \JsonSerializable {
|
class PayloadCommitVerification implements \JsonSerializable {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
namespace Gitea\Models;
|
namespace Gitea\Model;
|
||||||
|
|
||||||
/** Represents the author or committer of a commit. */
|
/** Represents the author or committer of a commit. */
|
||||||
class PayloadUser implements \JsonSerializable {
|
class PayloadUser implements \JsonSerializable {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
namespace Gitea\Models;
|
namespace Gitea\Model;
|
||||||
|
|
||||||
/** Represents a set of permissions. */
|
/** Represents a set of permissions. */
|
||||||
class Permission implements \JsonSerializable {
|
class Permission implements \JsonSerializable {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
namespace Gitea\Models;
|
namespace Gitea\Model;
|
||||||
|
|
||||||
use GuzzleHttp\Psr7\{Uri};
|
use GuzzleHttp\Psr7\{Uri};
|
||||||
use Psr\Http\Message\{UriInterface};
|
use Psr\Http\Message\{UriInterface};
|
||||||
@ -553,37 +553,4 @@ class Repository implements \JsonSerializable {
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Undocumented function
|
|
||||||
*
|
|
||||||
* Call:
|
|
||||||
* $giteaClient->projects->fetchall
|
|
||||||
*
|
|
||||||
* @author Benjamin Blake (sitelease.ca)
|
|
||||||
*
|
|
||||||
* @param Type $var
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public static function getAll(Type $var = null)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Undocumented function
|
|
||||||
*
|
|
||||||
* Example:
|
|
||||||
* ```
|
|
||||||
* $giteaClient->repositories->fetchall();
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* @author Benjamin Blake (sitelease.ca)
|
|
||||||
*
|
|
||||||
* @param Type $var
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function get(Type $var = null)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
namespace Gitea\Models;
|
namespace Gitea\Model;
|
||||||
|
|
||||||
/** Wraps the version of the Gitea server. */
|
/** Wraps the version of the Gitea server. */
|
||||||
class ServerVersion implements \JsonSerializable {
|
class ServerVersion implements \JsonSerializable {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
namespace Gitea\Models;
|
namespace Gitea\Model;
|
||||||
|
|
||||||
use Enum\{EnumTrait};
|
use Enum\{EnumTrait};
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
namespace Gitea\Models;
|
namespace Gitea\Model;
|
||||||
|
|
||||||
/** Represents a team in an organization. */
|
/** Represents a team in an organization. */
|
||||||
class Team implements \JsonSerializable {
|
class Team implements \JsonSerializable {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
namespace Gitea\Models;
|
namespace Gitea\Model;
|
||||||
|
|
||||||
use Enum\{EnumTrait};
|
use Enum\{EnumTrait};
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
namespace Gitea\Models;
|
namespace Gitea\Model;
|
||||||
|
|
||||||
/** Represents the worked time for an issue or pull request. */
|
/** Represents the worked time for an issue or pull request. */
|
||||||
class TrackedTime implements \JsonSerializable {
|
class TrackedTime implements \JsonSerializable {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
namespace Gitea\Models;
|
namespace Gitea\Model;
|
||||||
|
|
||||||
use GuzzleHttp\Psr7\{Uri};
|
use GuzzleHttp\Psr7\{Uri};
|
||||||
use Psr\Http\Message\{UriInterface};
|
use Psr\Http\Message\{UriInterface};
|
||||||
|
|||||||
Reference in New Issue
Block a user