| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function getUser($userName) |
||
| 28 | { |
||
| 29 | //add settings |
||
| 30 | $this->ModelSettings(); |
||
| 31 | |||
| 32 | $userName = '@'.str_replace('@', '', $userName); |
||
| 33 | |||
| 34 | if (! $userName) { |
||
| 35 | return [ |
||
| 36 | 'success' => false, |
||
| 37 | 'result' => null, |
||
| 38 | 'info' => __('tiktok::tiktok.error_username'), |
||
| 39 | ]; |
||
| 40 | } |
||
| 41 | |||
| 42 | $response = $this->getResponse($this->url.$userName); |
||
| 43 | |||
| 44 | return $response; |
||
| 45 | } |
||
| 74 |