@@ -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 |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Doctrine\Common\DataFixtures\FixtureInterface; |
6 | 6 | use Doctrine\Common\Persistence\ObjectManager; |
7 | 7 | use Doctrine\DBAL\Connection; |
8 | -use Doctrine\DBAL\Schema\Table; |
|
9 | 8 | |
10 | 9 | /** |
11 | 10 | * CSVファイルを扱うためのフィクスチャ. |
@@ -34,7 +34,7 @@ |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | // CSV Reader に設定 |
37 | - $this->file->setFlags(\SplFileObject::READ_CSV | \SplFileObject::READ_AHEAD | \SplFileObject::SKIP_EMPTY |\SplFileObject::DROP_NEW_LINE); |
|
37 | + $this->file->setFlags(\SplFileObject::READ_CSV|\SplFileObject::READ_AHEAD|\SplFileObject::SKIP_EMPTY|\SplFileObject::DROP_NEW_LINE); |
|
38 | 38 | |
39 | 39 | // ヘッダ行を取得 |
40 | 40 | $headers = $this->file->current(); |
@@ -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 | } |
@@ -18,8 +18,8 @@ |
||
18 | 18 | $config->setMigrationsTableName(self::MIGRATION_TABLE_PREFIX.$pluginCode); |
19 | 19 | $migration = new Migration($config); |
20 | 20 | $migration->setNoMigrationException(true); |
21 | - // null 又は 'last' を渡すと最新バージョンまでマイグレートする |
|
22 | - // 0か'first'を渡すと最初に戻る |
|
21 | + // null 又は 'last' を渡すと最新バージョンまでマイグレートする |
|
22 | + // 0か'first'を渡すと最初に戻る |
|
23 | 23 | $migration->migrate($version, false); |
24 | 24 | |
25 | 25 |
@@ -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); |
@@ -16,7 +16,6 @@ |
||
16 | 16 | * This method should only be used to configure services and parameters. |
17 | 17 | * It should not get services. |
18 | 18 | * |
19 | - * @param Container $pimple A container instance |
|
20 | 19 | */ |
21 | 20 | public function register(Container $container) |
22 | 21 | { |
@@ -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 { |
@@ -56,7 +56,7 @@ |
||
56 | 56 | |
57 | 57 | /** |
58 | 58 | * JoinClause constructor. |
59 | - * @param $leftJoin |
|
59 | + * @param boolean $leftJoin |
|
60 | 60 | * @param $join |
61 | 61 | * @param $alias |
62 | 62 | * @param $conditionType |