| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 50 | public function qualityEnchance() |
||
| 51 | { |
||
| 52 | $this->requestToken(); |
||
| 53 | $this->_result = Json::decode(Http::post('https://aip.baidubce.com/rest/2.0/image-process/v1/image_quality_enhance', Arrays::some($this->_options, [ |
||
| 54 | 'image', |
||
| 55 | ]), [ |
||
| 56 | 'access_token' => $this->_token, |
||
| 57 | ])); |
||
| 58 | $this->_toArrayCall = function ($result) { |
||
| 59 | return I::get($result, 'image'); |
||
| 60 | }; |
||
| 61 | |||
| 62 | return $this; |
||
| 63 | } |
||
| 65 |