Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4088695
D158.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
D158.diff
View Options
diff --git a/app/Phabricator/PhabricatorAPI.php b/app/Phabricator/PhabricatorAPI.php
--- a/app/Phabricator/PhabricatorAPI.php
+++ b/app/Phabricator/PhabricatorAPI.php
@@ -39,6 +39,12 @@
$this->apiToken = $apiToken;
}
+ /**
+ * Gets an API instance for the specific instance
+ *
+ * @param string $instance The name of the instance (this matches that parameter in credentials.json)
+ * @return PhabricatorAPI|null A PhabricatorAPI instance for the project if found; otherwise, null.
+ */
public static function forInstance ($instance) {
$service = self::getServiceForInstance($instance);
if ($service === null) {
@@ -49,7 +55,7 @@
}
/**
- * Gets an API instance for the specify project
+ * Gets an API instance for the specific project
*
* @param string $project The name of the project (this matches the door parameter in credentials.json)
* @return PhabricatorAPI|null A PhabricatorAPI instance for the project if found; otherwise, null.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 4, 04:13 (17 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2393690
Default Alt Text
D158.diff (1 KB)
Attached To
Mode
D158: Improve code comments
Attached
Detach File
Event Timeline
Log In to Comment