@@ -150,7 +150,7 @@ |
||
| 150 | 150 | public function getFieldInstanceByName($name) |
| 151 | 151 | { |
| 152 | 152 | $moduleName = $this->getName(true); |
| 153 | - $params = ['uitype' => 7, 'column' => $name, 'name' => $name, 'displaytype' => 1, 'typeofdata' => 'I~M', 'presence' => 0, 'isEditableReadOnly' => false, 'maximumlength' => '', 'validator' => [['name' => 'NumberRange100']], 'source' => 'main']; |
|
| 153 | + $params = ['uitype' => 7, 'column' => $name, 'name' => $name, 'displaytype' => 1, 'typeofdata' => 'I~M', 'presence' => 0, 'isEditableReadOnly' => false, 'maximumlength' => '', 'validator' => [['name' => 'NumberRange100']], 'source' => 'main']; |
|
| 154 | 154 | switch ($name) { |
| 155 | 155 | case 'MAX_NUMBER_EXPORT_RECORDS': |
| 156 | 156 | $params['label'] = $this->performanceFields[$name]; |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | } |
| 80 | 80 | $customViewData['columnslist'] = $selectedColumnsList; |
| 81 | 81 | $customFieldNames = $request->getArray('customFieldNames', 'Text'); |
| 82 | - array_walk($customFieldNames, function (&$customLabel) { |
|
| 82 | + array_walk($customFieldNames, function(&$customLabel) { |
|
| 83 | 83 | $customLabel = \App\Purifier::decodeHtml(trim($customLabel)); |
| 84 | 84 | }); |
| 85 | 85 | $customViewData['customFieldNames'] = $customFieldNames; |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | $dataReader = (new App\Db\Query())->from('s_#__picklist_dependency_data')->where(['id' => $this->getId()])->createCommand()->query(); |
| 145 | 145 | $this->mapping = []; |
| 146 | 146 | while ($row = $dataReader->read()) { |
| 147 | - ['source_id' => $sourceId,'conditions' => $conditions] = $row; |
|
| 147 | + ['source_id' => $sourceId, 'conditions' => $conditions] = $row; |
|
| 148 | 148 | $this->mapping[$sourceId] = $conditions; |
| 149 | 149 | } |
| 150 | 150 | $dataReader->close(); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | 'modulesListQuickCreate' => [ |
| 11 | 11 | 'default' => [], |
| 12 | 12 | 'description' => 'Quick creation of records in the module list', |
| 13 | - 'validation' => function () { |
|
| 13 | + 'validation' => function() { |
|
| 14 | 14 | $arg = func_get_arg(0); |
| 15 | 15 | return \is_array($arg) && !array_diff($arg, App\Module::getAllModuleNames()); |
| 16 | 16 | } |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | public function endSession() |
| 172 | 172 | { |
| 173 | 173 | if (empty($this->register)) { |
| 174 | - register_shutdown_function(function () { |
|
| 174 | + register_shutdown_function(function() { |
|
| 175 | 175 | try { |
| 176 | 176 | $header[] = new \SoapHeader(self::HEADER_NAMESPACE, 'Action', $this->getAddressToAction('Wyloguj'), 0); |
| 177 | 177 | $header[] = new \SoapHeader(self::HEADER_NAMESPACE, 'To', self::CONFIG['addressToService'], 0); |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | if (!$vatId && !$taxNumber && !$ncr) { |
| 224 | 224 | return []; |
| 225 | 225 | } |
| 226 | - $response = $this->getData('DaneSzukajPodmioty', ['pParametryWyszukiwania' => ['Nip' => $vatId, 'Krs' => $ncr, 'Regon' => $taxNumber]]); |
|
| 226 | + $response = $this->getData('DaneSzukajPodmioty', ['pParametryWyszukiwania' => ['Nip' => $vatId, 'Krs' => $ncr, 'Regon' => $taxNumber]]); |
|
| 227 | 227 | foreach ($response as &$info) { |
| 228 | 228 | $this->getAdvanceData($info); |
| 229 | 229 | } |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | foreach (static::$extendedOperators as $exo) { |
| 31 | 31 | if (false !== strpos($valueToCondition, $exo) && false === $operatorWasFound) { |
| 32 | 32 | $ev = explode($exo, $valueToCondition); |
| 33 | - $condition[] = [$exo, $this->getColumnName(), $ev[1]]; |
|
| 33 | + $condition[] = [$exo, $this->getColumnName(), $ev[1]]; |
|
| 34 | 34 | $conditionFound = true; |
| 35 | 35 | $operatorWasFound = true; |
| 36 | 36 | } |
@@ -236,7 +236,7 @@ |
||
| 236 | 236 | $currencyId = $this->convertCurrency($this->row['SYM_WAL'], []); |
| 237 | 237 | } |
| 238 | 238 | $currencyParam = \App\Json::encode($this->getCurrencyParam($currencyId)); |
| 239 | - $dataReader = (new \App\Db\Query())->select(['ID_ARTYKULU', 'ILOSC', 'KOD_VAT', 'CENA_NETTO', 'JEDNOSTKA', 'OPIS', 'RABAT', 'RABAT2', 'CENA_NETTO_WAL']) |
|
| 239 | + $dataReader = (new \App\Db\Query())->select(['ID_ARTYKULU', 'ILOSC', 'KOD_VAT', 'CENA_NETTO', 'JEDNOSTKA', 'OPIS', 'RABAT', 'RABAT2', 'CENA_NETTO_WAL']) |
|
| 240 | 240 | ->from('dbo.POZYCJA_DOKUMENTU_MAGAZYNOWEGO') |
| 241 | 241 | ->where(['ID_DOK_HANDLOWEGO' => $this->waproId]) |
| 242 | 242 | ->createCommand($this->controller->getDb())->query(); |
@@ -202,7 +202,7 @@ |
||
| 202 | 202 | } |
| 203 | 203 | $teaser = $css = $btn = ''; |
| 204 | 204 | $loadData = $iframe = true; |
| 205 | - $btnTemplate = function (string $popoverText = '', ?string $btnClass = '', string $data = 'data-iframe="true"'): string { |
|
| 205 | + $btnTemplate = function(string $popoverText = '', ?string $btnClass = '', string $data = 'data-iframe="true"'): string { |
|
| 206 | 206 | $popoverText = \App\Language::translate($popoverText); |
| 207 | 207 | return "<a href=\"#\" class=\"js-more noLinkBtn font-weight-lighter js-popover-tooltip ml-2 {$btnClass}\" {$data} data-content=\"{$popoverText}\"><span class=\"mdi mdi-overscan\"></span></a>"; |
| 208 | 208 | }; |
@@ -637,10 +637,10 @@ |
||
| 637 | 637 | 'or', |
| 638 | 638 | ['like', 'position', "\"$fingerPrint\""], |
| 639 | 639 | ['like', 'size', "\"$fingerPrint\""], |
| 640 | - ], )->createCommand()->query(); |
|
| 640 | + ],)->createCommand()->query(); |
|
| 641 | 641 | |
| 642 | 642 | $createCommand = \App\Db::getInstance()->createCommand(); |
| 643 | - while (['id' => $id,'position' => $position,'size' => $size] = $dataReader->read()) { |
|
| 643 | + while (['id' => $id, 'position' => $position, 'size' => $size] = $dataReader->read()) { |
|
| 644 | 644 | $position = $position ? Json::decode($position) : []; |
| 645 | 645 | if (isset($position[$fingerPrint])) { |
| 646 | 646 | unset($position[$fingerPrint]); |