@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | */ |
| 223 | 223 | public function getProductQuantity($productClassId) |
| 224 | 224 | { |
| 225 | - $CartItem = $this->cart->getCartItemByIdentifier('Eccube\Entity\ProductClass', (string)$productClassId); |
|
| 225 | + $CartItem = $this->cart->getCartItemByIdentifier('Eccube\Entity\ProductClass', (string) $productClassId); |
|
| 226 | 226 | if ($CartItem) { |
| 227 | 227 | return $CartItem->getQuantity(); |
| 228 | 228 | } else { |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | $CartItem = new CartItem(); |
| 308 | 308 | $CartItem |
| 309 | 309 | ->setClassName('Eccube\Entity\ProductClass') |
| 310 | - ->setClassId((string)$ProductClass->getId()) |
|
| 310 | + ->setClassId((string) $ProductClass->getId()) |
|
| 311 | 311 | ->setPrice($ProductClass->getPrice02IncTax()) |
| 312 | 312 | ->setQuantity($quantity); |
| 313 | 313 | |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | */ |
| 466 | 466 | public function removeProduct($productClassId) |
| 467 | 467 | { |
| 468 | - $this->cart->removeCartItemByIdentifier('Eccube\Entity\ProductClass', (string)$productClassId); |
|
| 468 | + $this->cart->removeCartItemByIdentifier('Eccube\Entity\ProductClass', (string) $productClassId); |
|
| 469 | 469 | |
| 470 | 470 | // 支払方法の再設定 |
| 471 | 471 | if ($this->BaseInfo->getOptionMultipleShipping() == Constant::ENABLED) { |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | ->add('name', TextType::class, array( |
| 66 | 66 | 'required' => false, |
| 67 | 67 | )) |
| 68 | - ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) use ($app) { |
|
| 68 | + ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) use ($app) { |
|
| 69 | 69 | $form = $event->getForm(); |
| 70 | 70 | $data = $form->getData(); |
| 71 | 71 | if (strlen($data['id']) && strlen($data['name']) == 0) { |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | $app->match('/plugin/[lower_code]/hello', 'Plugin\[code]\Controller\[code]Controller::index')->bind('plugin_[code]_hello'); |
| 34 | 34 | |
| 35 | 35 | // Form |
| 36 | - $app['form.types'] = $app->extend('form.types', function ($types) use ($app) { |
|
| 36 | + $app['form.types'] = $app->extend('form.types', function($types) use ($app) { |
|
| 37 | 37 | $types[] = new [code]ConfigType(); |
| 38 | 38 | |
| 39 | 39 | return $types; |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | // } |
| 58 | 58 | |
| 59 | 59 | // ログファイル設定 |
| 60 | - $app['monolog.logger.[lower_code]'] = function ($app) { |
|
| 60 | + $app['monolog.logger.[lower_code]'] = function($app) { |
|
| 61 | 61 | |
| 62 | 62 | $logger = new $app['monolog.logger.class']('[lower_code]'); |
| 63 | 63 | |
@@ -121,14 +121,14 @@ |
||
| 121 | 121 | $sql = sprintf( |
| 122 | 122 | "EXTRACT(%s FROM %s %s $op INTERVAL '$second SECONDS')", |
| 123 | 123 | $this->field, |
| 124 | - (string)$this->type, |
|
| 124 | + (string) $this->type, |
|
| 125 | 125 | $this->source->dispatch($sqlWalker)); |
| 126 | 126 | break; |
| 127 | 127 | default: |
| 128 | 128 | $sql = sprintf( |
| 129 | 129 | "EXTRACT(%s FROM %s %s $op INTERVAL $second SECOND)", |
| 130 | 130 | $this->field, |
| 131 | - (string)$this->type, |
|
| 131 | + (string) $this->type, |
|
| 132 | 132 | $this->source->dispatch($sqlWalker)); |
| 133 | 133 | } |
| 134 | 134 | |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | ->name('*.csv') |
| 44 | 44 | ->sort( |
| 45 | 45 | // 定義ファイルに記載の順にソート. |
| 46 | - function (\SplFileInfo $a, \SplFileInfo $b) use ($definition) { |
|
| 46 | + function(\SplFileInfo $a, \SplFileInfo $b) use ($definition) { |
|
| 47 | 47 | if (!isset($definition[$a->getFilename()])) { |
| 48 | 48 | throw new \Exception(sprintf('"%s" is undefined in %s', $a->getFilename())); |
| 49 | 49 | } |
@@ -26,11 +26,11 @@ |
||
| 26 | 26 | apc_clear_cache(); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | -require __DIR__ . '/autoload.php'; |
|
| 29 | +require __DIR__.'/autoload.php'; |
|
| 30 | 30 | |
| 31 | 31 | $app = new Eccube\InstallApplication(); |
| 32 | 32 | $app['debug'] = true; |
| 33 | -$app->before(function (\Symfony\Component\HttpFoundation\Request $request, \Silex\Application $app) { |
|
| 33 | +$app->before(function(\Symfony\Component\HttpFoundation\Request $request, \Silex\Application $app) { |
|
| 34 | 34 | if (!$request->getSession()->isStarted()) { |
| 35 | 35 | $request->getSession()->start(); |
| 36 | 36 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | require __DIR__.'/autoload.php'; |
| 26 | 26 | |
| 27 | 27 | ini_set('display_errors', 'Off'); |
| 28 | -error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT); |
|
| 28 | +error_reporting(E_ALL&~E_DEPRECATED&~E_STRICT); |
|
| 29 | 29 | |
| 30 | 30 | // see http://silex.sensiolabs.org/doc/web_servers.html#php-5-4 |
| 31 | 31 | $filename = __DIR__.preg_replace('#(\?.*)$#', '', $_SERVER['REQUEST_URI']); |
@@ -9,12 +9,12 @@ |
||
| 9 | 9 | |
| 10 | 10 | CONST MIGRATION_TABLE_PREFIX = 'migration_'; |
| 11 | 11 | |
| 12 | - public function migrationSchema($app,$migrationFilePath,$pluginCode,$version=null) |
|
| 12 | + public function migrationSchema($app, $migrationFilePath, $pluginCode, $version = null) |
|
| 13 | 13 | { |
| 14 | 14 | $config = new Configuration($app['db']); |
| 15 | 15 | $config->setMigrationsNamespace('DoctrineMigrations'); |
| 16 | 16 | $config->setMigrationsDirectory($migrationFilePath); |
| 17 | - $config->registerMigrationsFromDirectory($migrationFilePath ); |
|
| 17 | + $config->registerMigrationsFromDirectory($migrationFilePath); |
|
| 18 | 18 | $config->setMigrationsTableName(self::MIGRATION_TABLE_PREFIX.$pluginCode); |
| 19 | 19 | $migration = new Migration($config); |
| 20 | 20 | $migration->setNoMigrationException(true); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | if (is_callable($function)) { |
| 67 | 67 | return call_user_func_array($function, $arg_list); |
| 68 | 68 | } |
| 69 | - trigger_error('Called to an undefined function : php_'. $function, E_USER_WARNING); |
|
| 69 | + trigger_error('Called to an undefined function : php_'.$function, E_USER_WARNING); |
|
| 70 | 70 | |
| 71 | 71 | }, ['pre_escape' => 'html', 'is_safe' => ['html']]), |
| 72 | 72 | |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | public function getCsrfTokenForAnchor() |
| 155 | 155 | { |
| 156 | 156 | $token = $this->app['csrf.token_manager']->getToken(Constant::TOKEN_NAME)->getValue(); |
| 157 | - return 'token-for-anchor=\'' . $token . '\''; |
|
| 157 | + return 'token-for-anchor=\''.$token.'\''; |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | /** |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | public function getPriceFilter($number, $decimals = 0, $decPoint = '.', $thousandsSep = ',') |
| 190 | 190 | { |
| 191 | 191 | $price = number_format($number, $decimals, $decPoint, $thousandsSep); |
| 192 | - $price = '¥ ' . $price; |
|
| 192 | + $price = '¥ '.$price; |
|
| 193 | 193 | |
| 194 | 194 | return $price; |
| 195 | 195 | } |