| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function __construct() |
||
| 23 | { |
||
| 24 | $this->client = new Client( |
||
| 25 | config('woocommerce.store_url'), |
||
| 26 | config('woocommerce.consumer_key'), |
||
| 27 | config('woocommerce.consumer_secret'), |
||
| 28 | [ |
||
| 29 | 'version' => 'wc/'.config('woocommerce.api_version'), |
||
| 30 | 'wp_api' => config('woocommerce.wp_api_integration'), |
||
| 31 | 'verify_ssl' => config('woocommerce.verify_ssl'), |
||
| 32 | 'query_string_auth' => config('woocommerce.query_string_auth'), |
||
| 33 | 'timeout' => config('woocommerce.timeout'), |
||
| 34 | ] |
||
| 35 | ); |
||
| 36 | } |
||
| 37 | } |
||
| 38 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.