@@ -329,7 +329,7 @@ |
||
329 | 329 | * @api |
330 | 330 | * |
331 | 331 | * @param int|PulseUser $user The author of this post |
332 | - * @param int|Pulse $pulse The Pulse to whom this update will belong to |
|
332 | + * @param integer $pulse The Pulse to whom this update will belong to |
|
333 | 333 | * @param string $text The content of the update |
334 | 334 | * @param null|bool $announceToAll Whether or not to announce this update to everyone's wall |
335 | 335 | * |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | * |
101 | 101 | * @return PulseUser |
102 | 102 | */ |
103 | - public function getUser() |
|
103 | + public function getUser () |
|
104 | 104 | { |
105 | 105 | self::lazyLoad($this->user, "PulseUser"); |
106 | 106 | |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | * |
113 | 113 | * @return string |
114 | 114 | */ |
115 | - public function getUrl() |
|
115 | + public function getUrl () |
|
116 | 116 | { |
117 | 117 | return $this->url; |
118 | 118 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | * |
123 | 123 | * @return string |
124 | 124 | */ |
125 | - public function getId() |
|
125 | + public function getId () |
|
126 | 126 | { |
127 | 127 | return $this->id; |
128 | 128 | } |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * |
133 | 133 | * @return string |
134 | 134 | */ |
135 | - public function getBody() |
|
135 | + public function getBody () |
|
136 | 136 | { |
137 | 137 | return $this->body; |
138 | 138 | } |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | * |
143 | 143 | * @return string |
144 | 144 | */ |
145 | - public function getBodyText() |
|
145 | + public function getBodyText () |
|
146 | 146 | { |
147 | 147 | return $this->body_text; |
148 | 148 | } |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | * |
153 | 153 | * @return static[] |
154 | 154 | */ |
155 | - public function getReplies() |
|
155 | + public function getReplies () |
|
156 | 156 | { |
157 | 157 | self::lazyArray($this->replies, "PulseUpdate"); |
158 | 158 | |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | * |
165 | 165 | * @return string |
166 | 166 | */ |
167 | - public function getKind() |
|
167 | + public function getKind () |
|
168 | 168 | { |
169 | 169 | return $this->kind; |
170 | 170 | } |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * |
175 | 175 | * @return string |
176 | 176 | */ |
177 | - public function getHasAssets() |
|
177 | + public function getHasAssets () |
|
178 | 178 | { |
179 | 179 | return $this->has_assets; |
180 | 180 | } |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | * |
185 | 185 | * @return string |
186 | 186 | */ |
187 | - public function getAssets() |
|
187 | + public function getAssets () |
|
188 | 188 | { |
189 | 189 | return $this->assets; |
190 | 190 | } |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | * |
195 | 195 | * @return \DateTime |
196 | 196 | */ |
197 | - public function getCreatedAt() |
|
197 | + public function getCreatedAt () |
|
198 | 198 | { |
199 | 199 | self::lazyLoad($this->created_at, '\DateTime'); |
200 | 200 | |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | * |
207 | 207 | * @return \DateTime |
208 | 208 | */ |
209 | - public function getUpdatedAt() |
|
209 | + public function getUpdatedAt () |
|
210 | 210 | { |
211 | 211 | self::lazyLoad($this->updated_at, '\DateTime'); |
212 | 212 | |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | * |
239 | 239 | * @throws InvalidObjectException This PulseUpdate as already been deleted |
240 | 240 | */ |
241 | - public function deleteUpdate() |
|
241 | + public function deleteUpdate () |
|
242 | 242 | { |
243 | 243 | $this->checkInvalid(); |
244 | 244 |
@@ -337,7 +337,7 @@ |
||
337 | 337 | * |
338 | 338 | * @return PulseUpdate |
339 | 339 | */ |
340 | - public static function createUpdate ($user, $pulse, $text, $announceToAll = NULL) |
|
340 | + public static function createUpdate ($user, $pulse, $text, $announceToAll = null) |
|
341 | 341 | { |
342 | 342 | if ($user instanceof PulseUser) |
343 | 343 | { |
@@ -582,7 +582,7 @@ discard block |
||
582 | 582 | * @since 0.1.0 |
583 | 583 | * @return PulseNote |
584 | 584 | */ |
585 | - public function addNote ($title, $content, $owners_only = false, $user_id = NULL, $create_update = false) |
|
585 | + public function addNote ($title, $content, $owners_only = false, $user_id = null, $create_update = false) |
|
586 | 586 | { |
587 | 587 | $url = sprintf($this->urlSyntax, parent::apiEndpoint(), $this->id, "notes"); |
588 | 588 | $postParams = array( |
@@ -648,7 +648,7 @@ discard block |
||
648 | 648 | * |
649 | 649 | * @since 0.1.0 |
650 | 650 | */ |
651 | - public function createUpdate ($user, $text, $announceToAll = NULL) |
|
651 | + public function createUpdate ($user, $text, $announceToAll = null) |
|
652 | 652 | { |
653 | 653 | PulseUpdate::createUpdate($user, $this->getId(), $text, $announceToAll); |
654 | 654 | } |