Passed
Push — master ( 6f1a5c...93ceac )
by masoud
11:46
created
src/Api/Tagging/Tag/Tag.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -12,24 +12,24 @@  discard block
 block discarded – undo
12 12
     {
13 13
         $this->HttpClient=$HttpClient;
14 14
     }
15
-    public function all(){
15
+    public function all() {
16 16
         return ApiResponse::BodyResponse($this->HttpClient->get("com/vmware/cis/tagging/tag"));
17 17
     }
18
-    public function get($tag_id){
18
+    public function get($tag_id) {
19 19
         return ApiResponse::BodyResponse($this->HttpClient->get("com/vmware/cis/tagging/tag/id:$tag_id"));
20 20
     }
21
-    public function delete($tag_id){
21
+    public function delete($tag_id) {
22 22
         return ApiResponse::BodyResponse($this->HttpClient->delete("com/vmware/cis/tagging/tag/id:$tag_id"));
23 23
     }
24
-    public function update($tag_id,array $config){
25
-        return ApiResponse::BodyResponse($this->HttpClient->patch("com/vmware/cis/tagging/tag/id:$tag_id",[
24
+    public function update($tag_id, array $config) {
25
+        return ApiResponse::BodyResponse($this->HttpClient->patch("com/vmware/cis/tagging/tag/id:$tag_id", [
26 26
             "json"=>$config
27 27
         ]));
28 28
     }
29
-    public function allTagsForCategory($category_id){
29
+    public function allTagsForCategory($category_id) {
30 30
         return ApiResponse::BodyResponse($this->HttpClient->post("com/vmware/cis/tagging/tag/id:$category_id?~action=list-tags-for-category"));
31 31
     }
32
-    public function addToUsedBy($tag_id,$entity){
32
+    public function addToUsedBy($tag_id, $entity) {
33 33
         return ApiResponse::BodyResponse($this->HttpClient->post("com/vmware/cis/tagging/tag/id:$tag_id?~action=add-to-used-by",
34 34
             [
35 35
                 "json"=>
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             ]
40 40
         ));
41 41
     }
42
-    public function removeUsedToBy($tag_id,$entity){
42
+    public function removeUsedToBy($tag_id, $entity) {
43 43
         return ApiResponse::BodyResponse($this->HttpClient->post("com/vmware/cis/tagging/tag/id:$tag_id?~action=remove-from-used-by",
44 44
             [
45 45
                 "json"=>
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             ]
50 50
         ));
51 51
     }
52
-    public function revokePropagatingPermissions($tag_id){
52
+    public function revokePropagatingPermissions($tag_id) {
53 53
         return ApiResponse::BodyResponse($this->HttpClient->post("com/vmware/cis/tagging/tag/id:$tag_id?~action=revoke-propagating-permissions"));
54 54
     }
55 55
 }
56 56
\ No newline at end of file
Please login to merge, or discard this patch.