@@ 149-162 (lines=14) @@ | ||
146 | * |
|
147 | * @return array |
|
148 | */ |
|
149 | protected function getData() |
|
150 | { |
|
151 | if ($this->argument('user')) { |
|
152 | return [ |
|
153 | 'name' => $this->argument('name'), |
|
154 | 'user' => $this->argument('user'), |
|
155 | 'password' => $this->argument('password') |
|
156 | ]; |
|
157 | } else { |
|
158 | return [ |
|
159 | 'name' => $this->argument('name') |
|
160 | ]; |
|
161 | } |
|
162 | } |
|
163 | ||
164 | /** |
|
165 | * Obtain API URL endpoint. |
@@ 160-173 (lines=14) @@ | ||
157 | * |
|
158 | * @return array |
|
159 | */ |
|
160 | protected function getData() |
|
161 | { |
|
162 | if ($this->argument('user')) { |
|
163 | return [ |
|
164 | 'name' => $this->argument('name'), |
|
165 | 'user' => $this->argument('user'), |
|
166 | 'password' => $this->argument('password') |
|
167 | ]; |
|
168 | } else { |
|
169 | return [ |
|
170 | 'name' => $this->argument('name') |
|
171 | ]; |
|
172 | } |
|
173 | } |
|
174 | ||
175 | /** |
|
176 | * Obtain API URL endpoint. |