Skip to content

add support for local edit#6

Open
naja7host wants to merge 2 commits intoblesta:masterfrom
naja7host:patch-1
Open

add support for local edit#6
naja7host wants to merge 2 commits intoblesta:masterfrom
naja7host:patch-1

Conversation

@naja7host
Copy link

No description provided.

{
// Set fields to update locally
$service_fields = ['thesslstore_token', 'thesslstore_order_id', 'thesslstore_fqdn'];
foreach ($service_fields as $field) {
Copy link
Member

Choose a reason for hiding this comment

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

Formatting is off here with white space usage. You should use spaces rather than tabs (1 tab = 4 spaces).

Copy link
Author

Choose a reason for hiding this comment

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

fixed .

return $response;
}

/**
Copy link
Member

Choose a reason for hiding this comment

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

You have added the same methods twice.

}

/**
* Edits the service on the remote server. Sets Input errors on failure,
Copy link
Member

Choose a reason for hiding this comment

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

This comment is inaccurate. You only edit fields locally and you never set errors. Careful with copy paste.

* - value The value for this key
* - encrypted Whether or not this field should be encrypted (default 0, not encrypted)
* @see Module::getModule()
* @see Module::getModuleRow()
Copy link
Member

Choose a reason for hiding this comment

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

You never use these two functions you are referencing.

* @return array A numerically indexed array of meta fields to be stored for this service containing:
* - key The key for this meta field
* - value The value for this key
* - encrypted Whether or not this field should be encrypted (default 0, not encrypted)
Copy link
Member

Choose a reason for hiding this comment

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

While 'encrypted' is a valid index to set, so do not set it so this comment is inaccurate.


$fields = new ModuleFields();

// Create domain label
Copy link
Member

Choose a reason for hiding this comment

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

I know the rest of this file does not adhere to it, but we try to have a maximum line length of 120 characters.

@naja7host
Copy link
Author

You can edit the merge us you want and correct the errors.

It was just a quick fix to resolve some interne cases .

@tysonphillips
Copy link
Member

@naja7host are you able to make the modifications suggested by @JReissmueller ?

@naja7host
Copy link
Author

i will try to see it tonight. and i will send another merge

@tysonphillips
Copy link
Member

Just a reminder that the requested changes haven't been made for this issue yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants