Applied fixes from StyleCI
This commit is contained in:
parent
ce50408b7e
commit
cb83b43b76
|
|
@ -412,7 +412,6 @@ class EventAttendeesController extends MyBaseController
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$attendee->ticket->decrement('quantity_sold');
|
$attendee->ticket->decrement('quantity_sold');
|
||||||
$attendee->is_cancelled = 1;
|
$attendee->is_cancelled = 1;
|
||||||
$attendee->save();
|
$attendee->save();
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use App;
|
use App;
|
||||||
use App\Attendize\Utils;
|
|
||||||
use App\Commands\OrderTicketsCommand;
|
use App\Commands\OrderTicketsCommand;
|
||||||
use App\Models\Affiliate;
|
use App\Models\Affiliate;
|
||||||
use App\Models\Attendee;
|
use App\Models\Attendee;
|
||||||
|
|
@ -18,6 +17,7 @@ use Cookie;
|
||||||
use DB;
|
use DB;
|
||||||
use Input;
|
use Input;
|
||||||
use Log;
|
use Log;
|
||||||
|
use Omnipay;
|
||||||
use PDF;
|
use PDF;
|
||||||
use Redirect;
|
use Redirect;
|
||||||
use Request;
|
use Request;
|
||||||
|
|
@ -25,9 +25,6 @@ use Response;
|
||||||
use Session;
|
use Session;
|
||||||
use Validator;
|
use Validator;
|
||||||
use View;
|
use View;
|
||||||
use Omnipay;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class EventCheckoutController extends Controller
|
class EventCheckoutController extends Controller
|
||||||
{
|
{
|
||||||
|
|
@ -247,7 +244,6 @@ class EventCheckoutController extends Controller
|
||||||
* Begin payment attempt before creating the attendees etc.
|
* Begin payment attempt before creating the attendees etc.
|
||||||
* */
|
* */
|
||||||
if ($ticket_order['order_requires_payment']) {
|
if ($ticket_order['order_requires_payment']) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$error = false;
|
$error = false;
|
||||||
$token = Input::get('stripeToken');
|
$token = Input::get('stripeToken');
|
||||||
|
|
@ -255,7 +251,7 @@ class EventCheckoutController extends Controller
|
||||||
$gateway = Omnipay::gateway('stripe');
|
$gateway = Omnipay::gateway('stripe');
|
||||||
|
|
||||||
$gateway->initialize([
|
$gateway->initialize([
|
||||||
'apiKey' => $event->account->stripe_api_key
|
'apiKey' => $event->account->stripe_api_key,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$transaction = $gateway->purchase([
|
$transaction = $gateway->purchase([
|
||||||
|
|
@ -263,12 +259,11 @@ class EventCheckoutController extends Controller
|
||||||
'currency' => $event->currency->code,
|
'currency' => $event->currency->code,
|
||||||
'description' => Input::get('order_email'),
|
'description' => Input::get('order_email'),
|
||||||
'description' => 'Order for customer: '.Input::get('order_email'),
|
'description' => 'Order for customer: '.Input::get('order_email'),
|
||||||
'token' => $token
|
'token' => $token,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$response = $transaction->send();
|
$response = $transaction->send();
|
||||||
|
|
||||||
|
|
||||||
if ($response->isSuccessful()) {
|
if ($response->isSuccessful()) {
|
||||||
$order->transaction_id = $response->getTransactionReference();
|
$order->transaction_id = $response->getTransactionReference();
|
||||||
} elseif ($response->isRedirect()) {
|
} elseif ($response->isRedirect()) {
|
||||||
|
|
@ -280,7 +275,6 @@ class EventCheckoutController extends Controller
|
||||||
'message' => $response->getMessage(),
|
'message' => $response->getMessage(),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (\Exeption $e) {
|
} catch (\Exeption $e) {
|
||||||
Log::error($e);
|
Log::error($e);
|
||||||
$error = 'Sorry, there was an error processing your payment. Please try again.';
|
$error = 'Sorry, there was an error processing your payment. Please try again.';
|
||||||
|
|
@ -474,11 +468,11 @@ class EventCheckoutController extends Controller
|
||||||
return View::make('Public.ViewEvent.Partials.PDFTicket', $data);
|
return View::make('Public.ViewEvent.Partials.PDFTicket', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handleStripePayment() {
|
public function handleStripePayment()
|
||||||
|
{
|
||||||
}
|
|
||||||
public function handlePaypalPayment() {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function handlePaypalPayment()
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,14 +7,13 @@ use App\Models\Event;
|
||||||
use App\Models\Order;
|
use App\Models\Order;
|
||||||
use DB;
|
use DB;
|
||||||
use Excel;
|
use Excel;
|
||||||
use Exception;
|
|
||||||
use Input;
|
use Input;
|
||||||
use Log;
|
use Log;
|
||||||
use Mail;
|
use Mail;
|
||||||
|
use Omnipay;
|
||||||
use Response;
|
use Response;
|
||||||
use Validator;
|
use Validator;
|
||||||
use View;
|
use View;
|
||||||
use Omnipay;
|
|
||||||
|
|
||||||
class EventOrdersController extends MyBaseController
|
class EventOrdersController extends MyBaseController
|
||||||
{
|
{
|
||||||
|
|
@ -129,13 +128,12 @@ class EventOrdersController extends MyBaseController
|
||||||
$error_message = 'The maximum amount you can refund is '.(money($order->organiser_amount - $order->amount_refunded, $order->event->currency->code));
|
$error_message = 'The maximum amount you can refund is '.(money($order->organiser_amount - $order->amount_refunded, $order->event->currency->code));
|
||||||
}
|
}
|
||||||
if (!$error_message) {
|
if (!$error_message) {
|
||||||
# @todo - remove the code repetition here
|
// @todo - remove the code repetition here
|
||||||
try {
|
try {
|
||||||
|
|
||||||
$gateway = Omnipay::gateway('stripe');
|
$gateway = Omnipay::gateway('stripe');
|
||||||
|
|
||||||
$gateway->initialize([
|
$gateway->initialize([
|
||||||
'apiKey' => $order->account->stripe_api_key
|
'apiKey' => $order->account->stripe_api_key,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if ($refund_type === 'full') { /* Full refund */
|
if ($refund_type === 'full') { /* Full refund */
|
||||||
|
|
@ -145,7 +143,7 @@ class EventOrdersController extends MyBaseController
|
||||||
$request = $gateway->refund([
|
$request = $gateway->refund([
|
||||||
'transactionReference' => $order->transaction_id,
|
'transactionReference' => $order->transaction_id,
|
||||||
'amount' => $refund_amount,
|
'amount' => $refund_amount,
|
||||||
'refundApplicationFee' => floatval($order->booking_fee) > 0 ? true : false
|
'refundApplicationFee' => floatval($order->booking_fee) > 0 ? true : false,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$response = $request->send();
|
$response = $request->send();
|
||||||
|
|
@ -160,8 +158,6 @@ class EventOrdersController extends MyBaseController
|
||||||
} else {
|
} else {
|
||||||
$error_message = $response->getMessage();
|
$error_message = $response->getMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} else { /* Partial refund */
|
} else { /* Partial refund */
|
||||||
|
|
||||||
$refund = $gateway->refund([
|
$refund = $gateway->refund([
|
||||||
|
|
@ -187,7 +183,6 @@ class EventOrdersController extends MyBaseController
|
||||||
} else {
|
} else {
|
||||||
$error_message = $response->getMessage();
|
$error_message = $response->getMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
$order->amount_refunded = round(($order->amount_refunded + $refund_amount), 2);
|
$order->amount_refunded = round(($order->amount_refunded + $refund_amount), 2);
|
||||||
$order->save();
|
$order->save();
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
return array(
|
return [
|
||||||
|
|
||||||
'debug' => false,
|
'debug' => false,
|
||||||
'binpath' => 'lib/',
|
'binpath' => 'lib/',
|
||||||
'binfile' => 'wkhtmltopdf-amd64',
|
'binfile' => 'wkhtmltopdf-amd64',
|
||||||
'output_mode' => 'I'
|
'output_mode' => 'I',
|
||||||
);
|
];
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@ return [
|
||||||
'fallback_organiser_logo_url' => '/assets/images/logo-100x100-lightBg.png',
|
'fallback_organiser_logo_url' => '/assets/images/logo-100x100-lightBg.png',
|
||||||
'cdn_url' => '',
|
'cdn_url' => '',
|
||||||
|
|
||||||
'max_tickets_per_person' => 30, #Depreciated
|
'max_tickets_per_person' => 30, //Depreciated
|
||||||
'checkout_timeout_after' => 8, #mintutes
|
'checkout_timeout_after' => 8, //mintutes
|
||||||
|
|
||||||
'ticket_status_sold_out' => 1,
|
'ticket_status_sold_out' => 1,
|
||||||
'ticket_status_after_sale_date' => 2,
|
'ticket_status_after_sale_date' => 2,
|
||||||
|
|
@ -34,14 +34,14 @@ return [
|
||||||
'order_partially_refunded' => 3,
|
'order_partially_refunded' => 3,
|
||||||
'order_cancelled' => 4,
|
'order_cancelled' => 4,
|
||||||
|
|
||||||
'default_timezone' => 30, #Europe/Dublin
|
'default_timezone' => 30, //Europe/Dublin
|
||||||
'default_currency' => 2, #Euro
|
'default_currency' => 2, //Euro
|
||||||
'default_date_format' => 'j M, Y',
|
'default_date_format' => 'j M, Y',
|
||||||
'default_date_picker_format' => 'd M, yyyy',
|
'default_date_picker_format' => 'd M, yyyy',
|
||||||
'default_datetime_format' => 'F j, Y, g:i a',
|
'default_datetime_format' => 'F j, Y, g:i a',
|
||||||
'default_query_cache' => 120, #Minutes
|
'default_query_cache' => 120, //Minutes
|
||||||
'default_locale' => 'en',
|
'default_locale' => 'en',
|
||||||
|
|
||||||
'cdn_url_user_assets' => '',
|
'cdn_url_user_assets' => '',
|
||||||
'cdn_url_static_assets' => ''
|
'cdn_url_static_assets' => '',
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'store_path' => public_path("/"),
|
'store_path' => public_path('/'),
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -29,11 +29,11 @@ return [
|
||||||
'stores' => [
|
'stores' => [
|
||||||
|
|
||||||
'apc' => [
|
'apc' => [
|
||||||
'driver' => 'apc'
|
'driver' => 'apc',
|
||||||
],
|
],
|
||||||
|
|
||||||
'array' => [
|
'array' => [
|
||||||
'driver' => 'array'
|
'driver' => 'array',
|
||||||
],
|
],
|
||||||
|
|
||||||
'database' => [
|
'database' => [
|
||||||
|
|
@ -51,7 +51,7 @@ return [
|
||||||
'driver' => 'memcached',
|
'driver' => 'memcached',
|
||||||
'servers' => [
|
'servers' => [
|
||||||
[
|
[
|
||||||
'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100
|
'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
return array(
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -26,12 +26,12 @@ return array(
|
||||||
| can also be used. For PDO, run the package migrations first.
|
| can also be used. For PDO, run the package migrations first.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
'storage' => array(
|
'storage' => [
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
'driver' => 'file', // redis, file, pdo
|
'driver' => 'file', // redis, file, pdo
|
||||||
'path' => storage_path().'/debugbar', // For file driver
|
'path' => storage_path().'/debugbar', // For file driver
|
||||||
'connection' => null, // Leave null for default connection (Redis/PDO)
|
'connection' => null, // Leave null for default connection (Redis/PDO)
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -70,7 +70,7 @@ return array(
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'collectors' => array(
|
'collectors' => [
|
||||||
'phpinfo' => true, // Php version
|
'phpinfo' => true, // Php version
|
||||||
'messages' => true, // Messages
|
'messages' => true, // Messages
|
||||||
'time' => true, // Time Datalogger
|
'time' => true, // Time Datalogger
|
||||||
|
|
@ -90,7 +90,7 @@ return array(
|
||||||
'config' => false, // Display config settings
|
'config' => false, // Display config settings
|
||||||
'auth' => false, // Display Laravel authentication status
|
'auth' => false, // Display Laravel authentication status
|
||||||
'session' => false, // Display session data in a separate tab
|
'session' => false, // Display session data in a separate tab
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -101,33 +101,33 @@ return array(
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'options' => array(
|
'options' => [
|
||||||
'auth' => array(
|
'auth' => [
|
||||||
'show_name' => false, // Also show the users name/email in the debugbar
|
'show_name' => false, // Also show the users name/email in the debugbar
|
||||||
),
|
],
|
||||||
'db' => array(
|
'db' => [
|
||||||
'with_params' => true, // Render SQL with the parameters substituted
|
'with_params' => true, // Render SQL with the parameters substituted
|
||||||
'timeline' => false, // Add the queries to the timeline
|
'timeline' => false, // Add the queries to the timeline
|
||||||
'backtrace' => false, // EXPERIMENTAL: Use a backtrace to find the origin of the query in your files.
|
'backtrace' => false, // EXPERIMENTAL: Use a backtrace to find the origin of the query in your files.
|
||||||
'explain' => array( // EXPERIMENTAL: Show EXPLAIN output on queries
|
'explain' => [ // EXPERIMENTAL: Show EXPLAIN output on queries
|
||||||
'enabled' => false,
|
'enabled' => false,
|
||||||
'types' => array('SELECT'), // array('SELECT', 'INSERT', 'UPDATE', 'DELETE'); for MySQL 5.6.3+
|
'types' => ['SELECT'], // array('SELECT', 'INSERT', 'UPDATE', 'DELETE'); for MySQL 5.6.3+
|
||||||
),
|
],
|
||||||
'hints' => true, // Show hints for common mistakes
|
'hints' => true, // Show hints for common mistakes
|
||||||
),
|
],
|
||||||
'mail' => array(
|
'mail' => [
|
||||||
'full_log' => false
|
'full_log' => false,
|
||||||
),
|
],
|
||||||
'views' => array(
|
'views' => [
|
||||||
'data' => false, //Note: Can slow down the application, because the data can be quite large..
|
'data' => false, //Note: Can slow down the application, because the data can be quite large..
|
||||||
),
|
],
|
||||||
'route' => array(
|
'route' => [
|
||||||
'label' => true // show complete route on bar
|
'label' => true, // show complete route on bar
|
||||||
),
|
],
|
||||||
'logs' => array(
|
'logs' => [
|
||||||
'file' => null
|
'file' => null,
|
||||||
),
|
],
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -142,4 +142,4 @@ return array(
|
||||||
|
|
||||||
'inject' => true,
|
'inject' => true,
|
||||||
|
|
||||||
);
|
];
|
||||||
|
|
|
||||||
234
config/excel.php
234
config/excel.php
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
return array(
|
return [
|
||||||
|
|
||||||
'cache' => array(
|
'cache' => [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -29,24 +29,24 @@ return array(
|
||||||
| Cache settings
|
| Cache settings
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'settings' => array(
|
'settings' => [
|
||||||
|
|
||||||
'memoryCacheSize' => '32MB',
|
'memoryCacheSize' => '32MB',
|
||||||
'cacheTime' => 600
|
'cacheTime' => 600,
|
||||||
|
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Memcache settings
|
| Memcache settings
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'memcache' => array(
|
'memcache' => [
|
||||||
|
|
||||||
'host' => 'localhost',
|
'host' => 'localhost',
|
||||||
'port' => 11211,
|
'port' => 11211,
|
||||||
|
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -54,10 +54,10 @@ return array(
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'dir' => storage_path('cache')
|
'dir' => storage_path('cache'),
|
||||||
),
|
],
|
||||||
|
|
||||||
'properties' => array(
|
'properties' => [
|
||||||
'creator' => 'Maatwebsite',
|
'creator' => 'Maatwebsite',
|
||||||
'lastModifiedBy' => 'Maatwebsite',
|
'lastModifiedBy' => 'Maatwebsite',
|
||||||
'title' => 'Spreadsheet',
|
'title' => 'Spreadsheet',
|
||||||
|
|
@ -67,35 +67,35 @@ return array(
|
||||||
'category' => 'Excel',
|
'category' => 'Excel',
|
||||||
'manager' => 'Maatwebsite',
|
'manager' => 'Maatwebsite',
|
||||||
'company' => 'Maatwebsite',
|
'company' => 'Maatwebsite',
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Sheets settings
|
| Sheets settings
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'sheets' => array(
|
'sheets' => [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Default page setup
|
| Default page setup
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'pageSetup' => array(
|
'pageSetup' => [
|
||||||
'orientation' => 'portrait',
|
'orientation' => 'portrait',
|
||||||
'paperSize' => '9',
|
'paperSize' => '9',
|
||||||
'scale' => '100',
|
'scale' => '100',
|
||||||
'fitToPage' => false,
|
'fitToPage' => false,
|
||||||
'fitToHeight' => true,
|
'fitToHeight' => true,
|
||||||
'fitToWidth' => true,
|
'fitToWidth' => true,
|
||||||
'columnsToRepeatAtLeft' => array('', ''),
|
'columnsToRepeatAtLeft' => ['', ''],
|
||||||
'rowsToRepeatAtTop' => array(0, 0),
|
'rowsToRepeatAtTop' => [0, 0],
|
||||||
'horizontalCentered' => false,
|
'horizontalCentered' => false,
|
||||||
'verticalCentered' => false,
|
'verticalCentered' => false,
|
||||||
'printArea' => null,
|
'printArea' => null,
|
||||||
'firstPageNumber' => null,
|
'firstPageNumber' => null,
|
||||||
),
|
],
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -108,7 +108,7 @@ return array(
|
||||||
|
|
||||||
'creator' => 'Maatwebsite',
|
'creator' => 'Maatwebsite',
|
||||||
|
|
||||||
'csv' => array(
|
'csv' => [
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Delimiter
|
| Delimiter
|
||||||
|
|
@ -134,10 +134,10 @@ return array(
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'line_ending' => "\r\n"
|
'line_ending' => "\r\n",
|
||||||
),
|
],
|
||||||
|
|
||||||
'export' => array(
|
'export' => [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -210,7 +210,7 @@ return array(
|
||||||
| Default sheet settings
|
| Default sheet settings
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'sheets' => array(
|
'sheets' => [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -245,8 +245,8 @@ return array(
|
||||||
| Apply strict comparison when testing for null values in the array
|
| Apply strict comparison when testing for null values in the array
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'strictNullComparison' => false
|
'strictNullComparison' => false,
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -254,7 +254,7 @@ return array(
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'store' => array(
|
'store' => [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -274,16 +274,16 @@ return array(
|
||||||
| Whether we want to return information about the stored file or not
|
| Whether we want to return information about the stored file or not
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
'returnInfo' => false
|
'returnInfo' => false,
|
||||||
|
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| PDF Settings
|
| PDF Settings
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'pdf' => array(
|
'pdf' => [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -298,48 +298,48 @@ return array(
|
||||||
| PDF Driver settings
|
| PDF Driver settings
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'drivers' => array(
|
'drivers' => [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| DomPDF settings
|
| DomPDF settings
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'DomPDF' => array(
|
'DomPDF' => [
|
||||||
'path' => base_path('vendor/dompdf/dompdf/')
|
'path' => base_path('vendor/dompdf/dompdf/'),
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| tcPDF settings
|
| tcPDF settings
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'tcPDF' => array(
|
'tcPDF' => [
|
||||||
'path' => base_path('vendor/tecnick.com/tcpdf/')
|
'path' => base_path('vendor/tecnick.com/tcpdf/'),
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| mPDF settings
|
| mPDF settings
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'mPDF' => array(
|
'mPDF' => [
|
||||||
'path' => base_path('vendor/mpdf/mpdf/')
|
'path' => base_path('vendor/mpdf/mpdf/'),
|
||||||
),
|
],
|
||||||
)
|
],
|
||||||
)
|
],
|
||||||
),
|
],
|
||||||
|
|
||||||
'filters' => array(
|
'filters' => [
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Register read filters
|
| Register read filters
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'registered' => array(
|
'registered' => [
|
||||||
'chunk' => 'Maatwebsite\Excel\Filters\ChunkReadFilter'
|
'chunk' => 'Maatwebsite\Excel\Filters\ChunkReadFilter',
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -347,10 +347,10 @@ return array(
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'enabled' => array()
|
'enabled' => [],
|
||||||
),
|
],
|
||||||
|
|
||||||
'import' => array(
|
'import' => [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -415,12 +415,12 @@ return array(
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'encoding' => array(
|
'encoding' => [
|
||||||
|
|
||||||
'input' => 'UTF-8',
|
'input' => 'UTF-8',
|
||||||
'output' => 'UTF-8'
|
'output' => 'UTF-8',
|
||||||
|
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -466,7 +466,7 @@ return array(
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'dates' => array(
|
'dates' => [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -490,15 +490,15 @@ return array(
|
||||||
| Date columns
|
| Date columns
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'columns' => array()
|
'columns' => [],
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Import sheets by config
|
| Import sheets by config
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'sheets' => array(
|
'sheets' => [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -509,16 +509,16 @@ return array(
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'test' => array(
|
'test' => [
|
||||||
|
|
||||||
'firstname' => 'A2'
|
'firstname' => 'A2',
|
||||||
|
|
||||||
)
|
],
|
||||||
|
|
||||||
)
|
],
|
||||||
),
|
],
|
||||||
|
|
||||||
'views' => array(
|
'views' => [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -529,155 +529,155 @@ return array(
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'styles' => array(
|
'styles' => [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Table headings
|
| Table headings
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'th' => array(
|
'th' => [
|
||||||
'font' => array(
|
'font' => [
|
||||||
'bold' => true,
|
'bold' => true,
|
||||||
'size' => 12,
|
'size' => 12,
|
||||||
)
|
],
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Strong tags
|
| Strong tags
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'strong' => array(
|
'strong' => [
|
||||||
'font' => array(
|
'font' => [
|
||||||
'bold' => true,
|
'bold' => true,
|
||||||
'size' => 12,
|
'size' => 12,
|
||||||
)
|
],
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Bold tags
|
| Bold tags
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'b' => array(
|
'b' => [
|
||||||
'font' => array(
|
'font' => [
|
||||||
'bold' => true,
|
'bold' => true,
|
||||||
'size' => 12,
|
'size' => 12,
|
||||||
)
|
],
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Italic tags
|
| Italic tags
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'i' => array(
|
'i' => [
|
||||||
'font' => array(
|
'font' => [
|
||||||
'italic' => true,
|
'italic' => true,
|
||||||
'size' => 12,
|
'size' => 12,
|
||||||
)
|
],
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Heading 1
|
| Heading 1
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'h1' => array(
|
'h1' => [
|
||||||
'font' => array(
|
'font' => [
|
||||||
'bold' => true,
|
'bold' => true,
|
||||||
'size' => 24,
|
'size' => 24,
|
||||||
)
|
],
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Heading 2
|
| Heading 2
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'h2' => array(
|
'h2' => [
|
||||||
'font' => array(
|
'font' => [
|
||||||
'bold' => true,
|
'bold' => true,
|
||||||
'size' => 18,
|
'size' => 18,
|
||||||
)
|
],
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Heading 2
|
| Heading 2
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'h3' => array(
|
'h3' => [
|
||||||
'font' => array(
|
'font' => [
|
||||||
'bold' => true,
|
'bold' => true,
|
||||||
'size' => 13.5,
|
'size' => 13.5,
|
||||||
)
|
],
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Heading 4
|
| Heading 4
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'h4' => array(
|
'h4' => [
|
||||||
'font' => array(
|
'font' => [
|
||||||
'bold' => true,
|
'bold' => true,
|
||||||
'size' => 12,
|
'size' => 12,
|
||||||
)
|
],
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Heading 5
|
| Heading 5
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'h5' => array(
|
'h5' => [
|
||||||
'font' => array(
|
'font' => [
|
||||||
'bold' => true,
|
'bold' => true,
|
||||||
'size' => 10,
|
'size' => 10,
|
||||||
)
|
],
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Heading 6
|
| Heading 6
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'h6' => array(
|
'h6' => [
|
||||||
'font' => array(
|
'font' => [
|
||||||
'bold' => true,
|
'bold' => true,
|
||||||
'size' => 7.5,
|
'size' => 7.5,
|
||||||
)
|
],
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Hyperlinks
|
| Hyperlinks
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'a' => array(
|
'a' => [
|
||||||
'font' => array(
|
'font' => [
|
||||||
'underline' => true,
|
'underline' => true,
|
||||||
'color' => array('argb' => 'FF0000FF'),
|
'color' => ['argb' => 'FF0000FF'],
|
||||||
)
|
],
|
||||||
),
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Horizontal rules
|
| Horizontal rules
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'hr' => array(
|
'hr' => [
|
||||||
'borders' => array(
|
'borders' => [
|
||||||
'bottom' => array(
|
'bottom' => [
|
||||||
'style' => 'thin',
|
'style' => 'thin',
|
||||||
'color' => array('FF000000')
|
'color' => ['FF000000'],
|
||||||
),
|
],
|
||||||
)
|
],
|
||||||
)
|
],
|
||||||
)
|
],
|
||||||
|
|
||||||
)
|
],
|
||||||
|
|
||||||
);
|
];
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
return array(
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
@ -15,6 +15,6 @@ return array(
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'driver' => 'gd'
|
'driver' => 'gd',
|
||||||
|
|
||||||
);
|
];
|
||||||
|
|
|
||||||
|
|
@ -12,13 +12,13 @@ return [
|
||||||
'options' => [
|
'options' => [
|
||||||
'solutionType' => '',
|
'solutionType' => '',
|
||||||
'landingPage' => '',
|
'landingPage' => '',
|
||||||
'headerImageUrl' => ''
|
'headerImageUrl' => '',
|
||||||
]
|
],
|
||||||
],
|
],
|
||||||
'stripe' => [
|
'stripe' => [
|
||||||
'driver' => 'Stripe',
|
'driver' => 'Stripe',
|
||||||
'options'=> []
|
'options' => [],
|
||||||
]
|
],
|
||||||
]
|
],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
* if ( ! $this->config->get('purifier.finalize')) {
|
* if ( ! $this->config->get('purifier.finalize')) {
|
||||||
* $config->autoFinalize = false;
|
* $config->autoFinalize = false;
|
||||||
* }
|
* }
|
||||||
* $config->loadArray($this->getConfig());
|
* $config->loadArray($this->getConfig());.
|
||||||
*
|
*
|
||||||
* You must NOT delete the default settings
|
* You must NOT delete the default settings
|
||||||
* anything in settings should be compacted with params that needed to instance HTMLPurifier_Config.
|
* anything in settings should be compacted with params that needed to instance HTMLPurifier_Config.
|
||||||
|
|
@ -30,11 +30,11 @@ return [
|
||||||
'AutoFormat.RemoveEmpty' => true,
|
'AutoFormat.RemoveEmpty' => true,
|
||||||
],
|
],
|
||||||
'test' => [
|
'test' => [
|
||||||
'Attr.EnableID' => true
|
'Attr.EnableID' => true,
|
||||||
],
|
],
|
||||||
"youtube" => [
|
'youtube' => [
|
||||||
"HTML.SafeIframe" => 'true',
|
'HTML.SafeIframe' => 'true',
|
||||||
"URI.SafeIframeRegexp" => "%^(http://|https://|//)(www.youtube.com/embed/|player.vimeo.com/video/)%",
|
'URI.SafeIframeRegexp' => '%^(http://|https://|//)(www.youtube.com/embed/|player.vimeo.com/video/)%',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ return [
|
||||||
'token' => 'e86QTHwOmEDzqYtti9xAKSgjS7E',
|
'token' => 'e86QTHwOmEDzqYtti9xAKSgjS7E',
|
||||||
'project' => '535d254120fa16000900000a',
|
'project' => '535d254120fa16000900000a',
|
||||||
'queue' => '54e8a61d8d560bccac9dc83e',
|
'queue' => '54e8a61d8d560bccac9dc83e',
|
||||||
'encrypt' => true
|
'encrypt' => true,
|
||||||
],
|
],
|
||||||
'redis' => [
|
'redis' => [
|
||||||
'driver' => 'redis',
|
'driver' => 'redis',
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ return [
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'paths' => [
|
'paths' => [
|
||||||
realpath(base_path('resources/views'))
|
realpath(base_path('resources/views')),
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue