Skip to content

Commit

Permalink
[phpcs]
Browse files Browse the repository at this point in the history
  • Loading branch information
KingYes committed May 14, 2017
1 parent 5825890 commit b725e13
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion assets/css/admin-rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/admin.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/editor-preview-rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/editor-preview.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/editor-rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/editor.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/frontend-rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/frontend.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion includes/base/controls-stack.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function get_active_controls() {

$settings = $this->get_controls_settings();

$active_controls = array_reduce( array_keys( $controls ), function ( $active_controls, $control_key ) use ( $controls, $settings ) {
$active_controls = array_reduce( array_keys( $controls ), function( $active_controls, $control_key ) use ( $controls, $settings ) {
$control = $controls[ $control_key ];

if ( $this->is_control_visible( $control, $settings ) ) {
Expand Down
6 changes: 3 additions & 3 deletions includes/controls/groups/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private function add_conditions_prefix( $field ) {
$controls_prefix = $this->get_controls_prefix();

$prefixed_condition_keys = array_map(
function ( $key ) use ( $controls_prefix ) {
function( $key ) use ( $controls_prefix ) {
return $controls_prefix . $key;
},
array_keys( $field['condition'] )
Expand All @@ -175,7 +175,7 @@ private function handle_selectors( $selectors ) {
$args = $this->get_args();

$selectors = array_combine(
array_map( function ( $key ) use ( $args ) {
array_map( function( $key ) use ( $args ) {
return str_replace( '{{SELECTOR}}', $args['selector'], $key );
}, array_keys( $selectors ) ),
$selectors
Expand All @@ -188,7 +188,7 @@ private function handle_selectors( $selectors ) {
$controls_prefix = $this->get_controls_prefix();

foreach ( $selectors as &$selector ) {
$selector = preg_replace_callback( '/(?:\{\{)\K[^.}]+(?=\.[^}]*}})/', function ( $matches ) use ( $controls_prefix ) {
$selector = preg_replace_callback( '/(?:\{\{)\K[^.}]+(?=\.[^}]*}})/', function( $matches ) use ( $controls_prefix ) {
return $controls_prefix . $matches[0];
}, $selector );
}
Expand Down
2 changes: 1 addition & 1 deletion includes/controls/groups/typography.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ protected function init_fields() {
}

protected function prepare_fields( $fields ) {
array_walk( $fields, function ( &$field, $field_name ) {
array_walk( $fields, function( &$field, $field_name ) {
if ( 'typography' === $field_name ) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion includes/css-file/global-css-file.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private function render_schemes_css() {
$scheme_controls = $widget->get_scheme_controls();

foreach ( $scheme_controls as $control ) {
$this->add_control_rules( $control, $widget->get_controls(), function ( $control ) use ( $elementor ) {
$this->add_control_rules( $control, $widget->get_controls(), function( $control ) use ( $elementor ) {
$scheme_value = $elementor->schemes_manager->get_scheme_value( $control['scheme']['type'], $control['scheme']['value'] );

if ( empty( $scheme_value ) ) {
Expand Down
2 changes: 1 addition & 1 deletion includes/maintenance-mode.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function register_settings_fields( Tools $tools ) {
'label' => __( 'Maintenance Mode', 'elementor' ),
'sections' => [
'maintenance_mode' => [
'callback' => function () {
'callback' => function() {
echo '<div>' . __( 'Set your entire website as MAINTENANCE MODE, meaning the site is offline temporarily for maintenance, or set it as COMING SOON mode, meaning the site is offline until it is ready to be launched.', 'elementor' ) . '</div>';
},
'fields' => [
Expand Down
2 changes: 1 addition & 1 deletion includes/settings/system-info/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function display_page() {
</textarea>
<script>
var textarea = document.getElementById( 'elementor-system-info-raw-code' );
var selectRange = function () {
var selectRange = function() {
textarea.setSelectionRange( 0, textarea.value.length );
};
textarea.onfocus = textarea.onblur = textarea.onclick = selectRange;
Expand Down
2 changes: 1 addition & 1 deletion includes/stylesheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private function hash_to_query( $hash ) {
private function add_query_hash( $query_hash ) {
$this->rules[ $query_hash ] = [];

uksort( $this->rules, function ( $a, $b ) {
uksort( $this->rules, function( $a, $b ) {
if ( 'all' === $a ) {
return -1;
}
Expand Down

0 comments on commit b725e13

Please sign in to comment.