Browse Source

Code formatting

main
Cédric Belin 1 month ago
parent
commit
3890412e21
15 changed files with 25 additions and 25 deletions
  1. +3
    -3
      example/main.php
  2. +3
    -3
      src/PushEvent.php
  3. +3
    -3
      src/models/PayloadCommit.php
  4. +1
    -1
      src/models/PayloadCommitVerification.php
  5. +1
    -1
      src/models/PayloadUser.php
  6. +1
    -1
      src/models/Permission.php
  7. +3
    -3
      src/models/Repository.php
  8. +1
    -1
      src/models/ServerVersion.php
  9. +1
    -1
      src/models/StatusState.php
  10. +1
    -1
      src/models/Team.php
  11. +1
    -1
      src/models/TeamPermission.php
  12. +1
    -1
      src/models/TrackedTime.php
  13. +3
    -3
      src/models/User.php
  14. +1
    -1
      src/models/UserHeatmapData.php
  15. +1
    -1
      test/index.php

+ 3
- 3
example/main.php View File

@@ -1,8 +1,8 @@
<?php declare(strict_types=1);

use yii\gitea\{PushEvent};
use yii\helpers\{Json};
use yii\web\{BadRequestHttpException};
use yii\gitea\PushEvent;
use yii\helpers\Json;
use yii\web\BadRequestHttpException;

/**
* Handles the payload of a Gitea push event.


+ 3
- 3
src/PushEvent.php View File

@@ -1,9 +1,9 @@
<?php declare(strict_types=1);
namespace yii\gitea;

use Nyholm\Psr7\{Uri};
use Psr\Http\Message\{UriInterface};
use yii\base\{Model};
use Nyholm\Psr7\Uri;
use Psr\Http\Message\UriInterface;
use yii\base\Model;
use yii\gitea\models\{PayloadCommit, Repository, User};

/**


+ 3
- 3
src/models/PayloadCommit.php View File

@@ -1,9 +1,9 @@
<?php declare(strict_types=1);
namespace yii\gitea\models;

use Nyholm\Psr7\{Uri};
use Psr\Http\Message\{UriInterface};
use yii\base\{Model};
use Nyholm\Psr7\Uri;
use Psr\Http\Message\UriInterface;
use yii\base\Model;

/** Represents a commit. */
class PayloadCommit extends Model {


+ 1
- 1
src/models/PayloadCommitVerification.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace yii\gitea\models;

use yii\base\{Model};
use yii\base\Model;

/** Represents the GPG verification of a commit. */
class PayloadCommitVerification extends Model {


+ 1
- 1
src/models/PayloadUser.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace yii\gitea\models;

use yii\base\{Model};
use yii\base\Model;

/** Represents the author or committer of a commit. */
class PayloadUser extends Model {


+ 1
- 1
src/models/Permission.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace yii\gitea\models;

use yii\base\{Model};
use yii\base\Model;

/** Represents a set of permissions. */
class Permission extends Model {


+ 3
- 3
src/models/Repository.php View File

@@ -1,9 +1,9 @@
<?php declare(strict_types=1);
namespace yii\gitea\models;

use Nyholm\Psr7\{Uri};
use Psr\Http\Message\{UriInterface};
use yii\base\{Model};
use Nyholm\Psr7\Uri;
use Psr\Http\Message\UriInterface;
use yii\base\Model;

/**
* Represents a repository.


+ 1
- 1
src/models/ServerVersion.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace yii\gitea\models;

use yii\base\{Model};
use yii\base\Model;

/** Wraps the version of the Gitea server.*/
class ServerVersion extends Model {


+ 1
- 1
src/models/StatusState.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace yii\gitea\models;

use Enum\{EnumTrait};
use Enum\EnumTrait;

/** Defines the state of a Gitea status.*/
final class StatusState {


+ 1
- 1
src/models/Team.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace yii\gitea\models;

use yii\base\{Model};
use yii\base\Model;

/** Represents a team in an organization. */
class Team extends Model {


+ 1
- 1
src/models/TeamPermission.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace yii\gitea\models;

use Enum\{EnumTrait};
use Enum\EnumTrait;

/** Defines the permission of a team. */
final class TeamPermission {


+ 1
- 1
src/models/TrackedTime.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace yii\gitea\models;

use yii\base\{Model};
use yii\base\Model;

/** Represents the worked time for an issue or pull request. */
class TrackedTime extends Model {


+ 3
- 3
src/models/User.php View File

@@ -1,9 +1,9 @@
<?php declare(strict_types=1);
namespace yii\gitea\models;

use Nyholm\Psr7\{Uri};
use Psr\Http\Message\{UriInterface};
use yii\base\{Model};
use Nyholm\Psr7\Uri;
use Psr\Http\Message\UriInterface;
use yii\base\Model;

/** Represents a Gitea user. */
class User extends Model {


+ 1
- 1
src/models/UserHeatmapData.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace yii\gitea\models;

use yii\base\{Model};
use yii\base\Model;

/** Represents the data needed to create a user heatmap. */
class UserHeatmapData extends Model {


+ 1
- 1
test/index.php View File

@@ -1,5 +1,5 @@
<?php declare(strict_types=1);
use yii\console\{Application};
use yii\console\Application;

// Set the environment.
define("YII_DEBUG", true);


Loading…
Cancel
Save