Failed Conditions
Push — sf/package-api ( 831849...a77dd1 )
by Kiyotaka
06:40
created
src/Eccube/Service/PluginService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 
208 208
         // 依存プラグインが有効になっていない場合はエラー
209 209
         $requires = $this->getPluginRequired($config);
210
-        $notInstalledOrDisabled = array_filter($requires, function($req) {
210
+        $notInstalledOrDisabled = array_filter($requires, function ($req) {
211 211
             $code = preg_replace('/^ec-cube\//', '', $req['name']);
212 212
             /** @var Plugin $DependPlugin */
213 213
             $DependPlugin = $this->pluginRepository->findOneBy(['code' => $code]);
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
         });
216 216
 
217 217
         if (!empty($notInstalledOrDisabled)) {
218
-            $names = array_map(function($p) { return $p['name']; }, $notInstalledOrDisabled);
218
+            $names = array_map(function ($p) { return $p['name']; }, $notInstalledOrDisabled);
219 219
             throw new PluginException(implode(', ', $names)."を有効化してください。");
220 220
         }
221 221
 
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
     {
275 275
         if ($plugin->isEnabled()) {
276 276
             $generatedFiles = $this->regenerateProxy($plugin, false);
277
-            $this->schemaService->updateSchema($generatedFiles, $this->projectRoot . '/app/proxy/entity');
277
+            $this->schemaService->updateSchema($generatedFiles, $this->projectRoot.'/app/proxy/entity');
278 278
         } else {
279 279
             // Proxyのクラスをロードせずにスキーマを更新するために、
280 280
             // インストール時には一時的なディレクトリにProxyを生成する
@@ -726,7 +726,7 @@  discard block
 block discarded – undo
726 726
 
727 727
         $results = [];
728 728
 
729
-        $this->composerService->foreachRequires('ec-cube/'.$pluginCode, $pluginVersion, function($package) use(&$results) {
729
+        $this->composerService->foreachRequires('ec-cube/'.$pluginCode, $pluginVersion, function ($package) use(&$results) {
730 730
             $results[] = $package;
731 731
         }, 'eccube-plugin');
732 732
 
Please login to merge, or discard this patch.
src/Eccube/Service/Composer/ComposerApiService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -251,7 +251,7 @@
 block discarded – undo
251 251
 
252 252
         if ($useBufferedOutput) {
253 253
             $output = new BufferedOutput();
254
-            ob_start(function($buffer) use ($output) {
254
+            ob_start(function ($buffer) use ($output) {
255 255
                 $output->write($buffer);
256 256
                 return null;
257 257
             });
Please login to merge, or discard this patch.