@@ 92-99 (lines=8) @@ | ||
89 | * |
|
90 | * @return mixed |
|
91 | */ |
|
92 | public function getCommit(string $fullName = self::DEFAULT_REPO, string $sha = self::DEFAULT_COMMIT_SHA) |
|
93 | { |
|
94 | $content = file_get_contents( |
|
95 | __DIR__.'/sample-data/'.$fullName.'/commit-'.$sha.'.json' |
|
96 | ); |
|
97 | ||
98 | return json_decode($content, true); |
|
99 | } |
|
100 | ||
101 | /** |
|
102 | * @param string $fullName |
|
@@ 107-114 (lines=8) @@ | ||
104 | * |
|
105 | * @return mixed |
|
106 | */ |
|
107 | public function getCommitStatus(string $fullName = self::DEFAULT_REPO, string $sha = self::DEFAULT_COMMIT_SHA) |
|
108 | { |
|
109 | $content = file_get_contents( |
|
110 | __DIR__.'/sample-data/'.$fullName.'/commit_status-'.$sha.'.json' |
|
111 | ); |
|
112 | ||
113 | return json_decode($content, true); |
|
114 | } |
|
115 | ||
116 | /** |
|
117 | * @param string $fullName |
|
@@ 122-129 (lines=8) @@ | ||
119 | * |
|
120 | * @return mixed |
|
121 | */ |
|
122 | public function getCommitStatuses(string $fullName = self::DEFAULT_REPO, string $sha = self::DEFAULT_COMMIT_SHA) |
|
123 | { |
|
124 | $content = file_get_contents( |
|
125 | __DIR__.'/sample-data/'.$fullName.'/commit_statuses-'.$sha.'.json' |
|
126 | ); |
|
127 | ||
128 | return json_decode($content, true); |
|
129 | } |
|
130 | ||
131 | /** |
|
132 | * @param string $fullName |