Skip to content
This repository was archived by the owner on Aug 17, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
- name: "PHPStan"
run: composer phpstan

#- name: "PHP-CS-Fixer"
# run: composer cs-fix
- name: "PHP-CS-Fixer"
run: composer cs-fix

#- name: "Psalm"
# run: composer psalm
Expand Down
254 changes: 0 additions & 254 deletions Tests/Parser/WebhookResolverTest.php

This file was deleted.

33 changes: 14 additions & 19 deletions src/Entity/Comment.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php



namespace LoveOSS\Github\Entity;

class Comment
Expand All @@ -10,9 +8,6 @@ class Comment
private string $htmlUrl;
private string $id;

/**
* @var User
*/
private User $user;
private string $position;
private string $line;
Expand All @@ -25,7 +20,7 @@ class Comment
/**
* @param array<string> $data
*/
public static function createFromData(array $data) : self
public static function createFromData(array $data): self
{
return new static($data);
}
Expand Down Expand Up @@ -55,62 +50,62 @@ final public function __construct($data)
$this->body = isset($data['body']) ? $data['body'] : '';
}

public function getUrl() : string
public function getUrl(): string
{
return $this->url;
}

public function getHtmlUrl() : string
public function getHtmlUrl(): string
{
return $this->htmlUrl;
}

public function getId() : string
public function getId(): string
{
return $this->id;
}

public function getUser() : User
public function getUser(): User
{
return $this->user;
}

public function getUserLogin() : string
public function getUserLogin(): string
{
return $this->user->getLogin();
}

public function getPosition() : string
public function getPosition(): string
{
return $this->position;
}

public function getLine() : string
public function getLine(): string
{
return $this->line;
}

public function getPath() : string
public function getPath(): string
{
return $this->path;
}

public function getCommitId() : string
public function getCommitId(): string
{
return $this->commitId;
}

public function getCreatedAt() : string
public function getCreatedAt(): string
{
return $this->createdAt;
}

public function getUpdatedAt() : string
public function getUpdatedAt(): string
{
return $this->updatedAt;
}

public function getBody() : string
public function getBody(): string
{
return $this->body;
}
Expand All @@ -120,7 +115,7 @@ public function getBody() : string
*
* @return string the comment
*/
public function __toString() : string
public function __toString(): string
{
return $this->body;
}
Expand Down
2 changes: 0 additions & 2 deletions src/Entity/Commit.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php



namespace LoveOSS\Github\Entity;

/**
Expand Down
3 changes: 1 addition & 2 deletions src/Entity/CommitUser.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php


namespace LoveOSS\Github\Entity;

class CommitUser
Expand Down Expand Up @@ -42,6 +41,6 @@ public function getEmail()
*/
public function __toString()
{
return $this->name.' ('.$this->email.')';
return $this->name . ' (' . $this->email . ')';
}
}
Loading