Passed
Push — master ( fbe22c...374a70 )
by Adam
02:56
created
src/IPub/PhoneUI/Forms/PhoneValidator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	/**
Please login to merge, or discard this patch.
src/IPub/PhoneUI/PhoneUI.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/IPub/PhoneUI/DI/PhoneUIExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/IPub/PhoneUI/Exceptions/IException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/IPub/PhoneUI/Exceptions/InvalidArgumentException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/IPub/PhoneUI/Templating/Helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/IPub/PhoneUI/Latte/Macros.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 	/**
Please login to merge, or discard this patch.
src/IPub/PhoneUI/Exceptions/NoValidCountryException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/IPub/PhoneUI/Exceptions/InvalidParameterException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.