Page MenuHomeDevCentral

D272.id632.diff
No OneTemporary

D272.id632.diff

diff --git a/app/Analyzers/GitHub/GitHubPayloadAnalyzer.php b/app/Analyzers/GitHub/GitHubPayloadAnalyzer.php
--- a/app/Analyzers/GitHub/GitHubPayloadAnalyzer.php
+++ b/app/Analyzers/GitHub/GitHubPayloadAnalyzer.php
@@ -238,7 +238,7 @@
$type = $this->payload->ref_type;
$ref = $this->payload->ref;
- if ($type == "tag" || $type == "branch") {
+ if ($type === "tag" || $type === "branch") {
return "New $type on $repository: $ref";
}
@@ -250,7 +250,7 @@
case "push":
$n = count($this->payload->commits);
- if ($n == 1) {
+ if ($n === 1) {
return $this->getHeadCommitDescription();
}
@@ -291,9 +291,9 @@
$ref = $this->payload->ref;
$url = $this->payload->repository->html_url;
- if ($type == "tag") {
+ if ($type === "tag") {
$url .= "/releases/tag/" . $ref;
- } elseif ($type == "branch") {
+ } elseif ($type === "branch") {
$url .= "/tree/" . $ref;
}
@@ -301,7 +301,7 @@
case "push":
$n = count($this->payload->commits);
- if ($n == 1) {
+ if ($n === 1) {
return $this->payload->head_commit->url;
}
return $this->payload->compare;

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 23, 11:31 (13 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2372006
Default Alt Text
D272.id632.diff (1 KB)

Event Timeline