mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 23:04:36 -04:00
apply php-cs-fixer
This commit is contained in:
parent
3198ef3352
commit
0bbd910490
@ -13,11 +13,11 @@
|
|||||||
/**
|
/**
|
||||||
* Simple helper function that will log into "invoiceninja.log" file
|
* Simple helper function that will log into "invoiceninja.log" file
|
||||||
* only when extended logging is enabled.
|
* only when extended logging is enabled.
|
||||||
*
|
|
||||||
* @param mixed $output
|
|
||||||
* @param array $context
|
|
||||||
*
|
*
|
||||||
* @return void
|
* @param mixed $output
|
||||||
|
* @param array $context
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
function nlog($output, $context = []): void
|
function nlog($output, $context = []): void
|
||||||
{
|
{
|
||||||
|
@ -41,13 +41,13 @@ class Helpers
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* A centralised method to format the custom fields content.
|
* A centralised method to format the custom fields content.
|
||||||
*
|
*
|
||||||
* @param mixed|null $custom_fields
|
* @param mixed|null $custom_fields
|
||||||
* @param mixed $field
|
* @param mixed $field
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
* @param \App\Models\Client|null $client
|
* @param \App\Models\Client|null $client
|
||||||
*
|
*
|
||||||
* @return null|string
|
* @return null|string
|
||||||
*/
|
*/
|
||||||
public function formatCustomFieldValue($custom_fields = null, $field, $value, Client $client = null): ?string
|
public function formatCustomFieldValue($custom_fields = null, $field, $value, Client $client = null): ?string
|
||||||
{
|
{
|
||||||
@ -79,10 +79,10 @@ class Helpers
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* A centralised method to make custom field.
|
* A centralised method to make custom field.
|
||||||
* @param mixed|null $custom_fields
|
* @param mixed|null $custom_fields
|
||||||
* @param mixed $field
|
* @param mixed $field
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function makeCustomField($custom_fields = null, $field): string
|
public function makeCustomField($custom_fields = null, $field): string
|
||||||
{
|
{
|
||||||
|
@ -102,7 +102,7 @@ return [
|
|||||||
|
|
||||||
'invoiceninja' => [
|
'invoiceninja' => [
|
||||||
'driver' => 'single',
|
'driver' => 'single',
|
||||||
'path' => storage_path('logs/invoiceninja.log'),
|
'path' => storage_path('logs/invoiceninja.log'),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ class ImportCsvTest extends TestCase
|
|||||||
|
|
||||||
public function testInvoiceCsvImport()
|
public function testInvoiceCsvImport()
|
||||||
{
|
{
|
||||||
$this->markTestSkipped();
|
$this->markTestSkipped();
|
||||||
|
|
||||||
$csv = file_get_contents(base_path().'/tests/Feature/Import/invoice.csv');
|
$csv = file_get_contents(base_path().'/tests/Feature/Import/invoice.csv');
|
||||||
$hash = Str::random(32);
|
$hash = Str::random(32);
|
||||||
@ -132,7 +132,7 @@ class ImportCsvTest extends TestCase
|
|||||||
|
|
||||||
public function testProductCsvImport()
|
public function testProductCsvImport()
|
||||||
{
|
{
|
||||||
$this->markTestSkipped();
|
$this->markTestSkipped();
|
||||||
|
|
||||||
|
|
||||||
$csv = file_get_contents(base_path().'/tests/Feature/Import/products.csv');
|
$csv = file_get_contents(base_path().'/tests/Feature/Import/products.csv');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user