mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 08:54:34 -04:00
Merge pull request #4452 from beganovich/v5-4450
(v5) Fix #4450 & apply php-cs-fixer
This commit is contained in:
commit
a67de4ad7e
@ -81,11 +81,13 @@ class SetupController extends Controller
|
||||
}
|
||||
|
||||
try {
|
||||
if ($request->mail_driver != 'log') {
|
||||
$smtp = SystemHealth::testMailServer($request);
|
||||
|
||||
if ($smtp['success'] == false) {
|
||||
throw new \Exception($smtp['message']);
|
||||
}
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
return response([
|
||||
'message' => 'Oops, connection to mail server was not successful.',
|
||||
|
@ -34,8 +34,9 @@ class QueryLogging
|
||||
$timeStart = microtime(true);
|
||||
|
||||
// Enable query logging for development
|
||||
if (config('ninja.app_env') == 'production')
|
||||
if (config('ninja.app_env') == 'production') {
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
DB::enableQueryLog();
|
||||
|
||||
|
@ -14,6 +14,7 @@ namespace App\Jobs\Ninja;
|
||||
use App\DataMapper\InvoiceItem;
|
||||
use App\Events\Invoice\InvoiceWasEmailed;
|
||||
use App\Jobs\Entity\EmailEntity;
|
||||
use App\Jobs\Util\WebHookHandler;
|
||||
use App\Libraries\MultiDB;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\Webhook;
|
||||
@ -26,7 +27,6 @@ use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Support\Carbon;
|
||||
use App\Jobs\Util\WebHookHandler;
|
||||
|
||||
class SendReminders implements ShouldQueue
|
||||
{
|
||||
|
@ -602,14 +602,11 @@ trait GeneratesCounter
|
||||
}
|
||||
|
||||
if ($entity instanceof Vendor) {
|
||||
|
||||
$search[] = '{$vendor_id_number}';
|
||||
$replace[] = $entity->id_number;
|
||||
|
||||
}
|
||||
|
||||
if ($entity instanceof Expense) {
|
||||
|
||||
if ($entity->vendor) {
|
||||
$search[] = '{$vendor_id_number}';
|
||||
$replace[] = $entity->vendor->id_number;
|
||||
|
Loading…
x
Reference in New Issue
Block a user