Completed
Pull Request — master (#167)
by
unknown
01:40
created
src/Resources/CrmAssociations.php 2 patches
Doc Comments   +2 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@  discard block
 block discarded – undo
6 6
 class CrmAssociations extends Resource
7 7
 {
8 8
     /**
9
-     * @param array $ticket Array of deal properties.
10
-     * @return mixed
9
+     * @return \Psr\Http\Message\ResponseInterface
11 10
      * @throws \SevenShores\Hubspot\Exceptions\BadRequest
12 11
      */
13 12
     function create(array $data)
@@ -20,9 +19,7 @@  discard block
 block discarded – undo
20 19
     }
21 20
 
22 21
     /**
23
-     * @param int $id The deal id.
24
-     * @param array $ticket The deal properties to update.
25
-     * @return mixed
22
+     * @return \Psr\Http\Message\ResponseInterface
26 23
      */
27 24
     function delete(array $data)
28 25
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace SevenShores\Hubspot\Resources;
3 3
 
4
-use SevenShores\Hubspot\Exceptions\HubspotException;
5
-
6 4
 class CrmAssociations extends Resource
7 5
 {
8 6
     /**
Please login to merge, or discard this patch.
src/Resources/Tickets.php 3 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 {
8 8
     /**
9 9
      * @param array $ticket Array of deal properties.
10
-     * @return mixed
10
+     * @return \Psr\Http\Message\ResponseInterface
11 11
      * @throws \SevenShores\Hubspot\Exceptions\BadRequest
12 12
      */
13 13
     function create(array $ticket)
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     /**
23 23
      * @param int $id The deal id.
24 24
      * @param array $ticket The deal properties to update.
25
-     * @return mixed
25
+     * @return \Psr\Http\Message\ResponseInterface
26 26
      */
27 27
     function update($id, array $ticket)
28 28
     {
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
     /**
52 52
      * @param int $id
53
-     * @return mixed
53
+     * @return \Psr\Http\Message\ResponseInterface
54 54
      */
55 55
     function delete($id)
56 56
     {
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     /**
63 63
      * @param int $id
64
-     * @return mixed
64
+     * @return \Psr\Http\Message\ResponseInterface
65 65
      */
66 66
     function getById($id)
67 67
     {
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
     /**
74 74
      * @param array $params Optional parameters ['timestamp', 'changeType', 'objectId']
75
-     * @return mixed
75
+     * @return \Psr\Http\Message\ResponseInterface
76 76
      */
77 77
     function getChangelog(array $params = [])
78 78
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace SevenShores\Hubspot\Resources;
3 3
 
4
-use SevenShores\Hubspot\Exceptions\HubspotException;
5
-
6 4
 class Tickets extends Resource
7 5
 {
8 6
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      * @return \Psr\Http\Message\ResponseInterface|\SevenShores\Hubspot\Http\Response
40 40
      * @throws \SevenShores\Hubspot\Exceptions\BadRequest
41 41
      */
42
-    function getAll(array $params = []){
42
+    function getAll(array $params = []) {
43 43
         $endpoint = "https://api.hubapi.com/crm-objects/v1/objects/tickets/paged";
44 44
 
45 45
         $queryString = build_query_string($params);
Please login to merge, or discard this patch.