mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-30 23:04:34 -04:00
apply php-cs-fixeR
This commit is contained in:
parent
14efcc77e6
commit
603f7baa58
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use \Illuminate\Support\Facades\DB;
|
||||||
use App\Http\Requests\Setup\CheckDatabaseRequest;
|
use App\Http\Requests\Setup\CheckDatabaseRequest;
|
||||||
use App\Http\Requests\Setup\CheckMailRequest;
|
use App\Http\Requests\Setup\CheckMailRequest;
|
||||||
use App\Http\Requests\Setup\StoreSetupRequest;
|
use App\Http\Requests\Setup\StoreSetupRequest;
|
||||||
@ -22,7 +23,6 @@ use App\Utils\CurlUtils;
|
|||||||
use App\Utils\SystemHealth;
|
use App\Utils\SystemHealth;
|
||||||
use App\Utils\Traits\AppSetup;
|
use App\Utils\Traits\AppSetup;
|
||||||
use Beganovich\Snappdf\Snappdf;
|
use Beganovich\Snappdf\Snappdf;
|
||||||
use \Illuminate\Support\Facades\DB;
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Illuminate\Contracts\Foundation\Application;
|
use Illuminate\Contracts\Foundation\Application;
|
||||||
use Illuminate\Contracts\Routing\ResponseFactory;
|
use Illuminate\Contracts\Routing\ResponseFactory;
|
||||||
|
@ -18,8 +18,8 @@ use App\Utils\Traits\MakesHash;
|
|||||||
|
|
||||||
class ActionInvoiceRequest extends Request
|
class ActionInvoiceRequest extends Request
|
||||||
{
|
{
|
||||||
use MakesHash;
|
use MakesHash;
|
||||||
use ActionsInvoice;
|
use ActionsInvoice;
|
||||||
/**
|
/**
|
||||||
* Determine if the user is authorized to make this request.
|
* Determine if the user is authorized to make this request.
|
||||||
*
|
*
|
||||||
@ -36,31 +36,28 @@ class ActionInvoiceRequest extends Request
|
|||||||
|
|
||||||
public function rules()
|
public function rules()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'action' => 'required'
|
'action' => 'required'
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function prepareForValidation()
|
protected function prepareForValidation()
|
||||||
{
|
{
|
||||||
$input = $this->all();
|
$input = $this->all();
|
||||||
|
|
||||||
$this->invoice = Invoice::find($this->decodePrimary($invoice_id));
|
$this->invoice = Invoice::find($this->decodePrimary($invoice_id));
|
||||||
|
|
||||||
if(!array_key_exists('action', $input)) {
|
if (!array_key_exists('action', $input)) {
|
||||||
$this->error_msg = 'Action is a required field';
|
$this->error_msg = 'Action is a required field';
|
||||||
}
|
} elseif (!$this->invoiceDeletable($this->invoice)) {
|
||||||
elseif(!$this->invoiceDeletable($this->invoice)){
|
unset($input['action']);
|
||||||
unset($input['action']);
|
$this->error_msg = 'This invoice cannot be deleted';
|
||||||
$this->error_msg = 'This invoice cannot be deleted';
|
} elseif (!$this->invoiceCancellable($this->invoice)) {
|
||||||
}
|
unset($input['action']);
|
||||||
elseif(!$this->invoiceCancellable($this->invoice)) {
|
$this->error_msg = 'This invoice cannot be cancelled';
|
||||||
unset($input['action']);
|
} elseif (!$this->invoiceReversable($this->invoice)) {
|
||||||
$this->error_msg = 'This invoice cannot be cancelled';
|
unset($input['action']);
|
||||||
}
|
$this->error_msg = 'This invoice cannot be reversed';
|
||||||
else if(!$this->invoiceReversable($this->invoice)) {
|
|
||||||
unset($input['action']);
|
|
||||||
$this->error_msg = 'This invoice cannot be reversed';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->replace($input);
|
$this->replace($input);
|
||||||
@ -68,13 +65,8 @@ class ActionInvoiceRequest extends Request
|
|||||||
|
|
||||||
public function messages()
|
public function messages()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'action' => $this->error_msg,
|
'action' => $this->error_msg,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@ use App\Libraries\MultiDB;
|
|||||||
use App\Models\RecurringInvoice;
|
use App\Models\RecurringInvoice;
|
||||||
use Illuminate\Foundation\Bus\Dispatchable;
|
use Illuminate\Foundation\Bus\Dispatchable;
|
||||||
use Illuminate\Support\Carbon;
|
use Illuminate\Support\Carbon;
|
||||||
use Illuminate\Support\Facades\Log;
|
|
||||||
|
|
||||||
class RecurringInvoicesCron
|
class RecurringInvoicesCron
|
||||||
{
|
{
|
||||||
|
@ -464,19 +464,16 @@ class Import implements ShouldQueue
|
|||||||
$client->fresh();
|
$client->fresh();
|
||||||
$new_contacts = $client->contacts;
|
$new_contacts = $client->contacts;
|
||||||
|
|
||||||
foreach($resource['contacts'] as $key => $old_contact)
|
foreach ($resource['contacts'] as $key => $old_contact) {
|
||||||
{
|
|
||||||
$contact_match = $new_contacts->where('contact_key', $old_contact['contact_key'])->first();
|
$contact_match = $new_contacts->where('contact_key', $old_contact['contact_key'])->first();
|
||||||
|
|
||||||
if($contact_match)
|
if ($contact_match) {
|
||||||
{
|
|
||||||
$this->ids['client_contacts']['client_contacts_'.$old_contact['id']] = [
|
$this->ids['client_contacts']['client_contacts_'.$old_contact['id']] = [
|
||||||
'old' => $old_contact['id'],
|
'old' => $old_contact['id'],
|
||||||
'new' => $contact_match->id,
|
'new' => $contact_match->id,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$key = "clients_{$resource['id']}";
|
$key = "clients_{$resource['id']}";
|
||||||
@ -629,16 +626,12 @@ class Import implements ShouldQueue
|
|||||||
|
|
||||||
unset($modified['id']);
|
unset($modified['id']);
|
||||||
|
|
||||||
if(array_key_exists('invitations', $resource))
|
if (array_key_exists('invitations', $resource)) {
|
||||||
{
|
foreach ($resource['invitations'] as $key => $invite) {
|
||||||
foreach($resource['invitations'] as $key => $invite)
|
|
||||||
{
|
|
||||||
|
|
||||||
$resource['invitations'][$key]['client_contact_id'] = $this->transformId('client_contacts', $invite['client_contact_id']);
|
$resource['invitations'][$key]['client_contact_id'] = $this->transformId('client_contacts', $invite['client_contact_id']);
|
||||||
$resource['invitations'][$key]['user_id'] = $modified['user_id'];
|
$resource['invitations'][$key]['user_id'] = $modified['user_id'];
|
||||||
$resource['invitations'][$key]['company_id'] = $this->company->id;
|
$resource['invitations'][$key]['company_id'] = $this->company->id;
|
||||||
unset($resource['invitations'][$key]['recurring_invoice_id']);
|
unset($resource['invitations'][$key]['recurring_invoice_id']);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$modified['invitations'] = $resource['invitations'];
|
$modified['invitations'] = $resource['invitations'];
|
||||||
@ -694,19 +687,15 @@ class Import implements ShouldQueue
|
|||||||
|
|
||||||
unset($modified['id']);
|
unset($modified['id']);
|
||||||
|
|
||||||
if(array_key_exists('invitations', $resource))
|
if (array_key_exists('invitations', $resource)) {
|
||||||
{
|
foreach ($resource['invitations'] as $key => $invite) {
|
||||||
foreach($resource['invitations'] as $key => $invite)
|
|
||||||
{
|
|
||||||
$resource['invitations'][$key]['client_contact_id'] = $this->transformId('client_contacts', $invite['client_contact_id']);
|
$resource['invitations'][$key]['client_contact_id'] = $this->transformId('client_contacts', $invite['client_contact_id']);
|
||||||
$resource['invitations'][$key]['user_id'] = $modified['user_id'];
|
$resource['invitations'][$key]['user_id'] = $modified['user_id'];
|
||||||
$resource['invitations'][$key]['company_id'] = $this->company->id;
|
$resource['invitations'][$key]['company_id'] = $this->company->id;
|
||||||
unset($resource['invitations'][$key]['invoice_id']);
|
unset($resource['invitations'][$key]['invoice_id']);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$modified['invitations'] = $resource['invitations'];
|
$modified['invitations'] = $resource['invitations'];
|
||||||
|
|
||||||
}
|
}
|
||||||
$invoice = $invoice_repository->save(
|
$invoice = $invoice_repository->save(
|
||||||
$modified,
|
$modified,
|
||||||
@ -877,7 +866,7 @@ class Import implements ShouldQueue
|
|||||||
PaymentFactory::create($this->company->id, $modified['user_id'])
|
PaymentFactory::create($this->company->id, $modified['user_id'])
|
||||||
);
|
);
|
||||||
|
|
||||||
if($resource['company_gateway_id'] != 'NULL' && $resource['company_gateway_id'] != NULL){
|
if ($resource['company_gateway_id'] != 'NULL' && $resource['company_gateway_id'] != null) {
|
||||||
$payment->company_gateway_id = $this->transformId('company_gateways', $resource['company_gateway_id']);
|
$payment->company_gateway_id = $this->transformId('company_gateways', $resource['company_gateway_id']);
|
||||||
$payment->save();
|
$payment->save();
|
||||||
}
|
}
|
||||||
|
@ -20,13 +20,14 @@ class ClientContactPresenter extends EntityPresenter
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function name()
|
public function name()
|
||||||
{
|
{
|
||||||
$contact_name = $this->entity->first_name.' '.$this->entity->last_name;
|
$contact_name = $this->entity->first_name.' '.$this->entity->last_name;
|
||||||
|
|
||||||
if(strlen($contact_name) > 1)
|
if (strlen($contact_name) > 1) {
|
||||||
return $contact_name;
|
return $contact_name;
|
||||||
|
}
|
||||||
|
|
||||||
return $this->entity->client->present()->name();
|
return $this->entity->client->present()->name();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function first_name()
|
public function first_name()
|
||||||
|
@ -376,8 +376,9 @@ class RecurringInvoice extends BaseModel
|
|||||||
|
|
||||||
$data = [];
|
$data = [];
|
||||||
|
|
||||||
if(!Carbon::parse($this->next_send_date))
|
if (!Carbon::parse($this->next_send_date)) {
|
||||||
return $data;
|
return $data;
|
||||||
|
}
|
||||||
|
|
||||||
$next_send_date = Carbon::parse($this->next_send_date)->copy();
|
$next_send_date = Carbon::parse($this->next_send_date)->copy();
|
||||||
|
|
||||||
|
@ -123,8 +123,8 @@ use App\Listeners\Invoice\InvoiceArchivedActivity;
|
|||||||
use App\Listeners\Invoice\InvoiceCancelledActivity;
|
use App\Listeners\Invoice\InvoiceCancelledActivity;
|
||||||
use App\Listeners\Invoice\InvoiceDeletedActivity;
|
use App\Listeners\Invoice\InvoiceDeletedActivity;
|
||||||
use App\Listeners\Invoice\InvoiceEmailActivity;
|
use App\Listeners\Invoice\InvoiceEmailActivity;
|
||||||
use App\Listeners\Invoice\InvoiceEmailFailedActivity;
|
|
||||||
use App\Listeners\Invoice\InvoiceEmailedNotification;
|
use App\Listeners\Invoice\InvoiceEmailedNotification;
|
||||||
|
use App\Listeners\Invoice\InvoiceEmailFailedActivity;
|
||||||
use App\Listeners\Invoice\InvoicePaidActivity;
|
use App\Listeners\Invoice\InvoicePaidActivity;
|
||||||
use App\Listeners\Invoice\InvoiceReminderEmailActivity;
|
use App\Listeners\Invoice\InvoiceReminderEmailActivity;
|
||||||
use App\Listeners\Invoice\InvoiceRestoredActivity;
|
use App\Listeners\Invoice\InvoiceRestoredActivity;
|
||||||
@ -132,8 +132,8 @@ use App\Listeners\Invoice\InvoiceReversedActivity;
|
|||||||
use App\Listeners\Invoice\InvoiceViewedActivity;
|
use App\Listeners\Invoice\InvoiceViewedActivity;
|
||||||
use App\Listeners\Invoice\UpdateInvoiceActivity;
|
use App\Listeners\Invoice\UpdateInvoiceActivity;
|
||||||
use App\Listeners\Misc\InvitationViewedListener;
|
use App\Listeners\Misc\InvitationViewedListener;
|
||||||
use App\Listeners\Payment\PaymentEmailFailureActivity;
|
|
||||||
use App\Listeners\Payment\PaymentEmailedActivity;
|
use App\Listeners\Payment\PaymentEmailedActivity;
|
||||||
|
use App\Listeners\Payment\PaymentEmailFailureActivity;
|
||||||
use App\Listeners\Payment\PaymentNotification;
|
use App\Listeners\Payment\PaymentNotification;
|
||||||
use App\Listeners\Payment\PaymentRestoredActivity;
|
use App\Listeners\Payment\PaymentRestoredActivity;
|
||||||
use App\Listeners\Quote\QuoteApprovedActivity;
|
use App\Listeners\Quote\QuoteApprovedActivity;
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
namespace App\Providers;
|
namespace App\Providers;
|
||||||
|
|
||||||
use App\Models\RecurringInvoice;
|
|
||||||
use App\Utils\Traits\MakesHash;
|
use App\Utils\Traits\MakesHash;
|
||||||
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
@ -37,7 +36,6 @@ class RouteServiceProvider extends ServiceProvider
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
parent::boot();
|
parent::boot();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -92,11 +92,11 @@ class InvoiceMigrationRepository extends BaseRepository
|
|||||||
InvoiceInvitation::unguard();
|
InvoiceInvitation::unguard();
|
||||||
RecurringInvoiceInvitation::unguard();
|
RecurringInvoiceInvitation::unguard();
|
||||||
|
|
||||||
if($model instanceof RecurringInvoice)
|
if ($model instanceof RecurringInvoice) {
|
||||||
$lcfirst_resource_id = 'recurring_invoice_id';
|
$lcfirst_resource_id = 'recurring_invoice_id';
|
||||||
|
}
|
||||||
|
|
||||||
foreach($data['invitations'] as $invitation)
|
foreach ($data['invitations'] as $invitation) {
|
||||||
{
|
|
||||||
nlog($invitation);
|
nlog($invitation);
|
||||||
|
|
||||||
$new_invitation = $invitation_factory_class::create($model->company_id, $model->user_id);
|
$new_invitation = $invitation_factory_class::create($model->company_id, $model->user_id);
|
||||||
@ -107,35 +107,35 @@ class InvoiceMigrationRepository extends BaseRepository
|
|||||||
|
|
||||||
InvoiceInvitation::reguard();
|
InvoiceInvitation::reguard();
|
||||||
RecurringInvoiceInvitation::reguard();
|
RecurringInvoiceInvitation::reguard();
|
||||||
/*
|
/*
|
||||||
if (isset($data['invitations'])) {
|
if (isset($data['invitations'])) {
|
||||||
$invitations = collect($data['invitations']);
|
$invitations = collect($data['invitations']);
|
||||||
|
|
||||||
$model->invitations->pluck('key')->diff($invitations->pluck('key'))->each(function ($invitation) use ($resource) {
|
$model->invitations->pluck('key')->diff($invitations->pluck('key'))->each(function ($invitation) use ($resource) {
|
||||||
$this->getInvitation($invitation, $resource)->delete();
|
$this->getInvitation($invitation, $resource)->delete();
|
||||||
});
|
});
|
||||||
|
|
||||||
foreach ($data['invitations'] as $invitation) {
|
foreach ($data['invitations'] as $invitation) {
|
||||||
|
|
||||||
//if no invitations are present - create one.
|
//if no invitations are present - create one.
|
||||||
if (! $this->getInvitation($invitation, $resource)) {
|
if (! $this->getInvitation($invitation, $resource)) {
|
||||||
if (isset($invitation['id'])) {
|
if (isset($invitation['id'])) {
|
||||||
unset($invitation['id']);
|
unset($invitation['id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
//make sure we are creating an invite for a contact who belongs to the client only!
|
//make sure we are creating an invite for a contact who belongs to the client only!
|
||||||
$contact = ClientContact::find($invitation['client_contact_id']);
|
$contact = ClientContact::find($invitation['client_contact_id']);
|
||||||
|
|
||||||
if ($contact && $model->client_id == $contact->client_id) {
|
if ($contact && $model->client_id == $contact->client_id) {
|
||||||
$new_invitation = $invitation_factory_class::create($model->company_id, $model->user_id);
|
$new_invitation = $invitation_factory_class::create($model->company_id, $model->user_id);
|
||||||
$new_invitation->{$lcfirst_resource_id} = $model->id;
|
$new_invitation->{$lcfirst_resource_id} = $model->id;
|
||||||
$new_invitation->client_contact_id = $contact->id;
|
$new_invitation->client_contact_id = $contact->id;
|
||||||
$new_invitation->save();
|
$new_invitation->save();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
*/
|
||||||
}
|
|
||||||
*/
|
|
||||||
$model->load('invitations');
|
$model->load('invitations');
|
||||||
|
|
||||||
/* If no invitations have been created, this is our fail safe to maintain state*/
|
/* If no invitations have been created, this is our fail safe to maintain state*/
|
||||||
|
@ -63,8 +63,7 @@ class UserRepository extends BaseRepository
|
|||||||
$user->fill($details);
|
$user->fill($details);
|
||||||
|
|
||||||
//allow users to change only their passwords - not others!
|
//allow users to change only their passwords - not others!
|
||||||
if(auth()->user()->id == $user->id && array_key_exists('password', $data) && isset($data['password']))
|
if (auth()->user()->id == $user->id && array_key_exists('password', $data) && isset($data['password'])) {
|
||||||
{
|
|
||||||
$user->password = Hash::make($data['password']);
|
$user->password = Hash::make($data['password']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -211,10 +211,10 @@ class CompanyTransformer extends EntityTransformer
|
|||||||
{
|
{
|
||||||
$transformer = new UserTransformer($this->serializer);
|
$transformer = new UserTransformer($this->serializer);
|
||||||
|
|
||||||
$users = $company->users->map(function ($user) use ($company){
|
$users = $company->users->map(function ($user) use ($company) {
|
||||||
$user->company_id = $company->id;
|
$user->company_id = $company->id;
|
||||||
return $user;
|
return $user;
|
||||||
});
|
});
|
||||||
|
|
||||||
return $this->includeCollection($users, $transformer, User::class);
|
return $this->includeCollection($users, $transformer, User::class);
|
||||||
}
|
}
|
||||||
@ -351,4 +351,4 @@ class CompanyTransformer extends EntityTransformer
|
|||||||
|
|
||||||
return $this->includeCollection($company->system_logs, $transformer, SystemLog::class);
|
return $this->includeCollection($company->system_logs, $transformer, SystemLog::class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -629,7 +629,6 @@ trait GeneratesCounter
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($entity->client || ($entity instanceof Client)) {
|
if ($entity->client || ($entity instanceof Client)) {
|
||||||
|
|
||||||
$client = $entity->client ?: $entity;
|
$client = $entity->client ?: $entity;
|
||||||
|
|
||||||
$search[] = '{$client_custom1}';
|
$search[] = '{$client_custom1}';
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
use App\Models\Currency;
|
use App\Models\Currency;
|
||||||
use App\Utils\Traits\AppSetup;
|
use App\Utils\Traits\AppSetup;
|
||||||
use Illuminate\Database\Migrations\Migration;
|
use Illuminate\Database\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
|
||||||
use Illuminate\Support\Facades\Schema;
|
|
||||||
|
|
||||||
class UpdateCanadianDollarSymbol extends Migration
|
class UpdateCanadianDollarSymbol extends Migration
|
||||||
{
|
{
|
||||||
@ -18,8 +16,9 @@ class UpdateCanadianDollarSymbol extends Migration
|
|||||||
{
|
{
|
||||||
$currency = Currency::find(9);
|
$currency = Currency::find(9);
|
||||||
|
|
||||||
if($currency)
|
if ($currency) {
|
||||||
$currency->update(['symbol' => '$']);
|
$currency->update(['symbol' => '$']);
|
||||||
|
}
|
||||||
|
|
||||||
$this->buildCache(true);
|
$this->buildCache(true);
|
||||||
}
|
}
|
||||||
|
@ -37,50 +37,49 @@ class PreviewTest extends TestCase
|
|||||||
|
|
||||||
public function testPreviewRoute()
|
public function testPreviewRoute()
|
||||||
{
|
{
|
||||||
$data = $this->getData();
|
$data = $this->getData();
|
||||||
|
|
||||||
$response = $this->withHeaders([
|
$response = $this->withHeaders([
|
||||||
'X-API-SECRET' => config('ninja.api_secret'),
|
'X-API-SECRET' => config('ninja.api_secret'),
|
||||||
'X-API-TOKEN' => $this->token,
|
'X-API-TOKEN' => $this->token,
|
||||||
])->post('/api/v1/preview/', $data);
|
])->post('/api/v1/preview/', $data);
|
||||||
|
|
||||||
$response->assertStatus(200);
|
$response->assertStatus(200);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testPreviewHtmlResponse()
|
public function testPreviewHtmlResponse()
|
||||||
{
|
{
|
||||||
$data = $this->getData();
|
$data = $this->getData();
|
||||||
|
|
||||||
$response = $this->withHeaders([
|
$response = $this->withHeaders([
|
||||||
'X-API-SECRET' => config('ninja.api_secret'),
|
'X-API-SECRET' => config('ninja.api_secret'),
|
||||||
'X-API-TOKEN' => $this->token,
|
'X-API-TOKEN' => $this->token,
|
||||||
])->post('/api/v1/preview?html=true', $data);
|
])->post('/api/v1/preview?html=true', $data);
|
||||||
|
|
||||||
$response->assertStatus(200);
|
$response->assertStatus(200);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private function getData()
|
private function getData()
|
||||||
{
|
{
|
||||||
$data =
|
$data =
|
||||||
[
|
[
|
||||||
'entity_type' => 'invoice',
|
'entity_type' => 'invoice',
|
||||||
'entity_id' => '',
|
'entity_id' => '',
|
||||||
'design' => [
|
'design' => [
|
||||||
'name' => '',
|
'name' => '',
|
||||||
'design' => [
|
'design' => [
|
||||||
'includes' => '</style>',
|
'includes' => '</style>',
|
||||||
'header' => '<div id="header"></div>',
|
'header' => '<div id="header"></div>',
|
||||||
'body' => '<div id="body">',
|
'body' => '<div id="body">',
|
||||||
'product' => '',
|
'product' => '',
|
||||||
'task' => '',
|
'task' => '',
|
||||||
'footer' => '<div id="footer">$entity_footer</div>'
|
'footer' => '<div id="footer">$entity_footer</div>'
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'is_custom' => 1,
|
'is_custom' => 1,
|
||||||
];
|
];
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user