Completed
Pull Request — master (#95)
by
unknown
04:48
created
src/InternalFunctionality/PostOptionsConstructor.php 2 patches
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -126,9 +126,6 @@
 block discarded – undo
126 126
      * Builds up a multipart form-like array for Guzzle
127 127
      *
128 128
      * @param array $data The original object in array form
129
-     * @param string $fileKeyName A file handler will be sent instead of a string, state here which field it is
130
-     * @param resource $stream The actual file handler
131
-     * @param string $filename
132 129
      * @return array Returns the actual formdata to be sent
133 130
      */
134 131
     public function constructMultipartOptions(array $data, array $multipart_data): array
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,13 +93,13 @@  discard block
 block discarded – undo
93 93
                       'filename' => $value->path,
94 94
                       'stream' => $value->getStream()
95 95
                   ];
96
-                }elseif($value instanceof Photo){
96
+                } elseif($value instanceof Photo){
97 97
                    $return[$key] = [
98 98
                       'id' => $key,
99 99
                       'filename' => $value->media->path,
100 100
                       'stream' => $value->media->getStream()
101 101
                   ];
102
-                }elseif((is_array($value) || $value instanceof Countable)){
102
+                } elseif((is_array($value) || $value instanceof Countable)){
103 103
                   foreach ($value as $kk => $vv){
104 104
                   if($vv instanceof InputFile){
105 105
                    $return[$kk] = [
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                       'filename' => $vv->path,
108 108
                       'stream' => $vv->getStream()
109 109
                   ];
110
-                }elseif($vv instanceof Photo){
110
+                } elseif($vv instanceof Photo){
111 111
                     $return[$kk] = [
112 112
                       'id' => $kk,
113 113
                       'filename' => $vv->media->path,
Please login to merge, or discard this patch.