Code Duplication    Length = 29-29 lines in 2 locations

src/Issue/GithubIssueSource.php 1 location

@@ 65-93 (lines=29) @@
62
     *
63
     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
64
     */
65
    public function __construct(
66
        GithubIssueId $id,
67
        GithubRepo $repo,
68
        $number,
69
        GithubIssueState $state,
70
        $title,
71
        $body,
72
        GithubUser $createdByUser,
73
        GithubUser $assignedToUser = null,
74
        GithubMilestone $milestone = null,
75
        $commentCount,
76
        DateTime $githubCreatedAt,
77
        DateTime $githubUpdatedAt,
78
        DateTime $githubClosedAt = null
79
    ) {
80
        $this->id              = $id;
81
        $this->repo            = $repo;
82
        $this->number          = $number;
83
        $this->state           = $state;
84
        $this->title           = $title;
85
        $this->body            = $body;
86
        $this->createdByUser   = $createdByUser;
87
        $this->assignedToUser  = $assignedToUser;
88
        $this->milestone       = $milestone;
89
        $this->commentCount    = $commentCount;
90
        $this->githubCreatedAt = $githubCreatedAt;
91
        $this->githubUpdatedAt = $githubUpdatedAt;
92
        $this->githubClosedAt  = $githubClosedAt;
93
    }
94
95
    /**
96
     * @return GithubIssueId

src/Milestone/GithubMilestoneSource.php 1 location

@@ 63-91 (lines=29) @@
60
     *
61
     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
62
     */
63
    public function __construct(
64
        GithubMilestoneId $id,
65
        GithubRepo $repo,
66
        $number,
67
        GithubMilestoneState $state,
68
        $title,
69
        $description,
70
        GithubUser $createdByUser = null,
71
        $openIssueCount,
72
        $closedIssueCount,
73
        DateTime $dueDate = null,
74
        DateTime $githubCreatedAt,
75
        DateTime $githubUpdatedAt,
76
        DateTime $githubClosedAt = null
77
    ) {
78
        $this->id               = $id;
79
        $this->repo             = $repo;
80
        $this->number           = $number;
81
        $this->state            = $state;
82
        $this->title            = $title;
83
        $this->description      = $description;
84
        $this->createdByUser    = $createdByUser;
85
        $this->openIssueCount   = $openIssueCount;
86
        $this->closedIssueCount = $closedIssueCount;
87
        $this->dueDate          = $dueDate;
88
        $this->githubCreatedAt  = $githubCreatedAt;
89
        $this->githubUpdatedAt  = $githubUpdatedAt;
90
        $this->githubClosedAt   = $githubClosedAt;
91
    }
92
93
    /**
94
     * @return GithubMilestoneId