| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function handle() |
||
| 40 | { |
||
| 41 | $action = $this->argument('action'); |
||
| 42 | $client_id = config('laravel-cafebazaar.client_id'); |
||
| 43 | $redirect_uri = config('laravel-cafebazaar.redi$redirect_uri'); |
||
| 44 | switch($action) { |
||
| 45 | case 'code': |
||
| 46 | echo "Visit this and grant access"; |
||
| 47 | echo "https://pardakht.cafebazaar.ir/devapi/v2/auth/authorize/?response_type=code&access_type=offline&redirect_uri=$redirect_uri&client_id=$client_id\n"; |
||
| 48 | break; |
||
| 49 | } |
||
| 50 | } |
||
| 51 | } |
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.