@desaiuditd Correct WP coding standards here would be:

`$labels[ $sidebar['id'] ] = $sidebar['name'];`

cf. http://make.wordpress.org/core/handbook/coding-standards/php/#space-usage