Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewFeeney authored and StyleCIBot committed Sep 5, 2017
1 parent 4bea099 commit 8fffad0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/Arc/CustomPostTypes/CustomPostTypeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ public function register()
);
}
}

7 changes: 3 additions & 4 deletions src/Arc/CustomPostTypes/CustomPostTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ public function registerAdminColumnHeaders($customPostType)
// Set values for admin columns
add_filter(
'manage_edit-'.$customPostType->getSlug().'_columns',
function($columns) use ($customPostType) {

function ($columns) use ($customPostType) {
$headers = [];

foreach ($customPostType->adminColumnHeaders($columns) as $key => $value) {
Expand All @@ -135,8 +134,8 @@ public function registerAdminColumnCells($customPostType)
{
add_action(
'manage_'.$customPostType->getSlug().'_posts_custom_column',
function($column, $postId) use ($customPostType) {
echo($customPostType->adminColumnCells($column, $customPostType->find($postId)));
function ($column, $postId) use ($customPostType) {
echo $customPostType->adminColumnCells($column, $customPostType->find($postId));
}, 10, 2
);
}
Expand Down

0 comments on commit 8fffad0

Please sign in to comment.