@@ -93,14 +93,14 @@ discard block |
||
| 93 | 93 | if ( is_array( $this->choices ) ) { |
| 94 | 94 | foreach ( $this->choices as $choice => $value ) { |
| 95 | 95 | if ( 'labels' !== $choice && true === $value ) { |
| 96 | - $this->json['choices'][ $choice ] = true; |
|
| 96 | + $this->json['choices'][$choice] = true; |
|
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | 100 | if ( is_array( $this->json['default'] ) ) { |
| 101 | 101 | foreach ( $this->json['default'] as $key => $value ) { |
| 102 | - if ( isset( $this->json['choices'][ $key ] ) && ! isset( $this->json['value'][ $key ] ) ) { |
|
| 103 | - $this->json['value'][ $key ] = $value; |
|
| 102 | + if ( isset( $this->json['choices'][$key] ) && ! isset( $this->json['value'][$key] ) ) { |
|
| 103 | + $this->json['value'][$key] = $value; |
|
| 104 | 104 | } |
| 105 | 105 | } |
| 106 | 106 | } |
@@ -206,6 +206,6 @@ discard block |
||
| 206 | 206 | if ( false === $id ) { |
| 207 | 207 | return $translation_strings; |
| 208 | 208 | } |
| 209 | - return $translation_strings[ $id ]; |
|
| 209 | + return $translation_strings[$id]; |
|
| 210 | 210 | } |
| 211 | 211 | } |