Test Failed
Push — master ( 6cd0f3...dc4572 )
by Ryosuke
03:04
created
src/Traits/UploaderTrait.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -9,10 +9,20 @@  discard block
 block discarded – undo
9 9
 
10 10
 trait UploaderTrait
11 11
 {
12
+    /**
13
+     * @param string $endpoint
14
+     */
12 15
     abstract public function getAsync($endpoint, array $params = [], $return_response_object = false);
16
+
17
+    /**
18
+     * @param string $endpoint
19
+     */
13 20
     abstract public function postAsync($endpoint, array $params = [], $return_response_object = false);
14 21
     abstract public function postMultipartAsync($endpoint, array $params = [], $return_response_object = false);
15 22
 
23
+    /**
24
+     * @param integer $value
25
+     */
16 26
     protected static function validateChunkSize($value)
17 27
     {
18 28
         if (false === $value = filter_var($value, FILTER_VALIDATE_INT)) {
@@ -32,6 +42,9 @@  discard block
 block discarded – undo
32 42
         return $type;
33 43
     }
34 44
 
45
+    /**
46
+     * @param string $media_category
47
+     */
35 48
     public function uploadAsync(\SplFileObject $file, $media_category = null, callable $on_uploading = null, callable $on_processing = null, $chunk_size = 300000)
36 49
     {
37 50
         $response = (yield $this->uploadStep1($file, $media_category, $chunk_size, $on_uploading));
Please login to merge, or discard this patch.