Completed
Pull Request — master (#317)
by
unknown
04:05
created
src/FacebookAds/Cursor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -462,7 +462,7 @@
 block discarded – undo
462 462
 
463 463
   /**
464 464
    * @param mixed $offset
465
-   * @return mixed
465
+   * @return AbstractObject|null
466 466
    */
467 467
   public function offsetGet($offset) {
468 468
     return isset($this->objects[$offset]) ? $this->objects[$offset] : null;
Please login to merge, or discard this patch.
src/FacebookAds/Logger/CurlLogger.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@
 block discarded – undo
195 195
 
196 196
   /**
197 197
    * @param array $array
198
-   * @param mixed $key
198
+   * @param string $key
199 199
    * @return mixed
200 200
    */
201 201
   protected function removeArrayKey(array &$array, $key) {
Please login to merge, or discard this patch.
src/FacebookAds/Object/AdVideo.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
   /**
79 79
    * @param array $fields
80 80
    * @param array $params
81
-   * @return Cursor
81
+   * @return \FacebookAds\Cursor
82 82
    */
83 83
   public function getVideoThumbnails(
84 84
     array $fields = array(), array $params = array()) {
Please login to merge, or discard this patch.
FacebookAds/Object/CustomAudienceNormalizers/ValueNormalizerInterface.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@
 block discarded – undo
28 28
 
29 29
   /**
30 30
    * @param string $key
31
-   * @param string $key_value
31
+   * @param string $val
32 32
    * @return boolean
33 33
    */
34 34
   public function shouldNormalize($key, $val);
35 35
 
36 36
   /**
37 37
    * @param string $key
38
-   * @param string $key_value
38
+   * @param string $val
39 39
    * @return string
40 40
    */
41 41
   public function normalize($key, $val);
Please login to merge, or discard this patch.
src/FacebookAds/Http/Exception/RequestException.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
 
116 116
   /**
117 117
    * @param array $array
118
-   * @param string|int $key
118
+   * @param string $key
119 119
    * @param mixed $default
120 120
    * @return mixed
121 121
    */
Please login to merge, or discard this patch.
src/FacebookAds/ApiRequest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -21,6 +21,10 @@
 block discarded – undo
21 21
   private $allow_file_upload;
22 22
   private $file_counter;
23 23
 
24
+  /**
25
+   * @param string $endpoint
26
+   * @param string $api_type
27
+   */
24 28
   public function __construct(
25 29
     Api $api,
26 30
     $id,
Please login to merge, or discard this patch.
src/FacebookAds/TypeChecker.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -156,6 +156,9 @@  discard block
 block discarded – undo
156 156
     return false;
157 157
   }
158 158
 
159
+  /**
160
+   * @param string $prefix
161
+   */
159 162
   private function startsWith($string, $prefix) {
160 163
     return $prefix === "" ||
161 164
       strrpos($string, $prefix, -strlen($string)) !== false;
@@ -182,12 +185,18 @@  discard block
 block discarded – undo
182 185
     return false;
183 186
   }
184 187
 
188
+  /**
189
+   * @param string $collection
190
+   */
185 191
   public function isTypeCollection($type, $collection) {
186 192
     $len_of_collection = strlen($collection);
187 193
     $typeCollection = substr($type, 0, $len_of_collection);
188 194
     return ($collection === $typeCollection);
189 195
   }
190 196
 
197
+  /**
198
+   * @param string $collection
199
+   */
191 200
   public function getTypeFromCollection($type, $collection) {
192 201
     return explode(",", trim(substr($type, strlen($collection)), "<>"));
193 202
   }
Please login to merge, or discard this patch.
src/FacebookAds/Object/AbstractCrudObject.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -331,7 +331,7 @@
 block discarded – undo
331 331
    * @param array $fields Fields to request
332 332
    * @param array $params Additional filters for the reading
333 333
    * @param string|null $endpoint
334
-   * @return AbstractObject
334
+   * @return null|AbstractCrudObject
335 335
    */
336 336
   protected function getOneByConnection(
337 337
     $prototype_class,
Please login to merge, or discard this patch.