@@ -59,7 +59,7 @@ |
||
| 59 | 59 | 'label' => '拒否URL', |
| 60 | 60 | 'required' => false, |
| 61 | 61 | )) |
| 62 | - ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
| 62 | + ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
| 63 | 63 | $form = $event->getForm(); |
| 64 | 64 | |
| 65 | 65 | $Authority = $form['Authority']->getData(); |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | |
| 37 | 37 | public function __construct(Application $app) |
| 38 | 38 | { |
| 39 | - $this->app = $app; |
|
| 39 | + $this->app = $app; |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | public function supportsAttribute($attribute) |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | { |
| 308 | 308 | $config = $this->config; |
| 309 | 309 | |
| 310 | - return function ($value) use ($config) { |
|
| 310 | + return function($value) use ($config) { |
|
| 311 | 311 | return mb_convert_encoding( |
| 312 | 312 | (string) $value, $config['csv_export_encoding'], 'UTF-8' |
| 313 | 313 | ); |
@@ -431,7 +431,7 @@ discard block |
||
| 431 | 431 | if ($Conditions instanceof ArrayCollection) { |
| 432 | 432 | $Conditions = new ArrayCollection( |
| 433 | 433 | array_map( |
| 434 | - function ($Entity) use ($em) { |
|
| 434 | + function($Entity) use ($em) { |
|
| 435 | 435 | return $em->getRepository(get_class($Entity))->find($Entity->getId()); |
| 436 | 436 | }, $Conditions->toArray() |
| 437 | 437 | ) |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | ->setCompanyName($Customer->getCompanyName()) |
| 89 | 89 | ->setZip01($Customer->getZip01()) |
| 90 | 90 | ->setZip02($Customer->getZip02()) |
| 91 | - ->setZipcode($Customer->getZip01() . $Customer->getZip02()) |
|
| 91 | + ->setZipcode($Customer->getZip01().$Customer->getZip02()) |
|
| 92 | 92 | ->setPref($Customer->getPref()) |
| 93 | 93 | ->setAddr01($Customer->getAddr01()) |
| 94 | 94 | ->setAddr02($Customer->getAddr02()) |
@@ -336,10 +336,10 @@ |
||
| 336 | 336 | } |
| 337 | 337 | } |
| 338 | 338 | } else { |
| 339 | - $filter = function ($v) { |
|
| 339 | + $filter = function($v) { |
|
| 340 | 340 | return preg_match('/^ids\d+$/', $v); |
| 341 | 341 | }; |
| 342 | - $map = function ($v) { |
|
| 342 | + $map = function($v) { |
|
| 343 | 343 | return preg_replace('/[^\d+]/', '', $v); |
| 344 | 344 | }; |
| 345 | 345 | $keys = array_keys($request->query->all()); |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | $class2Valied = $this->isValiedCategory($ClassName2); |
| 107 | 107 | |
| 108 | 108 | // 規格が選択されていないか、選択された状態で分類が保有されていれば、画面表示 |
| 109 | - if($class1Valied && $class2Valied){ |
|
| 109 | + if ($class1Valied && $class2Valied) { |
|
| 110 | 110 | $hasClassCategoryFlg = true; |
| 111 | 111 | } |
| 112 | 112 | |
@@ -117,9 +117,9 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | $this->file = $file; |
| 119 | 119 | $this->file->setFlags( |
| 120 | - \SplFileObject::READ_CSV | |
|
| 121 | - \SplFileObject::SKIP_EMPTY | |
|
| 122 | - \SplFileObject::READ_AHEAD | |
|
| 120 | + \SplFileObject::READ_CSV| |
|
| 121 | + \SplFileObject::SKIP_EMPTY| |
|
| 122 | + \SplFileObject::READ_AHEAD| |
|
| 123 | 123 | \SplFileObject::DROP_NEW_LINE |
| 124 | 124 | ); |
| 125 | 125 | $this->file->setCsvControl( |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | if ($count > 1) { |
| 363 | 363 | $incrementedHeaders[] = $header; |
| 364 | 364 | for ($i = 1; $i < $count; $i++) { |
| 365 | - $incrementedHeaders[] = $header . $i; |
|
| 365 | + $incrementedHeaders[] = $header.$i; |
|
| 366 | 366 | } |
| 367 | 367 | } else { |
| 368 | 368 | $incrementedHeaders[] = $header; |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | protected function convertEncodingRows($row) { |
| 414 | 414 | if ('\\' === DIRECTORY_SEPARATOR && PHP_VERSION_ID >= 70000) { |
| 415 | 415 | foreach ($row as &$col) { |
| 416 | - $col = mb_convert_encoding($col , 'UTF-8', 'SJIS-win'); |
|
| 416 | + $col = mb_convert_encoding($col, 'UTF-8', 'SJIS-win'); |
|
| 417 | 417 | } |
| 418 | 418 | } |
| 419 | 419 | return $row; |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | |
| 54 | 54 | foreach ($criteria as $col => $val) { |
| 55 | 55 | $qb->andWhere($qb->expr()->notIn('o.'.$col, ':'.$col)) |
| 56 | - ->setParameter($col, (array)$val); |
|
| 56 | + ->setParameter($col, (array) $val); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | if (is_array($orderBy)) { |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | if (!empty($config_cache)) { |
| 125 | 125 | $meta = $config_cache; |
| 126 | 126 | } else { |
| 127 | - $meta = $this->readYml($dir . '/config.yml'); |
|
| 127 | + $meta = $this->readYml($dir.'/config.yml'); |
|
| 128 | 128 | } |
| 129 | 129 | } catch (\Symfony\Component\Yaml\Exception\ParseException $e) { |
| 130 | 130 | throw new PluginException($e->getMessage(), $e->getCode(), $e); |