@@ -677,7 +677,7 @@ |
||
677 | 677 | $code = $dir->getBaseName(); |
678 | 678 | try { |
679 | 679 | $this['eccube.service.plugin']->checkPluginArchiveContent($path); |
680 | - } catch(\Eccube\Exception\PluginException $e) { |
|
680 | + } catch (\Eccube\Exception\PluginException $e) { |
|
681 | 681 | $this['monolog']->warning("skip {$code} config loading. config.yml not foud or invalid.", array( |
682 | 682 | 'path' => $path, |
683 | 683 | 'original-message' => $e->getMessage() |
@@ -69,7 +69,7 @@ |
||
69 | 69 | $mode = $input->getArgument('mode'); |
70 | 70 | $path = $input->getOption('path'); |
71 | 71 | $code = $input->getOption('code'); |
72 | - $uninstallForce = $input->getOption('uninstall-force'); |
|
72 | + $uninstallForce = $input->getOption('uninstall-force'); |
|
73 | 73 | |
74 | 74 | $service = $this->app['eccube.service.plugin']; |
75 | 75 |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | { |
38 | 38 | $events = array(); |
39 | 39 | // YamlでParseしてがんばる |
40 | - $basePath = __DIR__ . '/../../../app/Plugin'; |
|
40 | + $basePath = __DIR__.'/../../../app/Plugin'; |
|
41 | 41 | $finder = Finder::create() |
42 | 42 | ->in($basePath) |
43 | 43 | ->directories() |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | try { |
53 | 53 | $app['eccube.service.plugin']->checkPluginArchiveContent($path); |
54 | - } catch(\Eccube\Exception\PluginException $e) { |
|
54 | + } catch (\Eccube\Exception\PluginException $e) { |
|
55 | 55 | $app['monolog']->warning("skip {$code} form events loading. config.yml not foud or invalid.", array( |
56 | 56 | 'path' => $path, |
57 | 57 | 'original-message' => $e->getMessage() |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | if (isset($config['form'])) { |
64 | 64 | foreach ($config['form'] as $event => $class) { |
65 | - $events[$event][] = '\\Plugin\\' . $config['code'] . '\\' . $class; |
|
65 | + $events[$event][] = '\\Plugin\\'.$config['code'].'\\'.$class; |
|
66 | 66 | } |
67 | 67 | } |
68 | 68 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $events = self::getEvents(); |
87 | 87 | |
88 | 88 | if (isset($events['onPreSetData'])) { |
89 | - foreach($events['onPreSetData'] as $formEventClass) { |
|
89 | + foreach ($events['onPreSetData'] as $formEventClass) { |
|
90 | 90 | $formEvent = new $formEventClass(); |
91 | 91 | $formEvent->onPreSetData($event); |
92 | 92 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $events = self::getEvents(); |
99 | 99 | |
100 | 100 | if (isset($events['onPostSetData'])) { |
101 | - foreach($events['onPostSetData'] as $formEventClass) { |
|
101 | + foreach ($events['onPostSetData'] as $formEventClass) { |
|
102 | 102 | $formEvent = new $formEventClass(); |
103 | 103 | $formEvent->onPostSetData($event); |
104 | 104 | } |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $events = self::getEvents(); |
111 | 111 | |
112 | 112 | if (isset($events['onPreSubmit'])) { |
113 | - foreach($events['onPreSubmit'] as $formEventClass) { |
|
113 | + foreach ($events['onPreSubmit'] as $formEventClass) { |
|
114 | 114 | $formEvent = new $formEventClass(); |
115 | 115 | $formEvent->onPreSubmit($event); |
116 | 116 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $events = self::getEvents(); |
123 | 123 | |
124 | 124 | if (isset($events['onSubmit'])) { |
125 | - foreach($events['onSubmit'] as $formEventClass) { |
|
125 | + foreach ($events['onSubmit'] as $formEventClass) { |
|
126 | 126 | $formEvent = new $formEventClass(); |
127 | 127 | $formEvent->onSubmit($event); |
128 | 128 | } |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | $events = self::getEvents(); |
135 | 135 | |
136 | 136 | if (isset($events['onPostSubmit'])) { |
137 | - foreach($events['onPostSubmit'] as $formEventClass) { |
|
137 | + foreach ($events['onPostSubmit'] as $formEventClass) { |
|
138 | 138 | $formEvent = new $formEventClass(); |
139 | 139 | $formEvent->onPostSubmit($event); |
140 | 140 | } |