Skip to content

Commit 3438367

Browse files
committed
Updates to code to match style
1 parent e78bc3b commit 3438367

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/Gitlab/Model/Project.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ public static function fromArray(Client $client, array $data)
117117
if (isset($data['shared_with_groups'])) {
118118
$groups = [];
119119
foreach ($data['shared_with_groups'] as $group) {
120-
foreach($group as $keys=>$value) {
121-
$group[str_replace('group_','',$keys)] = $value;
120+
foreach ($group as $keys => $value) {
121+
$group[str_replace('group_', '', $keys)] = $value;
122122
unset($group[$keys]);
123123
}
124124
$groups[] = Group::fromArray($client, $group);

test/Gitlab/Tests/Model/ProjectTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,9 @@ public function defaultArray(array $overrides = [])
6161
'request_access_enabled' => false,
6262
'merge_method' => 'merge',
6363
'approvals_before_merge' => 0,
64-
], $overrides);;
64+
], $overrides);
6565

6666
return $defaults;
67-
6867
}
6968

7069
public function testFromArray()

0 commit comments

Comments
 (0)