Short array syntax #3197

This commit is contained in:
James Cole
2020-03-18 20:58:25 +01:00
parent 7c3b5fe714
commit c412ffc195

View File

@@ -140,7 +140,7 @@ class IngDescription implements SpecificInterface
*/ */
protected function removeNameIngDescription(): void protected function removeNameIngDescription(): void
{ {
$matches = array(); $matches = [];
if (preg_match('/Valutadatum: ([0-9-]+)/', $this->row[8], $matches)) { if (preg_match('/Valutadatum: ([0-9-]+)/', $this->row[8], $matches)) {
$this->row[9] = date("Ymd", strtotime($matches[1])); $this->row[9] = date("Ymd", strtotime($matches[1]));
$this->row[8] = preg_replace('/Valutadatum: [0-9-]+/', '', $this->row[8]); $this->row[8] = preg_replace('/Valutadatum: [0-9-]+/', '', $this->row[8]);