Page MenuHomePhabricator

D11142.id26754.diff
No OneTemporary

D11142.id26754.diff

diff --git a/src/applications/files/lipsum/PhabricatorFileTestDataGenerator.php b/src/applications/files/lipsum/PhabricatorFileTestDataGenerator.php
--- a/src/applications/files/lipsum/PhabricatorFileTestDataGenerator.php
+++ b/src/applications/files/lipsum/PhabricatorFileTestDataGenerator.php
@@ -4,7 +4,7 @@
extends PhabricatorTestDataGenerator {
public function generate() {
- $authorPHID = $this->loadPhabrictorUserPHID();
+ $author_phid = $this->loadPhabrictorUserPHID();
$dimension = 1 << rand(5, 12);
$image = id(new PhabricatorLipsumMondrianArtist())
->generate($dimension, $dimension);
@@ -13,7 +13,7 @@
array(
'name' => 'rand-'.rand(1000, 9999),
));
- $file->setAuthorPHID($authorPHID);
+ $file->setAuthorPHID($author_phid);
$file->setMimeType('image/jpeg');
return $file->save();
}
diff --git a/src/applications/files/storage/PhabricatorFile.php b/src/applications/files/storage/PhabricatorFile.php
--- a/src/applications/files/storage/PhabricatorFile.php
+++ b/src/applications/files/storage/PhabricatorFile.php
@@ -238,18 +238,18 @@
$copy_of_storage_engine = $file->getStorageEngine();
$copy_of_storage_handle = $file->getStorageHandle();
$copy_of_storage_format = $file->getStorageFormat();
- $copy_of_byteSize = $file->getByteSize();
- $copy_of_mimeType = $file->getMimeType();
+ $copy_of_byte_size = $file->getByteSize();
+ $copy_of_mime_type = $file->getMimeType();
$new_file = PhabricatorFile::initializeNewFile();
- $new_file->setByteSize($copy_of_byteSize);
+ $new_file->setByteSize($copy_of_byte_size);
$new_file->setContentHash($hash);
$new_file->setStorageEngine($copy_of_storage_engine);
$new_file->setStorageHandle($copy_of_storage_handle);
$new_file->setStorageFormat($copy_of_storage_format);
- $new_file->setMimeType($copy_of_mimeType);
+ $new_file->setMimeType($copy_of_mime_type);
$new_file->copyDimensions($file);
$new_file->readPropertiesFromParameters($params);
diff --git a/src/applications/maniphest/lipsum/PhabricatorManiphestTaskTestDataGenerator.php b/src/applications/maniphest/lipsum/PhabricatorManiphestTaskTestDataGenerator.php
--- a/src/applications/maniphest/lipsum/PhabricatorManiphestTaskTestDataGenerator.php
+++ b/src/applications/maniphest/lipsum/PhabricatorManiphestTaskTestDataGenerator.php
@@ -4,9 +4,9 @@
extends PhabricatorTestDataGenerator {
public function generate() {
- $authorPHID = $this->loadPhabrictorUserPHID();
+ $author_phid = $this->loadPhabrictorUserPHID();
$author = id(new PhabricatorUser())
- ->loadOneWhere('phid = %s', $authorPHID);
+ ->loadOneWhere('phid = %s', $author_phid);
$task = ManiphestTask::initializeNewTask($author)
->setSubPriority($this->generateTaskSubPriority())
->setTitle($this->generateTitle());
diff --git a/src/applications/phame/controller/PhameController.php b/src/applications/phame/controller/PhameController.php
--- a/src/applications/phame/controller/PhameController.php
+++ b/src/applications/phame/controller/PhameController.php
@@ -37,8 +37,8 @@
foreach ($posts as $post) {
$blogger = $this->getHandle($post->getBloggerPHID())->renderLink();
- $bloggerURI = $this->getHandle($post->getBloggerPHID())->getURI();
- $bloggerImage = $this->getHandle($post->getBloggerPHID())->getImageURI();
+ $blogger_uri = $this->getHandle($post->getBloggerPHID())->getURI();
+ $blogger_image = $this->getHandle($post->getBloggerPHID())->getImageURI();
$blog = null;
if ($post->getBlog()) {
@@ -71,8 +71,8 @@
$story = id(new PHUIFeedStoryView())
->setTitle($title)
- ->setImage($bloggerImage)
- ->setImageHref($bloggerURI)
+ ->setImage($blogger_image)
+ ->setImageHref($blogger_uri)
->setAppIcon('phame-dark')
->setUser($viewer)
->setPontification($phame_post, $phame_title);
diff --git a/src/applications/pholio/lipsum/PhabricatorPholioMockTestDataGenerator.php b/src/applications/pholio/lipsum/PhabricatorPholioMockTestDataGenerator.php
--- a/src/applications/pholio/lipsum/PhabricatorPholioMockTestDataGenerator.php
+++ b/src/applications/pholio/lipsum/PhabricatorPholioMockTestDataGenerator.php
@@ -4,11 +4,11 @@
extends PhabricatorTestDataGenerator {
public function generate() {
- $authorPHID = $this->loadPhabrictorUserPHID();
+ $author_phid = $this->loadPhabrictorUserPHID();
$author = id(new PhabricatorUser())
- ->loadOneWhere('phid = %s', $authorPHID);
+ ->loadOneWhere('phid = %s', $author_phid);
$mock = id(new PholioMock())
- ->setAuthorPHID($authorPHID);
+ ->setAuthorPHID($author_phid);
$content_source = PhabricatorContentSource::newForSource(
PhabricatorContentSource::SOURCE_UNKNOWN,
array());
@@ -27,10 +27,10 @@
array('=' => $this->getCCPHIDs());
// Get Files and make Images
- $filePHIDS = $this->generateImages();
+ $file_phids = $this->generateImages();
$files = id(new PhabricatorFileQuery())
->setViewer($author)
- ->withPHIDs($filePHIDS)
+ ->withPHIDs($file_phids)
->execute();
$mock->setCoverPHID(head($files)->getPHID());
$sequence = 0;
diff --git a/src/applications/policy/query/PhabricatorPolicyQuery.php b/src/applications/policy/query/PhabricatorPolicyQuery.php
--- a/src/applications/policy/query/PhabricatorPolicyQuery.php
+++ b/src/applications/policy/query/PhabricatorPolicyQuery.php
@@ -117,9 +117,9 @@
}
public static function isGlobalPolicy($policy) {
- $globalPolicies = self::getGlobalPolicies();
+ $global_policies = self::getGlobalPolicies();
- if (isset($globalPolicies[$policy])) {
+ if (isset($global_policies[$policy])) {
return true;
}
diff --git a/src/applications/project/lipsum/PhabricatorProjectTestDataGenerator.php b/src/applications/project/lipsum/PhabricatorProjectTestDataGenerator.php
--- a/src/applications/project/lipsum/PhabricatorProjectTestDataGenerator.php
+++ b/src/applications/project/lipsum/PhabricatorProjectTestDataGenerator.php
@@ -8,17 +8,17 @@
public function generate() {
$title = $this->generateTitle();
$author = $this->loadPhabrictorUser();
- $authorPHID = $author->getPHID();
+ $author_phid = $author->getPHID();
$project = id(new PhabricatorProject())
->setName($title)
- ->setAuthorPHID($authorPHID);
+ ->setAuthorPHID($author_phid);
$this->addTransaction(
PhabricatorProjectTransaction::TYPE_NAME,
$title);
$this->addTransaction(
PhabricatorProjectTransaction::TYPE_MEMBERS,
- $this->loadMembersWithAuthor($authorPHID));
+ $this->loadMembersWithAuthor($author_phid));
$this->addTransaction(
PhabricatorProjectTransaction::TYPE_STATUS,
$this->generateProjectStatus());
diff --git a/src/applications/releeph/conduit/ReleephQueryRequestsConduitAPIMethod.php b/src/applications/releeph/conduit/ReleephQueryRequestsConduitAPIMethod.php
--- a/src/applications/releeph/conduit/ReleephQueryRequestsConduitAPIMethod.php
+++ b/src/applications/releeph/conduit/ReleephQueryRequestsConduitAPIMethod.php
@@ -46,31 +46,31 @@
$query->withRequestedCommitPHIDs($requested_commit_phids);
}
- $releephRequests = $query->execute();
+ $releeph_requests = $query->execute();
- foreach ($releephRequests as $releephRequest) {
- $branch = $releephRequest->getBranch();
+ foreach ($releeph_requests as $releeph_request) {
+ $branch = $releeph_request->getBranch();
- $request_commit_phid = $releephRequest->getRequestCommitPHID();
+ $request_commit_phid = $releeph_request->getRequestCommitPHID();
- $object = $releephRequest->getRequestedObject();
+ $object = $releeph_request->getRequestedObject();
if ($object instanceof DifferentialRevision) {
$object_phid = $object->getPHID();
} else {
$object_phid = null;
}
- $status = $releephRequest->getStatus();
- $statusName = ReleephRequestStatus::getStatusDescriptionFor($status);
- $url = PhabricatorEnv::getProductionURI('/RQ'.$releephRequest->getID());
+ $status = $releeph_request->getStatus();
+ $status_name = ReleephRequestStatus::getStatusDescriptionFor($status);
+ $url = PhabricatorEnv::getProductionURI('/RQ'.$releeph_request->getID());
$result[] = array(
'branchBasename' => $branch->getBasename(),
'branchSymbolic' => $branch->getSymbolicName(),
- 'requestID' => $releephRequest->getID(),
+ 'requestID' => $releeph_request->getID(),
'revisionPHID' => $object_phid,
'status' => $status,
- 'statusName' => $statusName,
+ 'status_name' => $status_name,
'url' => $url,
);
}
diff --git a/src/applications/repository/phid/PhabricatorRepositoryRepositoryPHIDType.php b/src/applications/repository/phid/PhabricatorRepositoryRepositoryPHIDType.php
--- a/src/applications/repository/phid/PhabricatorRepositoryRepositoryPHIDType.php
+++ b/src/applications/repository/phid/PhabricatorRepositoryRepositoryPHIDType.php
@@ -66,8 +66,9 @@
if ($query->execute()) {
$objects = $query->getIdentifierMap();
foreach ($objects as $key => $object) {
- foreach (idx($id_map, $key, array()) as $name)
+ foreach (idx($id_map, $key, array()) as $name) {
$results[$name] = $object;
+ }
}
return $results;
} else {

File Metadata

Mime Type
text/plain
Expires
Thu, Apr 24, 11:34 PM (4 d, 7 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7690572
Default Alt Text
D11142.id26754.diff (9 KB)

Event Timeline