Completed
Push — master ( cd617c...28284d )
by Ryan
01:42
created
src/Resources/HubDB.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     public function createTable($name, array $columns, $published = true, $useForPages = false) {
74 74
         $endpoint = 'https://api.hubapi.com/hubdb/api/v1/tables';
75 75
         $options['json'] = ['name' => $name, 'columns' => $columns];
76
-        if($published) {
76
+        if ($published) {
77 77
             $options['json']['publishedAt'] = round(microtime(true) * 1000);
78 78
         }
79 79
         $options['json']['useForPages'] = $useForPages;
Please login to merge, or discard this patch.
src/Resources/ContactLists.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -172,8 +172,8 @@
 block discarded – undo
172 172
         $endpoint = "https://api.hubapi.com/contacts/v1/lists/{$list_id}/add";
173 173
 
174 174
         $options['json'] = [
175
-          'vids' => $contact_ids,
176
-          'emails' => $emails,
175
+            'vids' => $contact_ids,
176
+            'emails' => $emails,
177 177
         ];
178 178
 
179 179
         return $this->client->request('post', $endpoint, $options);
Please login to merge, or discard this patch.
src/Resources/Pages.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -102,13 +102,13 @@
 block discarded – undo
102 102
         return $this->client->request('get', $endpoint);
103 103
     }
104 104
 
105
-	/**
106
-	 * Clone the page.
107
-	 *
108
-	 * @param int $page_id The page ID
109
-	 * @param string $name The cloned page name
110
-	 * @return \SevenShores\Hubspot\Http\Response
111
-	 */
105
+    /**
106
+     * Clone the page.
107
+     *
108
+     * @param int $page_id The page ID
109
+     * @param string $name The cloned page name
110
+     * @return \SevenShores\Hubspot\Http\Response
111
+     */
112 112
     function clonePage($page_id, $name)
113 113
     {
114 114
         $endpoint = "https://api.hubapi.com/content/api/v2/pages/{$page_id}/clone";
Please login to merge, or discard this patch.
src/Resources/CrmAssociations.php 1 patch
Doc Comments   +2 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,11 +5,10 @@  discard block
 block discarded – undo
5 5
 class CrmAssociations extends Resource
6 6
 {
7 7
     /**
8
-     * @param array $ticket Array of deal properties.
9 8
      *
10 9
      * @throws \SevenShores\Hubspot\Exceptions\BadRequest
11 10
      *
12
-     * @return mixed
11
+     * @return \Psr\Http\Message\ResponseInterface
13 12
      */
14 13
     public function create(array $data)
15 14
     {
@@ -21,10 +20,8 @@  discard block
 block discarded – undo
21 20
     }
22 21
 
23 22
     /**
24
-     * @param int   $id     The deal id.
25
-     * @param array $ticket The deal properties to update.
26 23
      *
27
-     * @return mixed
24
+     * @return \Psr\Http\Message\ResponseInterface
28 25
      */
29 26
     public function delete(array $data)
30 27
     {
Please login to merge, or discard this patch.
src/Resources/Tickets.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
      *
10 10
      * @throws \SevenShores\Hubspot\Exceptions\BadRequest
11 11
      *
12
-     * @return mixed
12
+     * @return \Psr\Http\Message\ResponseInterface
13 13
      */
14 14
     public function create(array $ticket)
15 15
     {
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      * @param int   $id     The deal id.
25 25
      * @param array $ticket The deal properties to update.
26 26
      *
27
-     * @return mixed
27
+     * @return \Psr\Http\Message\ResponseInterface
28 28
      */
29 29
     public function update($id, array $ticket)
30 30
     {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * @param int $id
56 56
      *
57
-     * @return mixed
57
+     * @return \Psr\Http\Message\ResponseInterface
58 58
      */
59 59
     public function delete($id)
60 60
     {
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     /**
67 67
      * @param int $id
68 68
      *
69
-     * @return mixed
69
+     * @return \Psr\Http\Message\ResponseInterface
70 70
      */
71 71
     public function getById($id)
72 72
     {
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     /**
79 79
      * @param array $params Optional parameters ['timestamp', 'changeType', 'objectId']
80 80
      *
81
-     * @return mixed
81
+     * @return \Psr\Http\Message\ResponseInterface
82 82
      */
83 83
     public function getChangelog(array $params = [])
84 84
     {
Please login to merge, or discard this patch.
src/Resources/Analytics.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,6 @@
 block discarded – undo
129 129
      *
130 130
      * @see https://developers.hubspot.com/docs/methods/analytics/check_for_analytics_data_existence
131 131
      *
132
-     * @param string $id
133 132
      * @param array $params Array of optional parameters
134 133
      * @return \SevenShores\Hubspot\Http\Response
135 134
      */
Please login to merge, or discard this patch.
src/Resources/Forms.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
      * @param string $form_guid
145 145
      * @return \SevenShores\Hubspot\Http\Response
146 146
      */
147
-    function getSubmissions($form_guid, $params = []){
147
+    function getSubmissions($form_guid, $params = []) {
148 148
         $endpoint = "https://api.hubapi.com/form-integrations/v1/submissions/forms/{$form_guid}";
149 149
 
150 150
         $queryString = build_query_string($params);
Please login to merge, or discard this patch.