1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/app/Utils/Traits/AppSetup.php
2020-06-28 20:32:18 +10:00

30 lines
641 B
PHP

<?php
/**
* Invoice Ninja (https://invoiceninja.com)
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://opensource.org/licenses/AAL
*/
namespace App\Utils\Traits;
use App\Utils\Ninja;
use App\Utils\SystemHealth;
trait AppSetup
{
public function checkAppSetup()
{
if (Ninja::isNinja()) { // Is this the invoice ninja production system?
return Ninja::isNinja();
}
$check = SystemHealth::check();
return $check['system_health'] == "true";
}
}