@@ -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); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $includedFiles = []; |
| 55 | 55 | |
| 56 | 56 | foreach ($this->paths as $path) { |
| 57 | - if ( ! is_dir($path)) { |
|
| 57 | + if (!is_dir($path)) { |
|
| 58 | 58 | throw MappingException::fileMappingDriversRequireConfiguredDirectoryPath($path); |
| 59 | 59 | } |
| 60 | 60 | |
@@ -63,14 +63,14 @@ discard block |
||
| 63 | 63 | new \RecursiveDirectoryIterator($path, \FilesystemIterator::SKIP_DOTS), |
| 64 | 64 | \RecursiveIteratorIterator::LEAVES_ONLY |
| 65 | 65 | ), |
| 66 | - '/^.+' . preg_quote($this->fileExtension) . '$/i', |
|
| 66 | + '/^.+'.preg_quote($this->fileExtension).'$/i', |
|
| 67 | 67 | \RecursiveRegexIterator::GET_MATCH |
| 68 | 68 | ); |
| 69 | 69 | |
| 70 | 70 | foreach ($iterator as $file) { |
| 71 | 71 | $sourceFile = $file[0]; |
| 72 | 72 | |
| 73 | - if ( ! preg_match('(^phar:)i', $sourceFile)) { |
|
| 73 | + if (!preg_match('(^phar:)i', $sourceFile)) { |
|
| 74 | 74 | $sourceFile = realpath($sourceFile); |
| 75 | 75 | } |
| 76 | 76 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | foreach ($declared as $className) { |
| 102 | 102 | $rc = new \ReflectionClass($className); |
| 103 | 103 | $sourceFile = $rc->getFileName(); |
| 104 | - if (in_array($sourceFile, $includedFiles) && ! $this->isTransient($className)) { |
|
| 104 | + if (in_array($sourceFile, $includedFiles) && !$this->isTransient($className)) { |
|
| 105 | 105 | $classes[] = $className; |
| 106 | 106 | } |
| 107 | 107 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | { |
| 39 | 39 | $builder->addEventListener( |
| 40 | 40 | FormEvents::PRE_SET_DATA, |
| 41 | - function (FormEvent $event) { |
|
| 41 | + function(FormEvent $event) { |
|
| 42 | 42 | $form = $event->getForm(); |
| 43 | 43 | $config = $form->getConfig(); |
| 44 | 44 | // data_classオプションが必要 |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | return new \Mobile_Detect(); |
| 17 | 17 | }; |
| 18 | 18 | |
| 19 | - $app['mobile_detect.device_type'] = function ($app) { |
|
| 19 | + $app['mobile_detect.device_type'] = function($app) { |
|
| 20 | 20 | if ($app['mobile_detect']->isMobile()) { |
| 21 | 21 | return \Eccube\Entity\Master\DeviceType::DEVICE_TYPE_SP; |
| 22 | 22 | } else { |