@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | * @date 12.12.15 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\PhoneUI\Forms; |
| 18 | 18 | |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $params = array_map('strtoupper', $params); |
| 67 | 67 | |
| 68 | 68 | // Check if phone country field exists... |
| 69 | - if ($countryField = $container->getComponent($control->getName() . '_country', FALSE)) { |
|
| 69 | + if ($countryField = $container->getComponent($control->getName().'_country', FALSE)) { |
|
| 70 | 70 | // ...use selected value as a list of allowed countries |
| 71 | 71 | $selectedCountry = $countryField->getValue(); |
| 72 | 72 | |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | |
| 197 | 197 | // Transform valid types to their namespaced class constant |
| 198 | 198 | $allowedTypes = array_reduce($untransformedTypes, function (array $result, $item) { |
| 199 | - $result[$item] = constant('\libphonenumber\PhoneNumberType::' . constant(self::constructPhoneTypeConstant($item))); |
|
| 199 | + $result[$item] = constant('\libphonenumber\PhoneNumberType::'.constant(self::constructPhoneTypeConstant($item))); |
|
| 200 | 200 | |
| 201 | 201 | return $result; |
| 202 | 202 | }, []); |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | */ |
| 219 | 219 | protected static function constructPhoneTypeConstant(string $type) : string |
| 220 | 220 | { |
| 221 | - return '\IPub\Phone\Phone::TYPE_' . $type; |
|
| 221 | + return '\IPub\Phone\Phone::TYPE_'.$type; |
|
| 222 | 222 | } |
| 223 | 223 | |
| 224 | 224 | /** |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * @date 12.12.15 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\PhoneUI; |
| 18 | 18 | |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | * @date 30.05.19 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\PhoneUI\DI; |
| 18 | 18 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | // Register template helpers |
| 51 | 51 | $builder->addDefinition($this->prefix('helpers')) |
| 52 | 52 | ->setType(PhoneUI\Templating\Helpers::class) |
| 53 | - ->setFactory($this->prefix('@phoneUI') . '::createTemplateHelpers') |
|
| 53 | + ->setFactory($this->prefix('@phoneUI').'::createTemplateHelpers') |
|
| 54 | 54 | ->setInject(FALSE); |
| 55 | 55 | } |
| 56 | 56 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * @date 12.12.15 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\PhoneUI\Exceptions; |
| 18 | 18 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * @date 13.12.15 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\PhoneUI\Exceptions; |
| 18 | 18 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * @date 12.12.15 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\PhoneUI\Templating; |
| 18 | 18 | |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | * @date 12.12.15 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\PhoneUI\Latte; |
| 18 | 18 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | throw new Latte\CompileException('Please provide phone number.'); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - return $writer->write('echo %escape(property_exists($this, "filters") ? call_user_func($this->filters->phone, "' . $arguments['phone'] . '", "' . $arguments['country'] . '", ' . $arguments['format'] . ') : $template->getPhoneNumberService()->format("' . $arguments['phone'] . '", "' . $arguments['country'] . '", ' . $arguments['format'] . '));'); |
|
| 74 | + return $writer->write('echo %escape(property_exists($this, "filters") ? call_user_func($this->filters->phone, "'.$arguments['phone'].'", "'.$arguments['country'].'", '.$arguments['format'].') : $template->getPhoneNumberService()->format("'.$arguments['phone'].'", "'.$arguments['country'].'", '.$arguments['format'].'));'); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * @date 12.12.15 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\PhoneUI\Exceptions; |
| 18 | 18 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * @date 12.12.15 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -declare(strict_types = 1); |
|
| 15 | +declare(strict_types=1); |
|
| 16 | 16 | |
| 17 | 17 | namespace IPub\PhoneUI\Exceptions; |
| 18 | 18 | |