Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/duplicated array keys #484

Merged
merged 9 commits into from
Jun 11, 2017
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class testRuleAppliesMultipleTimesToMethodWithAssotiativeArrayDefinitionWithDuplicatedKeys
{
function testRuleAppliesMultipleTimesToMethodWithAssotiativeArrayDefinitionWithDuplicatedKeys()
public function testRuleAppliesMultipleTimesToMethodWithAssotiativeArrayDefinitionWithDuplicatedKeys()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't do this just to satisfy some CI, but this actually communicates intention explicitly.

{
return array(
'foo' => 42,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class testRuleAppliesToMethodWithAssotiativeArrayDefinitionWithDuplicatedKeys
{
function testRuleAppliesToMethodWithAssotiativeArrayDefinitionWithDuplicatedKeys()
public function testRuleAppliesToMethodWithAssotiativeArrayDefinitionWithDuplicatedKeys()
{
return array(
'foo' => 42,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class testRuleAppliesToMethodWithAssotiativeArrayDefinitionWithDuplicatedMixedQuotedKeys
{
function testRuleAppliesToMethodWithAssotiativeArrayDefinitionWithDuplicatedMixedQuotedKeys()
public function testRuleAppliesToMethodWithAssotiativeArrayDefinitionWithDuplicatedMixedQuotedKeys()
{
return array(
'foo' => 42,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class testRuleAppliesToMethodWithAssotiativeArrayDefinitionWithDuplicatedMixedTypeKeys
{
function testRuleAppliesToMethodWithAssotiativeArrayDefinitionWithDuplicatedMixedTypeKeys()
public function testRuleAppliesToMethodWithAssotiativeArrayDefinitionWithDuplicatedMixedTypeKeys()
{
return array(
123 => 42,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class testRuleNotAppliesToMethodWithAssotiativeArrayDefinitionWithoutDuplicatedKeys
{
function testRuleNotAppliesToMethodWithAssotiativeArrayDefinitionWithoutDuplicatedKeys()
public function testRuleNotAppliesToMethodWithAssotiativeArrayDefinitionWithoutDuplicatedKeys()
{
return array(
'foo' => 42,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class testRuleNotAppliesToMethodWithNonAssotiativeArrayDefinition
{
function testRuleNotAppliesToMethodWithNonAssotiativeArrayDefinition()
public function testRuleNotAppliesToMethodWithNonAssotiativeArrayDefinition()
{
return array(
42,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class testRuleNotAppliesToMethodWithoutArrayDefinition
{
function testRuleNotAppliesToMethodWithoutArrayDefinition()
public function testRuleNotAppliesToMethodWithoutArrayDefinition()
{
}
}