@@ -16,14 +16,14 @@ class AlterCallToActionLayout {
1616 * Constructor
1717 */
1818 public function __construct () {
19- add_filter (
19+ \ add_filter (
2020 'tms/acf/layout/_call_to_action/fields ' ,
2121 [ $ this , 'alter_fields ' ],
2222 10 ,
2323 2
2424 );
2525
26- add_filter (
26+ \ add_filter (
2727 'tms/acf/layout/call_to_action/data ' ,
2828 [ $ this , 'alter_format ' ],
2929 20
@@ -38,7 +38,7 @@ public function __construct() {
3838 *
3939 * @return array
4040 */
41- public function alter_fields ( array $ fields , string $ key ) : array {
41+ public function alter_fields ( array $ fields , string $ key ): array {
4242 $ strings = [
4343 'round_image ' => [
4444 'label ' => 'Pyöreä kuva ' ,
@@ -52,14 +52,14 @@ public function alter_fields( array $fields, string $key ) : array {
5252
5353 try {
5454 $ round_image_field = ( new Field \TrueFalse ( $ strings ['round_image ' ]['label ' ] ) )
55- ->set_key ( "$ { key}_round_image " )
55+ ->set_key ( "{ $ key }_round_image " )
5656 ->set_name ( 'round_image ' )
5757 ->use_ui ()
5858 ->set_wrapper_width ( 50 )
5959 ->set_instructions ( $ strings ['round_image ' ]['instructions ' ] );
6060
6161 $ aspect_ratio_field = ( new Field \TrueFalse ( $ strings ['wide_img ' ]['label ' ] ) )
62- ->set_key ( "$ { key}_wide_img " )
62+ ->set_key ( "{ $ key }_wide_img " )
6363 ->set_name ( 'wide_img ' )
6464 ->use_ui ()
6565 ->set_wrapper_width ( 33 )
@@ -86,7 +86,7 @@ public function alter_fields( array $fields, string $key ) : array {
8686 *
8787 * @return array
8888 */
89- public function alter_format ( array $ layout ) : array {
89+ public function alter_format ( array $ layout ): array {
9090
9191 if ( empty ( $ layout ['rows ' ] ) ) {
9292 return $ layout ;
0 commit comments