Completed
Push — develop ( 21c609...db7143 )
by Vladimir
04:02
created
src/PulseNote.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     /**
92 92
      * The note's id.
93 93
      *
94
-     * @return string
94
+     * @return integer
95 95
      */
96 96
     public function getId ()
97 97
     {
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      *
174 174
      * @param  null|string        $title        The new title of the note
175 175
      * @param  null|string        $content      The new content of the note
176
-     * @param  null|int|PulseUser $userId       The new author of the note
176
+     * @param  string $userId       The new author of the note
177 177
      * @param  null|bool          $createUpdate Whether to create an update or not
178 178
      *
179 179
      * @since  0.1.0
Please login to merge, or discard this patch.
src/PulseUpdate.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      *
123 123
      * @api
124 124
      * @since  0.1.0
125
-     * @return string
125
+     * @return integer
126 126
      */
127 127
     public function getId ()
128 128
     {
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
      *
299 299
      * @since  0.3.0 Previously was available as 'getHasAssets()'
300 300
      *
301
-     * @return bool
301
+     * @return string
302 302
      */
303 303
     public function hasAssets ()
304 304
     {
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
      * @api
449 449
      *
450 450
      * @param  int|PulseUser $user          The author of this post
451
-     * @param  int|Pulse     $pulse         The Pulse to whom this update will belong to
451
+     * @param  integer     $pulse         The Pulse to whom this update will belong to
452 452
      * @param  string        $text          The content of the update
453 453
      * @param  null|bool     $announceToAll Whether or not to announce this update to everyone's wall
454 454
      *
Please login to merge, or discard this patch.
src/Objects/ApiObject.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -151,12 +151,12 @@  discard block
 block discarded – undo
151 151
     /**
152 152
      * {@inheritdoc}
153 153
      */
154
-    public function jsonSerialize()
154
+    public function jsonSerialize ()
155 155
     {
156 156
         return $this->jsonResponse;
157 157
     }
158 158
 
159
-    protected function lazyLoad()
159
+    protected function lazyLoad ()
160 160
     {
161 161
         if (empty($this->jsonResponse))
162 162
         {
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
     {
316 316
         if (self::lazyCastNeeded($target, $objectType))
317 317
         {
318
-            $object = ($objectType[0] == "\\") ? $objectType : self::OBJ_NAMESPACE . $objectType;
318
+            $object = ($objectType[0] == "\\") ? $objectType : self::OBJ_NAMESPACE.$objectType;
319 319
             $target = new $object($target);
320 320
         }
321 321
     }
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
      */
352 352
     final protected static function lazyCastNeeded ($target, $objectType)
353 353
     {
354
-        $objectDefinition = ($objectType[0] === "\\") ? $objectType : self::OBJ_NAMESPACE . $objectType;
354
+        $objectDefinition = ($objectType[0] === "\\") ? $objectType : self::OBJ_NAMESPACE.$objectType;
355 355
 
356 356
         return !($target instanceof $objectDefinition);
357 357
     }
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
      */
389 389
     final protected static function castArrayToObjectArray ($className, $objects)
390 390
     {
391
-        $class = self::OBJ_NAMESPACE . $className;
391
+        $class = self::OBJ_NAMESPACE.$className;
392 392
         $array = array();
393 393
 
394 394
         foreach ($objects as $post)
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
         if ($this->arrayConstructionOnly && !is_array($idOrArray))
126 126
         {
127
-            throw new \InvalidArgumentException("A $staticClass cannot be fetched from an ID.");
127
+            throw new \InvalidArgumentException("a $staticClass cannot be fetched from an ID.");
128 128
         }
129 129
 
130 130
         $this->initializeValues();
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
      */
469 469
     final protected static function sendDelete ($url, $getParams = array())
470 470
     {
471
-        return self::sendRequest("DELETE", $url, NULL, $getParams);
471
+        return self::sendRequest("DELETE", $url, null, $getParams);
472 472
     }
473 473
 
474 474
     /**
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
      *
520 520
      * @return string The base URL to call
521 521
      */
522
-    final protected static function apiEndpoint ($apiPrefix = NULL)
522
+    final protected static function apiEndpoint ($apiPrefix = null)
523 523
     {
524 524
         $apiSection = isset($apiPrefix) ? $apiPrefix : static::API_PREFIX;
525 525
 
Please login to merge, or discard this patch.