Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F55894741
D272.id632.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D272.id632.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 2, 08:52 (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4244006
Default Alt Text
D272.id632.diff (1 KB)
Attached To
Mode
D272: Strict comparison in GitHubPayloadAnalyzer class
Attached
Detach File
Event Timeline
Log In to Comment