@@ -49,7 +49,7 @@ |
||
49 | 49 | ->name('*.csv') |
50 | 50 | ->sort( |
51 | 51 | // 定義ファイルに記載の順にソート. |
52 | - function (\SplFileInfo $a, \SplFileInfo $b) use ($definition) { |
|
52 | + function(\SplFileInfo $a, \SplFileInfo $b) use ($definition) { |
|
53 | 53 | if (!isset($definition[$a->getFilename()])) { |
54 | 54 | throw new \Exception(sprintf('"%s" is undefined in %s', $a->getFilename())); |
55 | 55 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | // CSV Reader に設定 |
43 | - $this->file->setFlags(\SplFileObject::READ_CSV | \SplFileObject::READ_AHEAD | \SplFileObject::SKIP_EMPTY | \SplFileObject::DROP_NEW_LINE); |
|
43 | + $this->file->setFlags(\SplFileObject::READ_CSV|\SplFileObject::READ_AHEAD|\SplFileObject::SKIP_EMPTY|\SplFileObject::DROP_NEW_LINE); |
|
44 | 44 | |
45 | 45 | // ヘッダ行を取得 |
46 | 46 | $headers = $this->file->current(); |
@@ -67,7 +67,7 @@ |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | $pathExpression = new PathExpression( |
70 | - PathExpression::TYPE_STATE_FIELD | PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, $rootAlias, |
|
70 | + PathExpression::TYPE_STATE_FIELD|PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, $rootAlias, |
|
71 | 71 | $identifierFieldName |
72 | 72 | ); |
73 | 73 | $pathExpression->type = $pathType; |
@@ -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; |
@@ -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); |
@@ -290,8 +290,8 @@ |
||
290 | 290 | $multi = preg_match('/^\d{0,10}$/', $searchData['multi']) ? $searchData['multi'] : null; |
291 | 291 | $qb |
292 | 292 | ->andWhere('o.id = :multi OR o.name01 LIKE :likemulti OR o.name02 LIKE :likemulti OR '. |
293 | - 'o.kana01 LIKE :likemulti OR o.kana02 LIKE :likemulti OR o.company_name LIKE :likemulti OR '. |
|
294 | - 'o.code LIKE :likemulti') |
|
293 | + 'o.kana01 LIKE :likemulti OR o.kana02 LIKE :likemulti OR o.company_name LIKE :likemulti OR '. |
|
294 | + 'o.code LIKE :likemulti') |
|
295 | 295 | ->setParameter('multi', $multi) |
296 | 296 | ->setParameter('likemulti', '%'.$searchData['multi'].'%'); |
297 | 297 | } |
@@ -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 | } |