diff --git a/app/Console/Commands/MobileLocalization.php b/app/Console/Commands/MobileLocalization.php
index 482cf9042ade..e4d12c98bc33 100644
--- a/app/Console/Commands/MobileLocalization.php
+++ b/app/Console/Commands/MobileLocalization.php
@@ -93,6 +93,17 @@ class MobileLocalization extends Command
$text = str_replace(['', ''], '', $text);
$text = str_replace(['', ''], '', $text);
+//replace the three lines above with this
+// if($language->locale == 'ar') {
+// $text = str_replace('\n', " ", $text);
+// }
+
+// $text = str_replace(['', '','', '','', ''], '', $text);
+// $text = str_replace('"', "'", $text);
+
+
+
+
echo "'$key': '$text',\n";
}
diff --git a/app/Utils/HtmlEngine.php b/app/Utils/HtmlEngine.php
index f16aa8589a11..76186c9e9016 100644
--- a/app/Utils/HtmlEngine.php
+++ b/app/Utils/HtmlEngine.php
@@ -84,16 +84,12 @@ class HtmlEngine
switch ($this->invitation) {
case ($this->invitation instanceof InvoiceInvitation):
return 'invoice';
- break;
case ($this->invitation instanceof CreditInvitation):
return 'credit';
- break;
case ($this->invitation instanceof QuoteInvitation):
return 'quote';
- break;
case ($this->invitation instanceof RecurringInvoiceInvitation):
return 'recurring_invoice';
- break;
default:
# code...
break;
@@ -145,7 +141,7 @@ class HtmlEngine
$data['$invoice.po_number'] = ['value' => $this->entity->po_number ?: ' ', 'label' => ctrans('texts.po_number')];
$data['$poNumber'] = &$data['$invoice.po_number'];
$data['$po_number'] = &$data['$invoice.po_number'];
- $data['$entity.datetime'] = ['value' => $this->formatDatetime($this->entity->created_at, $this->client->date_format(), $this->client->locale()), 'label' => ctrans('texts.date')];
+ $data['$entity.datetime'] = ['value' => $this->formatDatetime($this->entity->created_at, $this->client->date_format()), 'label' => ctrans('texts.date')];
$data['$invoice.datetime'] = &$data['$entity.datetime'];
$data['$quote.datetime'] = &$data['$entity.datetime'];
$data['$credit.datetime'] = &$data['$entity.datetime'];
diff --git a/app/Utils/VendorHtmlEngine.php b/app/Utils/VendorHtmlEngine.php
index 0910c318c2ff..67bd20d7bf25 100644
--- a/app/Utils/VendorHtmlEngine.php
+++ b/app/Utils/VendorHtmlEngine.php
@@ -90,19 +90,14 @@ class VendorHtmlEngine
switch ($this->invitation) {
case ($this->invitation instanceof InvoiceInvitation):
return 'invoice';
- break;
case ($this->invitation instanceof CreditInvitation):
return 'credit';
- break;
case ($this->invitation instanceof QuoteInvitation):
return 'quote';
- break;
case ($this->invitation instanceof RecurringInvoiceInvitation):
return 'recurring_invoice';
- break;
case ($this->invitation instanceof PurchaseOrderInvitation):
return 'purchase_order';
- break;
default:
# code...
break;
@@ -839,14 +834,14 @@ html {
';
- return '
-
- ';
+ // return '
+ //
+ // ';
}
}
diff --git a/phpstan.neon b/phpstan.neon
index e426a63268c0..185855f2cd8f 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -8,5 +8,7 @@ parameters:
level: 4
paths:
- app
+ excludePaths:
+ - vendor
universalObjectCratesClasses:
- App\DataMapper\Tax\RuleInterface
\ No newline at end of file