apply php-cs-fixer

This commit is contained in:
Benjamin Beganović 2020-12-25 12:29:42 +01:00
parent 3198ef3352
commit 0bbd910490
4 changed files with 17 additions and 17 deletions

View File

@ -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
{ {

View File

@ -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
{ {

View File

@ -102,7 +102,7 @@ return [
'invoiceninja' => [ 'invoiceninja' => [
'driver' => 'single', 'driver' => 'single',
'path' => storage_path('logs/invoiceninja.log'), 'path' => storage_path('logs/invoiceninja.log'),
], ],
], ],

View File

@ -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');