@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | { |
201 | 201 | $this->dialog = $this->command->getHelper('dialog'); |
202 | 202 | $inputString = join(PHP_EOL, $this->inputChoices); |
203 | - $this->dialog->setInputStream($this->getInputStream($inputString.PHP_EOL)); |
|
203 | + $this->dialog->setInputStream($this->getInputStream($inputString . PHP_EOL)); |
|
204 | 204 | |
205 | 205 | $this->tester->execute(['command' => $name]); |
206 | 206 | } |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | private function iExecuteCommandAndConfirm($name) |
212 | 212 | { |
213 | 213 | $this->dialog = $this->command->getHelper('dialog'); |
214 | - $inputString = 'y'.PHP_EOL; |
|
214 | + $inputString = 'y' . PHP_EOL; |
|
215 | 215 | $this->dialog->setInputStream($this->getInputStream($inputString)); |
216 | 216 | |
217 | 217 | $this->tester->execute(['command' => $name]); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | if (in_array($key, ['factory-class', 'factory-method', 'factory-service'])) { |
178 | 178 | @trigger_error(sprintf('The "%s" attribute of service "%s" in file "%s" is deprecated since version 2.6 and will be removed in 3.0. Use the "factory" element instead.', $key, (string) $service->getAttribute('id'), $file), E_USER_DEPRECATED); |
179 | 179 | } |
180 | - $method = 'set'.str_replace('-', '', $key); |
|
180 | + $method = 'set' . str_replace('-', '', $key); |
|
181 | 181 | $definition->$method(XmlUtils::phpize($value)); |
182 | 182 | } |
183 | 183 | } |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | // this is used by DefinitionDecorator to overwrite a specific |
385 | 385 | // argument of the parent definition |
386 | 386 | if ($arg->hasAttribute('index')) { |
387 | - $key = 'index_'.$arg->getAttribute('index'); |
|
387 | + $key = 'index_' . $arg->getAttribute('index'); |
|
388 | 388 | } |
389 | 389 | |
390 | 390 | switch ($arg->getAttribute('type')) { |
@@ -442,7 +442,7 @@ discard block |
||
442 | 442 | */ |
443 | 443 | public function validateSchema(\DOMDocument $dom) |
444 | 444 | { |
445 | - $schemaLocations = ['http://symfony.com/schema/dic/services' => str_replace('\\', '/', __DIR__.'/schema/dic/services/services-1.0.xsd')]; |
|
445 | + $schemaLocations = ['http://symfony.com/schema/dic/services' => str_replace('\\', '/', __DIR__ . '/schema/dic/services/services-1.0.xsd')]; |
|
446 | 446 | |
447 | 447 | if ($element = $dom->documentElement->getAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'schemaLocation')) { |
448 | 448 | $items = preg_split('/\s+/', $element); |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | } |
453 | 453 | |
454 | 454 | if (($extension = $this->container->getExtension($items[$i])) && false !== $extension->getXsdValidationBasePath()) { |
455 | - $path = str_replace($extension->getNamespace(), str_replace('\\', '/', $extension->getXsdValidationBasePath()).'/', $items[$i + 1]); |
|
455 | + $path = str_replace($extension->getNamespace(), str_replace('\\', '/', $extension->getXsdValidationBasePath()) . '/', $items[$i + 1]); |
|
456 | 456 | |
457 | 457 | if (!is_file($path)) { |
458 | 458 | throw new RuntimeException(sprintf('Extension "%s" references a non-existent XSD file "%s"', get_class($extension), $path)); |
@@ -475,10 +475,10 @@ discard block |
||
475 | 475 | $parts = explode('/', str_replace('\\', '/', $tmpfile)); |
476 | 476 | } |
477 | 477 | } |
478 | - $drive = '\\' === DIRECTORY_SEPARATOR ? array_shift($parts).'/' : ''; |
|
479 | - $location = 'file:///'.$drive.implode('/', array_map('rawurlencode', $parts)); |
|
478 | + $drive = '\\' === DIRECTORY_SEPARATOR ? array_shift($parts) . '/' : ''; |
|
479 | + $location = 'file:///' . $drive . implode('/', array_map('rawurlencode', $parts)); |
|
480 | 480 | |
481 | - $imports .= sprintf(' <xsd:import namespace="%s" schemaLocation="%s" />'."\n", $namespace, $location); |
|
481 | + $imports .= sprintf(' <xsd:import namespace="%s" schemaLocation="%s" />' . "\n", $namespace, $location); |
|
482 | 482 | } |
483 | 483 | |
484 | 484 | $source = <<<EOF |
@@ -159,7 +159,7 @@ |
||
159 | 159 | (stripos($elementText, $customerName) !== false) && |
160 | 160 | (stripos($elementText, $street) !== false) && |
161 | 161 | (stripos($elementText, $city) !== false) && |
162 | - (stripos($elementText, $countryName.' '.$postcode) !== false) |
|
162 | + (stripos($elementText, $countryName . ' ' . $postcode) !== false) |
|
163 | 163 | ; |
164 | 164 | } |
165 | 165 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | { |
41 | 41 | $provinces = $this->getElement('provinces'); |
42 | 42 | |
43 | - return $provinces->has('css', '[value = "'.$provinceName.'"]'); |
|
43 | + return $provinces->has('css', '[value = "' . $provinceName . '"]'); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | { |
51 | 51 | $provinces = $this->getElement('provinces'); |
52 | 52 | |
53 | - return $provinces->has('css', '[value = "'.$provinceCode.'"]'); |
|
53 | + return $provinces->has('css', '[value = "' . $provinceCode . '"]'); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | if ($this->isThereProvince($provinceName)) { |
138 | 138 | $provinces = $this->getElement('provinces'); |
139 | 139 | |
140 | - $item = $provinces->find('css', 'div[data-form-collection="item"] input[value="'.$provinceName.'"]')->getParent(); |
|
140 | + $item = $provinces->find('css', 'div[data-form-collection="item"] input[value="' . $provinceName . '"]')->getParent(); |
|
141 | 141 | $item->fillField('Name', ''); |
142 | 142 | } |
143 | 143 | } |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | (stripos($elementText, $customerName) !== false) && |
386 | 386 | (stripos($elementText, $street) !== false) && |
387 | 387 | (stripos($elementText, $city) !== false) && |
388 | - (stripos($elementText, $countryName.' '.$postcode) !== false) |
|
388 | + (stripos($elementText, $countryName . ' ' . $postcode) !== false) |
|
389 | 389 | ; |
390 | 390 | } |
391 | 391 | |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | ['item' => $itemName] |
403 | 403 | ); |
404 | 404 | |
405 | - return $rows[0]->find('css', '.'.$property)->getText(); |
|
405 | + return $rows[0]->find('css', '.' . $property)->getText(); |
|
406 | 406 | } |
407 | 407 | |
408 | 408 | /** |
@@ -75,8 +75,8 @@ |
||
75 | 75 | */ |
76 | 76 | final protected function makePathAbsolute($path) |
77 | 77 | { |
78 | - $baseUrl = rtrim($this->getParameter('base_url'), '/').'/'; |
|
78 | + $baseUrl = rtrim($this->getParameter('base_url'), '/') . '/'; |
|
79 | 79 | |
80 | - return 0 !== strpos($path, 'http') ? $baseUrl.ltrim($path, '/') : $path; |
|
80 | + return 0 !== strpos($path, 'http') ? $baseUrl . ltrim($path, '/') : $path; |
|
81 | 81 | } |
82 | 82 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | public function load(array $config, ContainerBuilder $container) |
30 | 30 | { |
31 | 31 | $config = $this->processConfiguration($this->getConfiguration($config, $container), $config); |
32 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
32 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
33 | 33 | |
34 | 34 | $loader->load(sprintf('driver/%s.xml', $config['driver'])); |
35 | 35 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | { |
36 | 36 | $percentage = $number * 100; |
37 | 37 | |
38 | - return $percentage.' %'; |
|
38 | + return $percentage . ' %'; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function load(array $config, ContainerBuilder $container) |
28 | 28 | { |
29 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
29 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
30 | 30 | $loader->load('controller.xml'); |
31 | 31 | $loader->load('menu.xml'); |
32 | 32 | $loader->load('form.xml'); |