Failed Conditions
Push — master ( 81ead6...837ea5 )
by
unknown
13:08
created
src/FacebookAds/Object/CustomAudienceMultiKey.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -25,10 +25,8 @@
 block discarded – undo
25 25
 namespace FacebookAds\Object;
26 26
 
27 27
 use FacebookAds\Http\RequestInterface;
28
-use FacebookAds\Object\Values\CustomAudienceTypes;
29 28
 use FacebookAds\Object\Fields\CustomAudienceFields;
30 29
 use FacebookAds\Object\CustomAudienceNormalizers\HashNormalizer;
31
-use FacebookAds\Object\Fields\CustomAudienceMultikeySchemaFields;
32 30
 
33 31
 class CustomAudienceMultiKey extends AbstractCrudObject {
34 32
 
Please login to merge, or discard this patch.
src/FacebookAds/ApiRequest.php 2 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace FacebookAds;
4 4
 
5 5
 use FacebookAds\Cursor;
6
-use FacebookAds\AbstractObject;
7 6
 
8 7
 class ApiRequest {
9 8
   protected $api;
Please login to merge, or discard this patch.
src/FacebookAds/Object/AbstractCrudObject.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     return $instance;
100 100
   }
101 101
   /**
102
-   * @return string|null
102
+   * @return string
103 103
    */
104 104
   public function getParentId() {
105 105
     return $this->parentId;
@@ -331,7 +331,7 @@  discard block
 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.
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.