Test Failed
Push — master ( 022044...66ca79 )
by Keoghan
13:42 queued 11s
created
src/ResourceClients/FundraisingClient.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -40,12 +40,12 @@  discard block
 block discarded – undo
40 40
 
41 41
     public function urlCheck($pageShortName)
42 42
     {
43
-        return $this->head("fundraising/pages/".$pageShortName);
43
+        return $this->head("fundraising/pages/" . $pageShortName);
44 44
     }
45 45
 
46 46
     public function suggestShortNames($preferredName)
47 47
     {
48
-        return $this->get("fundraising/pages/suggest?preferredName=".urlencode($preferredName));
48
+        return $this->get("fundraising/pages/suggest?preferredName=" . urlencode($preferredName));
49 49
     }
50 50
 
51 51
     public function register(FundraisingPage $pageCreationRequest)
@@ -55,12 +55,12 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function getById($id)
57 57
     {
58
-        return $this->get("/fundraising/pagebyid/".$id);
58
+        return $this->get("/fundraising/pagebyid/" . $id);
59 59
     }
60 60
 
61 61
     public function getByShortName($pageShortName)
62 62
     {
63
-        return $this->get("fundraising/pages/".$pageShortName);
63
+        return $this->get("fundraising/pages/" . $pageShortName);
64 64
     }
65 65
 
66 66
     public function getAllPages()
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     public function getDonations($pageShortName, $pageSize = 50, $pageNumber = 0)
72 72
     {
73
-        return $this->get("fundraising/pages/".$pageShortName."/donations"."?PageSize=".$pageSize."&PageNum=".$pageNumber);
73
+        return $this->get("fundraising/pages/" . $pageShortName . "/donations" . "?PageSize=" . $pageSize . "&PageNum=" . $pageNumber);
74 74
     }
75 75
 
76 76
     /**
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function getDonationsByReference($pageShortName, $reference)
82 82
     {
83
-        return $this->get("fundraising/pages/".$pageShortName."/donations/ref/".$reference);
83
+        return $this->get("fundraising/pages/" . $pageShortName . "/donations/ref/" . $reference);
84 84
     }
85 85
 
86 86
     public function UpdateStory($pageShortName, $storyUpdate)
@@ -88,22 +88,22 @@  discard block
 block discarded – undo
88 88
         $storyUpdateRequest = new StoryUpdateRequest();
89 89
         $storyUpdateRequest->storySupplement = $storyUpdate;
90 90
 
91
-        return $this->post("fundraising/pages/".$pageShortName, $storyUpdateRequest);
91
+        return $this->post("fundraising/pages/" . $pageShortName, $storyUpdateRequest);
92 92
     }
93 93
 
94 94
     public function getUpdates($pageShortName)
95 95
     {
96
-        return $this->get("fundraising/pages/".$pageShortName."/updates/");
96
+        return $this->get("fundraising/pages/" . $pageShortName . "/updates/");
97 97
     }
98 98
 
99 99
     public function getUpdatesV2($pageShortName)
100 100
     {
101
-        return $this->get("fundraising/pages/".$pageShortName."/updatesv2/");
101
+        return $this->get("fundraising/pages/" . $pageShortName . "/updatesv2/");
102 102
     }
103 103
 
104 104
     public function getUpdatesById($pageShortName, $updateId)
105 105
     {
106
-        return $this->get("fundraising/pages/".$pageShortName."/updates/".$updateId);
106
+        return $this->get("fundraising/pages/" . $pageShortName . "/updates/" . $updateId);
107 107
     }
108 108
 
109 109
     /**
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function addPostToPageUpdate($pageShortName, $addPostToPageUpdateRequest)
116 116
     {
117
-        return $this->post("fundraising/pages/".$pageShortName."/updates/", $addPostToPageUpdateRequest);
117
+        return $this->post("fundraising/pages/" . $pageShortName . "/updates/", $addPostToPageUpdateRequest);
118 118
     }
119 119
 
120 120
     /**
@@ -125,75 +125,75 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function addPostToPageUpdateV2($pageShortName, $addPostToPageUpdateRequest)
127 127
     {
128
-        return $this->post("fundraising/pages/".$pageShortName."/updatesv2/", $addPostToPageUpdateRequest);
128
+        return $this->post("fundraising/pages/" . $pageShortName . "/updatesv2/", $addPostToPageUpdateRequest);
129 129
     }
130 130
 
131 131
     public function deletePageUpdate($pageShortName, $updateId)
132 132
     {
133
-        return $this->delete("fundraising/pages/".$pageShortName."/updates/".$updateId);
133
+        return $this->delete("fundraising/pages/" . $pageShortName . "/updates/" . $updateId);
134 134
     }
135 135
 
136 136
     public function deleteAttribution($pageShortName)
137 137
     {
138
-        return $this->delete("fundraising/pages/".$pageShortName."/attribution");
138
+        return $this->delete("fundraising/pages/" . $pageShortName . "/attribution");
139 139
     }
140 140
 
141 141
     public function updateAttribution($pageShortName, UpdateFundraisingPageAttributionRequest $updateAttributionRequest)
142 142
     {
143
-        return $this->put("fundraising/pages/".$pageShortName."/attribution", $updateAttributionRequest);
143
+        return $this->put("fundraising/pages/" . $pageShortName . "/attribution", $updateAttributionRequest);
144 144
     }
145 145
 
146 146
     public function appendToAttribution($pageShortName, $appendToAttributionRequest)
147 147
     {
148
-        return $this->post("fundraising/pages/".$pageShortName."/attribution", $appendToAttributionRequest);
148
+        return $this->post("fundraising/pages/" . $pageShortName . "/attribution", $appendToAttributionRequest);
149 149
     }
150 150
 
151 151
     public function getAttribution($pageShortName)
152 152
     {
153
-        return $this->get("fundraising/pages/".$pageShortName."/attribution");
153
+        return $this->get("fundraising/pages/" . $pageShortName . "/attribution");
154 154
     }
155 155
 
156 156
     public function uploadImage($pageShortName, $caption, $filename, $imageContentType = null)
157 157
     {
158
-        $url = "fundraising/pages/".$pageShortName."/images?caption=".urlencode($caption);
158
+        $url = "fundraising/pages/" . $pageShortName . "/images?caption=" . urlencode($caption);
159 159
 
160 160
         return $this->postFile($url, $filename, $imageContentType);
161 161
     }
162 162
 
163 163
     public function uploadDefaultImage($pageShortName, $filename, $imageContentType = null)
164 164
     {
165
-        $url = "fundraising/pages/".$pageShortName."/images/default";
165
+        $url = "fundraising/pages/" . $pageShortName . "/images/default";
166 166
 
167 167
         return $this->postFile($url, $filename, $imageContentType);
168 168
     }
169 169
 
170 170
     public function addImage($pageShortName, AddImageRequest $addImageRequest)
171 171
     {
172
-        return $this->put("fundraising/pages/".$pageShortName."/images", $addImageRequest);
172
+        return $this->put("fundraising/pages/" . $pageShortName . "/images", $addImageRequest);
173 173
     }
174 174
 
175 175
     public function getImages($pageShortName)
176 176
     {
177
-        return $this->get("fundraising/pages/".$pageShortName."/images");
177
+        return $this->get("fundraising/pages/" . $pageShortName . "/images");
178 178
     }
179 179
 
180 180
     public function deleteImage($pageShortName, $imageName)
181 181
     {
182
-        return $this->delete("fundraising/pages/".$pageShortName."/images/".$imageName);
182
+        return $this->delete("fundraising/pages/" . $pageShortName . "/images/" . $imageName);
183 183
     }
184 184
 
185 185
     public function addVideo($pageShortName, AddVideoRequest $addVideoRequest)
186 186
     {
187
-        return $this->put("fundraising/pages/".$pageShortName."/videos", $addVideoRequest);
187
+        return $this->put("fundraising/pages/" . $pageShortName . "/videos", $addVideoRequest);
188 188
     }
189 189
 
190 190
     public function getVideos($pageShortName)
191 191
     {
192
-        return $this->get("fundraising/pages/".$pageShortName."/videos");
192
+        return $this->get("fundraising/pages/" . $pageShortName . "/videos");
193 193
     }
194 194
 
195 195
     public function cancel($pageShortName)
196 196
     {
197
-        return $this->delete("fundraising/pages/".$pageShortName);
197
+        return $this->delete("fundraising/pages/" . $pageShortName);
198 198
     }
199 199
 }
Please login to merge, or discard this patch.