| Total Complexity | 2 |
| Total Lines | 67 |
| Duplicated Lines | 0 % |
| Coverage | 26.32% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class LangPush extends Command |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The name and signature of the console command. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $signature = 'lang:push'; |
||
| 16 | |||
| 17 | protected $apikey; |
||
| 18 | protected $project; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The console command description. |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $description = 'Send translations to lokalise.co'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Create a new command instance. |
||
| 29 | * |
||
| 30 | * @return void |
||
| 31 | */ |
||
| 32 | 52 | public function __construct() |
|
| 33 | { |
||
| 34 | 52 | parent::__construct(); |
|
| 35 | 52 | $this->apikey = env('LOCALISE_API_KEY'); |
|
| 36 | 52 | $this->project = env('LOCALISE_PROJECT'); |
|
| 37 | 52 | } |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Execute the console command. |
||
| 41 | * |
||
| 42 | * @return mixed |
||
| 43 | */ |
||
| 44 | public function handle() |
||
| 75 | |||
| 76 | } |
||
| 78 |