@@ -185,6 +185,6 @@ |
||
| 185 | 185 | protected function initialize() |
| 186 | 186 | { |
| 187 | 187 | $this->acl = $this->dic->get(Acl::class); |
| 188 | - $this->accountHistoryService = $this->dic->get(AccountHistoryService::class);; |
|
| 188 | + $this->accountHistoryService = $this->dic->get(AccountHistoryService::class); ; |
|
| 189 | 189 | } |
| 190 | 190 | } |
| 191 | 191 | \ No newline at end of file |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | /** |
| 73 | 73 | * @return array |
| 74 | 74 | */ |
| 75 | - $passGen = function () use ($alphabet, $length) { |
|
| 75 | + $passGen = function() use ($alphabet, $length) { |
|
| 76 | 76 | $pass = []; |
| 77 | 77 | $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache |
| 78 | 78 | |
@@ -166,7 +166,7 @@ |
||
| 166 | 166 | { |
| 167 | 167 | $path = $this->exportPath . DIRECTORY_SEPARATOR . AppInfoInterface::APP_NAME; |
| 168 | 168 | |
| 169 | - array_map(function ($file) { |
|
| 169 | + array_map(function($file) { |
|
| 170 | 170 | return @unlink($file); |
| 171 | 171 | }, array_merge(glob($path . '_export-*'), glob($path . '*.xml'))); |
| 172 | 172 | } |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | $gridData->addDataRowSource('clientName'); |
| 125 | 125 | $gridData->addDataRowSource('name'); |
| 126 | 126 | $gridData->addDataRowSource('type'); |
| 127 | - $gridData->addDataRowSource('size', false, function ($value) { |
|
| 127 | + $gridData->addDataRowSource('size', false, function($value) { |
|
| 128 | 128 | return sprintf('%.2f KB', $value / 1000); |
| 129 | 129 | }); |
| 130 | 130 | $gridData->setData($this->queryResult); |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | $gridAction->setIcon($this->icons->getIconDownload()); |
| 181 | 181 | $gridAction->setOnClickFunction('file/download'); |
| 182 | 182 | $gridAction->addData('action-route', Acl::getActionRoute(ActionsInterface::ACCOUNT_FILE_DOWNLOAD)); |
| 183 | - $gridAction->setRuntimeData(function ($dataItem) use ($gridAction) { |
|
| 183 | + $gridAction->setRuntimeData(function($dataItem) use ($gridAction) { |
|
| 184 | 184 | return ['item-type' => $dataItem->type]; |
| 185 | 185 | }); |
| 186 | 186 | |
@@ -123,11 +123,11 @@ |
||
| 123 | 123 | $gridData->addDataRowSource('action', null, null, false); |
| 124 | 124 | $gridData->addDataRowSource('login'); |
| 125 | 125 | $gridData->addDataRowSource('ipAddress', false, |
| 126 | - function ($value) use ($isDemoMode) { |
|
| 126 | + function($value) use ($isDemoMode) { |
|
| 127 | 127 | return $isDemoMode ? '*.*.*.*' : $value; |
| 128 | 128 | }); |
| 129 | 129 | $gridData->addDataRowSource('description', false, |
| 130 | - function ($value) use ($isDemoMode) { |
|
| 130 | + function($value) use ($isDemoMode) { |
|
| 131 | 131 | if ($isDemoMode) { |
| 132 | 132 | $value = preg_replace('/\d+\.\d+\.\d+\.\d+/', '*.*.*.*', $value); |
| 133 | 133 | } |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | public function checkDatabaseTables($dbName) |
| 89 | 89 | { |
| 90 | 90 | try { |
| 91 | - $tables = implode(',', array_map(function ($value) { |
|
| 91 | + $tables = implode(',', array_map(function($value) { |
|
| 92 | 92 | return '\'' . $value . '\''; |
| 93 | 93 | }, self::$tables)); |
| 94 | 94 | |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | $message = EventMessage::factory(); |
| 78 | 78 | |
| 79 | 79 | if (isset($CONFIG) && is_array($CONFIG)) { |
| 80 | - $paramMapper = function ($mapFrom, $mapTo) use ($CONFIG, $message, $configData) { |
|
| 80 | + $paramMapper = function($mapFrom, $mapTo) use ($CONFIG, $message, $configData) { |
|
| 81 | 81 | if (isset($CONFIG[$mapFrom])) { |
| 82 | 82 | $message->addDetail(__u('Parameter'), $mapFrom); |
| 83 | 83 | $configData->{$mapTo}($CONFIG[$mapFrom]); |
@@ -139,7 +139,7 @@ |
||
| 139 | 139 | $this->eventDispatcher->notifyEvent('send.mail', |
| 140 | 140 | new Event($this, EventMessage::factory() |
| 141 | 141 | ->addDescription(__u('Email sent')) |
| 142 | - ->addDetail(__u('Recipient'), implode(',', array_map(function ($value) { |
|
| 142 | + ->addDetail(__u('Recipient'), implode(',', array_map(function($value) { |
|
| 143 | 143 | return $value[0]; |
| 144 | 144 | }, $this->mailer->getToAddresses())))) |
| 145 | 145 | ); |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | $gridData->setDataRowSourceId('id'); |
| 120 | 120 | $gridData->addDataRowSource('name'); |
| 121 | 121 | $gridData->addDataRowSource('description'); |
| 122 | - $gridData->addDataRowSource('isGlobal', false, function ($value) { |
|
| 122 | + $gridData->addDataRowSource('isGlobal', false, function($value) { |
|
| 123 | 123 | return $value ? __('YES') : __('NO'); |
| 124 | 124 | }); |
| 125 | 125 | $gridData->setData($this->queryResult); |