Skip to content

Commit

Permalink
Merge branch 'master' of github.com:boxfrommars/rutorika-sortable
Browse files Browse the repository at this point in the history
  • Loading branch information
boxfrommars committed Jul 5, 2017
2 parents 4e633d3 + 5a437e2 commit 4b1ed80
Show file tree
Hide file tree
Showing 8 changed files with 264 additions and 265 deletions.
2 changes: 1 addition & 1 deletion src/Rutorika/Sortable/SortableServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ public function boot()
*/
public function provides()
{
return array();
return [];
}
}
42 changes: 21 additions & 21 deletions tests/M2mSortableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -482,41 +482,41 @@ public function testMoveBeforeOtherRelatedNotChanged($entityId, $relativeEntityI
*/
public function moveWhenMovedEntityComesBeforeRelativeEntityProvider()
{
return array(
array(1, 7, 30),
array(7, 9, 30),
array(15, 30, 30),
array(1, 30, 30),
array(1, 2, 30),
array(29, 30, 30),
);
return [
[1, 7, 30],
[7, 9, 30],
[15, 30, 30],
[1, 30, 30],
[1, 2, 30],
[29, 30, 30],
];
}

/**
* @return array
*/
public function moveWhenMovedEntityComesAfterRelativeEntityProvider()
{
return array(
array(7, 1, 30),
array(9, 7, 30),
array(30, 15, 30),
array(30, 1, 30),
array(2, 1, 30),
array(30, 29, 30),
);
return [
[7, 1, 30],
[9, 7, 30],
[30, 15, 30],
[30, 1, 30],
[2, 1, 30],
[30, 29, 30],
];
}

/**
* @return array
*/
public function moveWhenMovedEntityIsRelativeEntityProvider()
{
return array(
array(1, 30),
array(7, 30),
array(30, 30),
);
return [
[1, 30],
[7, 30],
[30, 30],
];
}

/**
Expand Down
42 changes: 21 additions & 21 deletions tests/MorphToManySortableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -483,41 +483,41 @@ public function testMoveBeforeOtherRelatedNotChanged($entityId, $relativeEntityI
*/
public function moveWhenMovedEntityComesBeforeRelativeEntityProvider()
{
return array(
array(1, 7, 30),
array(7, 9, 30),
array(15, 30, 30),
array(1, 30, 30),
array(1, 2, 30),
array(29, 30, 30),
);
return [
[1, 7, 30],
[7, 9, 30],
[15, 30, 30],
[1, 30, 30],
[1, 2, 30],
[29, 30, 30],
];
}

/**
* @return array
*/
public function moveWhenMovedEntityComesAfterRelativeEntityProvider()
{
return array(
array(7, 1, 30),
array(9, 7, 30),
array(30, 15, 30),
array(30, 1, 30),
array(2, 1, 30),
array(30, 29, 30),
);
return [
[7, 1, 30],
[9, 7, 30],
[30, 15, 30],
[30, 1, 30],
[2, 1, 30],
[30, 29, 30],
];
}

/**
* @return array
*/
public function moveWhenMovedEntityIsRelativeEntityProvider()
{
return array(
array(1, 30),
array(7, 30),
array(30, 30),
);
return [
[1, 30],
[7, 30],
[30, 30],
];
}

/**
Expand Down
Loading

0 comments on commit 4b1ed80

Please sign in to comment.