@@ -87,7 +87,7 @@ |
||
87 | 87 | $pathType = PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION; |
88 | 88 | } |
89 | 89 | |
90 | - $pathExpression = new PathExpression(PathExpression::TYPE_STATE_FIELD | PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, $rootAlias, $identifierFieldName); |
|
90 | + $pathExpression = new PathExpression(PathExpression::TYPE_STATE_FIELD|PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, $rootAlias, $identifierFieldName); |
|
91 | 91 | $pathExpression->type = $pathType; |
92 | 92 | |
93 | 93 | $count = $this->_getQuery()->getHint(self::HINT_PAGINATOR_ID_COUNT); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | ); |
91 | 91 | |
92 | 92 | $pathExpression = new PathExpression( |
93 | - PathExpression::TYPE_STATE_FIELD | PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, |
|
93 | + PathExpression::TYPE_STATE_FIELD|PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, |
|
94 | 94 | $rootAlias, |
95 | 95 | $identifier |
96 | 96 | ); |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | && isset($queryComponents[$expression->identificationVariable])) { |
143 | 143 | $queryComponent = $queryComponents[$expression->identificationVariable]; |
144 | 144 | if (isset($queryComponent['parent']) |
145 | - && $queryComponent['relation']['type'] & ClassMetadataInfo::TO_MANY) { |
|
145 | + && $queryComponent['relation']['type']&ClassMetadataInfo::TO_MANY) { |
|
146 | 146 | throw new \RuntimeException('Cannot select distinct identifiers from query with LIMIT and ORDER BY on a column from a fetch joined to-many association. Use output walkers.'); |
147 | 147 | } |
148 | 148 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | public function getFunctions() |
22 | 22 | { |
23 | 23 | return [ |
24 | - new TwigFunction('repository', function ($entity) { |
|
24 | + new TwigFunction('repository', function($entity) { |
|
25 | 25 | $repository = $this->em->getRepository($entity); |
26 | 26 | |
27 | 27 | return $repository; |
@@ -63,7 +63,7 @@ |
||
63 | 63 | new TwigFunction('calc_inc_tax', [$this, 'getCalcIncTax']), |
64 | 64 | new TwigFunction('active_menus', [$this, 'getActiveMenus']), |
65 | 65 | new TwigFunction('class_categories_as_json', [$this, 'getClassCategoriesAsJson']), |
66 | - new TwigFunction('php_*', function () { |
|
66 | + new TwigFunction('php_*', function() { |
|
67 | 67 | $arg_list = func_get_args(); |
68 | 68 | $function = array_shift($arg_list); |
69 | 69 | if (is_callable($function)) { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function getFunctions() |
28 | 28 | { |
29 | 29 | return [ |
30 | - new TwigFunction('eccube_block_*', function () { |
|
30 | + new TwigFunction('eccube_block_*', function() { |
|
31 | 31 | $sources = $this->blockTemplates; |
32 | 32 | $arg_list = func_get_args(); |
33 | 33 | $block_name = array_shift($arg_list); |
@@ -228,7 +228,7 @@ |
||
228 | 228 | } |
229 | 229 | |
230 | 230 | // 適用日降順, sortNo 降順にソートする |
231 | - usort($TaxRules, function ($a, $b) { |
|
231 | + usort($TaxRules, function($a, $b) { |
|
232 | 232 | return $a->compareTo($b); |
233 | 233 | }); |
234 | 234 |
@@ -40,6 +40,6 @@ |
||
40 | 40 | { |
41 | 41 | // $options = $this->eccubeConfig['doctrine_cache']; |
42 | 42 | // return $options['result_cache']['lifetime']; |
43 | - return 0; // FIXME |
|
43 | + return 0; // FIXME |
|
44 | 44 | } |
45 | 45 | } |
@@ -56,11 +56,11 @@ discard block |
||
56 | 56 | $stmt = $conn->query('select * from dtb_plugin'); |
57 | 57 | $plugins = $stmt->fetchAll(); |
58 | 58 | |
59 | - $enabled = array_filter($plugins, function ($plugin) { |
|
59 | + $enabled = array_filter($plugins, function($plugin) { |
|
60 | 60 | return true === (bool) $plugin['enabled']; |
61 | 61 | }); |
62 | 62 | |
63 | - $disabled = array_filter($plugins, function ($plugin) { |
|
63 | + $disabled = array_filter($plugins, function($plugin) { |
|
64 | 64 | return false === (bool) $plugin['enabled']; |
65 | 65 | }); |
66 | 66 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | $sm = $conn->getSchemaManager(); |
127 | 127 | $tables = array_filter( |
128 | 128 | $sm->listTables(), |
129 | - function ($table) { |
|
129 | + function($table) { |
|
130 | 130 | return $table->getName() === 'dtb_plugin'; |
131 | 131 | } |
132 | 132 | ); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | new Assert\Regex(['pattern' => '/^\d+$/']), |
84 | 84 | ], |
85 | 85 | ]) |
86 | - ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($app) { |
|
86 | + ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($app) { |
|
87 | 87 | $form = $event->getForm(); |
88 | 88 | |
89 | 89 | if ($app->isGranted('IS_AUTHENTICATED_FULLY')) { |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | $form->add('customer_address', EntityType::class, [ |
93 | 93 | 'class' => 'Eccube\Entity\CustomerAddress', |
94 | 94 | 'choice_label' => 'shippingMultipleDefaultName', |
95 | - 'query_builder' => function (EntityRepository $er) use ($Customer) { |
|
95 | + 'query_builder' => function(EntityRepository $er) use ($Customer) { |
|
96 | 96 | return $er->createQueryBuilder('ca') |
97 | 97 | ->where('ca.Customer = :Customer') |
98 | 98 | ->orderBy('ca.id', 'ASC') |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | } |
125 | 125 | } |
126 | 126 | }) |
127 | - ->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) { |
|
127 | + ->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) { |
|
128 | 128 | /** @var \Eccube\Entity\Shipping $data */ |
129 | 129 | $data = $event->getData(); |
130 | 130 | /** @var \Symfony\Component\Form\Form $form */ |