Page MenuHomeDevCentral

D272.diff
No OneTemporary

D272.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
Sat, Dec 21, 22:43 (20 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2309934
Default Alt Text
D272.diff (1 KB)

Event Timeline