@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -require_once __DIR__.'/AppKernel.php'; |
|
| 12 | +require_once __DIR__ . '/AppKernel.php'; |
|
| 13 | 13 | |
| 14 | 14 | use PSS\SymfonyMockerContainer\DependencyInjection\MockerContainer; |
| 15 | 15 | use Symfony\Component\DependencyInjection\ContainerInterface; |
@@ -26,12 +26,12 @@ |
||
| 26 | 26 | require ini_get('auto_prepend_file'); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | -if (is_file($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.$_SERVER['SCRIPT_NAME'])) { |
|
| 29 | +if (is_file($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $_SERVER['SCRIPT_NAME'])) { |
|
| 30 | 30 | return false; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | $_SERVER = array_merge($_SERVER, $_ENV); |
| 34 | -$_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.'app_test_cached.php'; |
|
| 34 | +$_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'app_test_cached.php'; |
|
| 35 | 35 | |
| 36 | 36 | require 'app_test_cached.php'; |
| 37 | 37 | |
@@ -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 | } |
@@ -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 | /** |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | public function validate($entity, Constraint $constraint) |
| 56 | 56 | { |
| 57 | 57 | if (!$constraint instanceof HasEnabledEntity) { |
| 58 | - throw new UnexpectedTypeException($constraint, __NAMESPACE__.'\HasEnabledEntity'); |
|
| 58 | + throw new UnexpectedTypeException($constraint, __NAMESPACE__ . '\HasEnabledEntity'); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | $enabled = $this->accessor->getValue($entity, $constraint->enabledPath); |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | ->setHelp(<<<EOT |
| 47 | 47 | The <info>%command.name%</info>command creates a new client. |
| 48 | 48 | <info>php %command.full_name% [--redirect-uri=...] [--grant-type=...] name</info> |
| 49 | -EOT |
|
| 49 | +eot |
|
| 50 | 50 | ); |
| 51 | 51 | } |
| 52 | 52 | |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | $view->vars['prototypes'] = []; |
| 118 | 118 | foreach ($form->getConfig()->getAttribute('prototypes') as $group => $prototypes) { |
| 119 | 119 | foreach ($prototypes as $type => $prototype) { |
| 120 | - $view->vars['prototypes'][$group.'_'.$type] = $prototype->createView($view); |
|
| 120 | + $view->vars['prototypes'][$group . '_' . $type] = $prototype->createView($view); |
|
| 121 | 121 | } |
| 122 | 122 | } |
| 123 | 123 | } |