Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code cleanup - replace overcomplicated test for null with isset #16965

Merged
merged 1 commit into from
Apr 3, 2020

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Apr 3, 2020

Overview

Minor code cleanup. Replaces a silly pattern with something exactly equivalent and much simpler.

@civibot
Copy link

civibot bot commented Apr 3, 2020

(Standard links)

@civibot civibot bot added the master label Apr 3, 2020
@@ -2049,9 +2049,8 @@ public static function createTestObject(
foreach ($fields as $fieldName => $fieldDef) {
$dbName = $fieldDef['name'];
$FKClassName = $fieldDef['FKClassName'] ?? NULL;
$required = $fieldDef['required'] ?? NULL;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused var

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it says "required" (grin).

Seriously these all look ok to me.

@colemanw colemanw merged commit 55c420d into civicrm:master Apr 3, 2020
@colemanw colemanw deleted the isset branch April 3, 2020 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants