Completed
Push — develop ( a053c0...a548a3 )
by Vladimir
04:08
created
src/PulseNote.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      *
107 107
      * @since  0.1.0
108 108
      *
109
-     * @return string
109
+     * @return integer
110 110
      */
111 111
     public function getId ()
112 112
     {
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      *
213 213
      * @param  null|string        $title        The new title of the note
214 214
      * @param  null|string        $content      The new content of the note
215
-     * @param  null|int|PulseUser $user         The new author of the note
215
+     * @param  string $user         The new author of the note
216 216
      * @param  null|bool          $createUpdate Whether to create an update or not
217 217
      *
218 218
      * @since  0.1.0
Please login to merge, or discard this patch.
src/Objects/ApiObject.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -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
     }
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
      */
355 355
     final protected static function lazyCastNeeded ($target, $objectType)
356 356
     {
357
-        $objectDefinition = ($objectType[0] === "\\") ? $objectType : self::OBJ_NAMESPACE . $objectType;
357
+        $objectDefinition = ($objectType[0] === "\\") ? $objectType : self::OBJ_NAMESPACE.$objectType;
358 358
 
359 359
         return !($target instanceof $objectDefinition);
360 360
     }
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
      */
392 392
     final protected static function castArrayToObjectArray ($className, $objects)
393 393
     {
394
-        $class = self::OBJ_NAMESPACE . $className;
394
+        $class = self::OBJ_NAMESPACE.$className;
395 395
         $array = [];
396 396
 
397 397
         foreach ($objects as $post)
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 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();
Please login to merge, or discard this patch.