Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3921707
D272.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D272.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
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)
Attached To
Mode
D272: Strict comparison in GitHubPayloadAnalyzer class
Attached
Detach File
Event Timeline
Log In to Comment