@@ -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 | } |
@@ -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 | /** |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | { |
| 77 | 77 | $this->queryBuilder->setParameter($field, $value); |
| 78 | 78 | |
| 79 | - return $this->queryBuilder->expr()->eq($field, ':'.$field); |
|
| 79 | + return $this->queryBuilder->expr()->eq($field, ':' . $field); |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | { |
| 87 | 87 | $this->queryBuilder->setParameter($field, $value); |
| 88 | 88 | |
| 89 | - return $this->queryBuilder->expr()->neq($field, ':'.$field); |
|
| 89 | + return $this->queryBuilder->expr()->neq($field, ':' . $field); |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | public function lessThan($field, $value) |
| 96 | 96 | { |
| 97 | - $this->queryBuilder->andWhere($field.' < :'.$field)->setParameter($field, $value); |
|
| 97 | + $this->queryBuilder->andWhere($field . ' < :' . $field)->setParameter($field, $value); |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | */ |
| 103 | 103 | public function lessThanOrEqual($field, $value) |
| 104 | 104 | { |
| 105 | - $this->queryBuilder->andWhere($field.' =< :'.$field)->setParameter($field, $value); |
|
| 105 | + $this->queryBuilder->andWhere($field . ' =< :' . $field)->setParameter($field, $value); |
|
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | /** |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | */ |
| 111 | 111 | public function greaterThan($field, $value) |
| 112 | 112 | { |
| 113 | - $this->queryBuilder->andWhere($field.' > :'.$field)->setParameter($field, $value); |
|
| 113 | + $this->queryBuilder->andWhere($field . ' > :' . $field)->setParameter($field, $value); |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | /** |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | */ |
| 119 | 119 | public function greaterThanOrEqual($field, $value) |
| 120 | 120 | { |
| 121 | - $this->queryBuilder->andWhere($field.' => :%s'.$field)->setParameter($field, $value); |
|
| 121 | + $this->queryBuilder->andWhere($field . ' => :%s' . $field)->setParameter($field, $value); |
|
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | /** |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | { |
| 77 | 77 | $this->queryBuilder->setParameter($field, $value); |
| 78 | 78 | |
| 79 | - return $this->queryBuilder->expr()->eq($this->getFieldName($field), ':'.$field); |
|
| 79 | + return $this->queryBuilder->expr()->eq($this->getFieldName($field), ':' . $field); |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | { |
| 87 | 87 | $this->queryBuilder->setParameter($field, $value); |
| 88 | 88 | |
| 89 | - return $this->queryBuilder->expr()->neq($this->getFieldName($field), ':'.$field); |
|
| 89 | + return $this->queryBuilder->expr()->neq($this->getFieldName($field), ':' . $field); |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | public function lessThan($field, $value) |
| 96 | 96 | { |
| 97 | - $this->queryBuilder->andWhere($this->getFieldName($field).' < :'.$field)->setParameter($field, $value); |
|
| 97 | + $this->queryBuilder->andWhere($this->getFieldName($field) . ' < :' . $field)->setParameter($field, $value); |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | */ |
| 103 | 103 | public function lessThanOrEqual($field, $value) |
| 104 | 104 | { |
| 105 | - $this->queryBuilder->andWhere($this->getFieldName($field).' =< :'.$field)->setParameter($field, $value); |
|
| 105 | + $this->queryBuilder->andWhere($this->getFieldName($field) . ' =< :' . $field)->setParameter($field, $value); |
|
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | /** |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | */ |
| 111 | 111 | public function greaterThan($field, $value) |
| 112 | 112 | { |
| 113 | - $this->queryBuilder->andWhere($this->getFieldName($field).' > :'.$field)->setParameter($field, $value); |
|
| 113 | + $this->queryBuilder->andWhere($this->getFieldName($field) . ' > :' . $field)->setParameter($field, $value); |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | /** |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | */ |
| 119 | 119 | public function greaterThanOrEqual($field, $value) |
| 120 | 120 | { |
| 121 | - $this->queryBuilder->andWhere($this->getFieldName($field).' => :%s'.$field)->setParameter($field, $value); |
|
| 121 | + $this->queryBuilder->andWhere($this->getFieldName($field) . ' => :%s' . $field)->setParameter($field, $value); |
|
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | /** |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | private function getFieldName($field) |
| 192 | 192 | { |
| 193 | 193 | if (false === strpos($field, '.')) { |
| 194 | - return $this->queryBuilder->getRootAlias().'.'.$field; |
|
| 194 | + return $this->queryBuilder->getRootAlias() . '.' . $field; |
|
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | return $field; |