@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | $twig = new \Twig\Environment(new \Twig\Loader\ArrayLoader(['index' => $content])); |
466 | 466 | $sandbox = new \Twig\Extension\SandboxExtension(\App\Extension\Twig\SecurityPolicy::getPolicy(), true); |
467 | 467 | $twig->addExtension($sandbox); |
468 | - $twig->addFunction(new \Twig\TwigFunction('YFParser', function ($text) { |
|
468 | + $twig->addFunction(new \Twig\TwigFunction('YFParser', function($text) { |
|
469 | 469 | $value = ''; |
470 | 470 | preg_match(static::VARIABLE_REGEX, $text, $matches); |
471 | 471 | if ($matches) { |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | })); |
477 | 477 | $content = $twig->render('index'); |
478 | 478 | } |
479 | - return preg_replace_callback(static::VARIABLE_REGEX, function ($matches) { |
|
479 | + return preg_replace_callback(static::VARIABLE_REGEX, function($matches) { |
|
480 | 480 | [, $function, $params] = array_pad($matches, 3, ''); |
481 | 481 | return \in_array($function, static::$baseFunctions) ? $this->{$function}($params) : ''; |
482 | 482 | }, $content); |
@@ -492,7 +492,7 @@ discard block |
||
492 | 492 | if (isset($this->language)) { |
493 | 493 | Language::setTemporaryLanguage($this->language); |
494 | 494 | } |
495 | - $this->content = preg_replace_callback('/\$\(translate : ([,"\+\%\.\=\-\[\]\&\w\s\|]+)\)\$/u', function ($matches) { |
|
495 | + $this->content = preg_replace_callback('/\$\(translate : ([,"\+\%\.\=\-\[\]\&\w\s\|]+)\)\$/u', function($matches) { |
|
496 | 496 | [, $params] = array_pad($matches, 2, ''); |
497 | 497 | return $this->translate($params); |
498 | 498 | }, $this->content); |
@@ -1852,7 +1852,7 @@ discard block |
||
1852 | 1852 | $width = isset($config['width']) ? preg_replace('/[^[:alnum:]]/', '', explode(',', $config['width'])) : []; |
1853 | 1853 | foreach ($config['columns'] as $key => $name) { |
1854 | 1854 | if (false !== strpos($name, '||')) { |
1855 | - [$title,$value] = explode('||', $name, 2); |
|
1855 | + [$title, $value] = explode('||', $name, 2); |
|
1856 | 1856 | if ('(' === $title[0] && ')' === substr($title, -1)) { |
1857 | 1857 | $title = $this->parseVariable("\${$title}\$"); |
1858 | 1858 | } |
@@ -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(); |
@@ -85,7 +85,7 @@ |
||
85 | 85 | public function getAddSupportedFieldTypes() |
86 | 86 | { |
87 | 87 | return [ |
88 | - 'Text', 'Decimal', 'Integer', 'Currency', 'Percent', 'AdvPercentage', 'Date', 'Time', 'DateTime', 'RangeTime', 'Phone', 'Email', 'MultiEmail', 'MultiDomain', 'Picklist', 'MultiSelectCombo', 'Country', 'URL', 'Checkbox', 'TextArea', 'Related1M', 'MultiReference', 'Editor', 'Tree', 'CategoryMultipicklist', 'Image', 'MultiImage', 'MultiAttachment', 'MultiReferenceValue', 'ServerAccess', 'Skype', 'Twitter', 'Token', 'Smtp', |
|
88 | + 'Text', 'Decimal', 'Integer', 'Currency', 'Percent', 'AdvPercentage', 'Date', 'Time', 'DateTime', 'RangeTime', 'Phone', 'Email', 'MultiEmail', 'MultiDomain', 'Picklist', 'MultiSelectCombo', 'Country', 'URL', 'Checkbox', 'TextArea', 'Related1M', 'MultiReference', 'Editor', 'Tree', 'CategoryMultipicklist', 'Image', 'MultiImage', 'MultiAttachment', 'MultiReferenceValue', 'ServerAccess', 'Skype', 'Twitter', 'Token', 'Smtp', |
|
89 | 89 | ]; |
90 | 90 | } |
91 | 91 |