Skip to content

Conversation

sibprogrammer
Copy link
Member

No description provided.

@sibprogrammer sibprogrammer requested a review from mrsombre June 18, 2019 16:51
Copy link
Contributor

@mrsombre mrsombre left a comment

Choose a reason for hiding this comment

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

Looks good. All tests passed correctly on test server.

* @param $value
* @return \PleskX\Api\XmlResponse
*/
private function _get($command, $field, $value)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe better to move this to \PleskX\Api\Operator, looks like common method?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not so common unfortunately due to a lot of minor differences in XML-RPC API itself. But as you can see I did some unification in some other operators for "get" methods and will continue working in this direction.


static::$_client->protectedDirectory()->delete('id', $protectedDirectory->id);
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Empty line after class body is not PSR-2 compliant

@@ -3,9 +3,113 @@

namespace PleskX\Api\Operator;

use PleskX\Api\Struct\ProtectedDirectory as Struct;

class ProtectedDirectory extends \PleskX\Api\Operator
{

Copy link
Contributor

Choose a reason for hiding this comment

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

Empty line before class body is not PSR-2 compliant

$response = $this->_client->request($packet, \PleskX\Api\Client::RESPONSE_FULL);
return $response;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Empty line after class body is not PSR-2 compliant

@sibprogrammer sibprogrammer merged commit d4e3a98 into master Jun 19, 2019
@mrsombre mrsombre deleted the task-ayuzhakov-prot-dirs-management branch August 2, 2019 10:23
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