From 68440c853190a92c1b566b2f01b06cad8fce4d30 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 12 Dec 2016 21:32:56 +0300 Subject: [PATCH] PostApi code quality fix. Non implemented yet method removed. --- .../PointToolsBundle/Service/PostApi.php | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Service/PostApi.php b/src/Skobkin/Bundle/PointToolsBundle/Service/PostApi.php index ca088e2..a6c75bb 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Service/PostApi.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Service/PostApi.php @@ -28,24 +28,4 @@ class PostApi extends AbstractApi { return 'skobkin_point_tools_api_post'; } - - /** - * Get post with tags and comments by id - * - * @param $id - * - * @return Post[] - */ - public function getPostById($id) - { - if (!is_string($id)) { - throw new \InvalidArgumentException('$id must be an string'); - } - - $postData = $this->getGetRequestData('/api/post/'.$id, [], true); - - $post = $this->postFactory->createFromArray($postData); - - return $post; - } }