Skip to content

Commit b985936

Browse files
author
ChristianMoll
committed
Adjusted code style
Changed code style to fit PSR-2 style guide.
1 parent 5c3e203 commit b985936

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/Composer/Installers/PlentymarketsInstaller.php

+12-11
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,21 @@ class PlentymarketsInstaller extends BaseInstaller
99

1010
/**
1111
* Remove hyphen, "plugin" and format to camelcase
12+
* @param array $vars
13+
*
14+
* @return array
1215
*/
1316
public function inflectPackageVars($vars)
1417
{
15-
$vars['name'] = explode("-", $vars['name']);
16-
foreach($vars['name'] as $key => $name)
17-
{
18-
$vars['name'][$key] = ucfirst($vars['name'][$key]);
19-
if(strcasecmp($name, "Plugin") == 0)
20-
{
21-
unset($vars['name'][$key]);
22-
}
23-
}
24-
$vars['name'] = implode("",$vars['name']);
18+
$vars['name'] = explode("-", $vars['name']);
19+
foreach ($vars['name'] as $key => $name) {
20+
$vars['name'][$key] = ucfirst($vars['name'][$key]);
21+
if (strcasecmp($name, "Plugin") == 0) {
22+
unset($vars['name'][$key]);
23+
}
24+
}
25+
$vars['name'] = implode("",$vars['name']);
2526

26-
return $vars;
27+
return $vars;
2728
}
2829
}

0 commit comments

Comments
 (0)