Completed
Branch master (c9de66)
by Lukáš
02:02
created
Category
src/DI/TexyExtension.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 	private function getSortedConfigurators(ContainerBuilder $builder)
58 58
 	{
59 59
 		$configurators = $builder->findByTag(self::TAG_CONFIGURATOR);
60
-		uasort($configurators, function ($a, $b) {
60
+		uasort($configurators, function($a, $b) {
61 61
 			$a = is_numeric($a) ? (float) $a : 0;
62 62
 			$b = is_numeric($b) ? (float) $b : 0;
63 63
 			return $a < $b ? -1 : ($a > $b ? 1 : 0);
@@ -70,14 +70,14 @@  discard block
 block discarded – undo
70 70
 	 */
71 71
 	private function registerToLatte(ServiceDefinition $def)
72 72
 	{
73
-		$def->addSetup('?->onCompile[] = function (Latte\Engine $engine) { (new Texy\Bridges\Latte\TexyMacro($engine, ?))->install(); }', ['@self', $this->prefix('@texy')])
74
-			->addSetup('addFilter', ['texy', [$this->prefix('@texy'), 'process']]);
73
+		$def->addSetup('?->onCompile[] = function (Latte\Engine $engine) { (new Texy\Bridges\Latte\TexyMacro($engine, ?))->install(); }', [ '@self', $this->prefix('@texy') ])
74
+			->addSetup('addFilter', [ 'texy', [ $this->prefix('@texy'), 'process' ] ]);
75 75
 
76 76
 		if (method_exists('Latte\Engine', 'addProvider')) {
77
-			$def->addSetup('addProvider', ['texy', $this->prefix('@texy')]);
77
+			$def->addSetup('addProvider', [ 'texy', $this->prefix('@texy') ]);
78 78
 
79 79
 		} else {
80
-			$def->addSetup('?->addFilter(\'getTexy\', function () { return ?;})', ['@self', $this->prefix('@texy')]);
80
+			$def->addSetup('?->addFilter(\'getTexy\', function () { return ?;})', [ '@self', $this->prefix('@texy') ]);
81 81
 		}
82 82
 	}
83 83
 
Please login to merge, or discard this patch.