@@ -26,7 +26,7 @@ function ( $block_content, $block ) {
26
26
if ( isset ( $ block ['attrs ' ]['smb ' ]['flexGrow ' ] ) ) {
27
27
$ style = $ p ->get_attribute ( 'style ' );
28
28
$ property = '--smb--flex-grow: ' ;
29
- if ( $ style && false === strpos ( $ style , $ property ) ) {
29
+ if ( ! $ style || false === strpos ( $ style , $ property ) ) {
30
30
$ style = $ style ? $ style . '; ' : $ style ;
31
31
$ p ->set_attribute ( 'style ' , trim ( $ style . $ property . $ block ['attrs ' ]['smb ' ]['flexGrow ' ] ) );
32
32
}
@@ -36,7 +36,7 @@ function ( $block_content, $block ) {
36
36
if ( isset ( $ block ['attrs ' ]['smb ' ]['flexShrink ' ] ) ) {
37
37
$ style = $ p ->get_attribute ( 'style ' );
38
38
$ property = '--smb--flex-shrink: ' ;
39
- if ( $ style && false === strpos ( $ style , $ property ) ) {
39
+ if ( ! $ style || false === strpos ( $ style , $ property ) ) {
40
40
$ style = $ style ? $ style . '; ' : $ style ;
41
41
$ p ->set_attribute ( 'style ' , trim ( $ style . $ property . $ block ['attrs ' ]['smb ' ]['flexShrink ' ] ) );
42
42
}
@@ -46,7 +46,7 @@ function ( $block_content, $block ) {
46
46
if ( isset ( $ block ['attrs ' ]['smb ' ]['flexBasis ' ] ) ) {
47
47
$ style = $ p ->get_attribute ( 'style ' );
48
48
$ property = '--smb--flex-basis: ' ;
49
- if ( $ style && false === strpos ( $ style , $ property ) ) {
49
+ if ( ! $ style || false === strpos ( $ style , $ property ) ) {
50
50
$ style = $ style ? $ style . '; ' : $ style ;
51
51
$ p ->set_attribute ( 'style ' , trim ( $ style . $ property . $ block ['attrs ' ]['smb ' ]['flexBasis ' ] ) );
52
52
}
@@ -56,7 +56,7 @@ function ( $block_content, $block ) {
56
56
if ( isset ( $ block ['attrs ' ]['smb ' ]['justifySelf ' ] ) ) {
57
57
$ style = $ p ->get_attribute ( 'style ' );
58
58
$ property = '--smb--justify-self: ' ;
59
- if ( $ style && false === strpos ( $ style , $ property ) ) {
59
+ if ( ! $ style || false === strpos ( $ style , $ property ) ) {
60
60
$ style = $ style ? $ style . '; ' : $ style ;
61
61
$ p ->set_attribute ( 'style ' , trim ( $ style . $ property . $ block ['attrs ' ]['smb ' ]['justifySelf ' ] ) );
62
62
}
@@ -66,7 +66,7 @@ function ( $block_content, $block ) {
66
66
if ( isset ( $ block ['attrs ' ]['smb ' ]['alignSelf ' ] ) ) {
67
67
$ style = $ p ->get_attribute ( 'style ' );
68
68
$ property = '--smb--align-self: ' ;
69
- if ( $ style && false === strpos ( $ style , $ property ) ) {
69
+ if ( ! $ style || false === strpos ( $ style , $ property ) ) {
70
70
$ style = $ style ? $ style . '; ' : $ style ;
71
71
$ p ->set_attribute ( 'style ' , trim ( $ style . $ property . $ block ['attrs ' ]['smb ' ]['alignSelf ' ] ) );
72
72
}
@@ -76,7 +76,7 @@ function ( $block_content, $block ) {
76
76
if ( isset ( $ block ['attrs ' ]['smb ' ]['gridColumn ' ] ) ) {
77
77
$ style = $ p ->get_attribute ( 'style ' );
78
78
$ property = '--smb--grid-column: ' ;
79
- if ( $ style && false === strpos ( $ style , $ property ) ) {
79
+ if ( ! $ style || false === strpos ( $ style , $ property ) ) {
80
80
$ style = $ style ? $ style . '; ' : $ style ;
81
81
$ p ->set_attribute ( 'style ' , trim ( $ style . $ property . $ block ['attrs ' ]['smb ' ]['gridColumn ' ] ) );
82
82
}
@@ -86,7 +86,7 @@ function ( $block_content, $block ) {
86
86
if ( isset ( $ block ['attrs ' ]['smb ' ]['gridRow ' ] ) ) {
87
87
$ style = $ p ->get_attribute ( 'style ' );
88
88
$ property = '--smb--grid-row: ' ;
89
- if ( $ style && false === strpos ( $ style , $ property ) ) {
89
+ if ( ! $ style || false === strpos ( $ style , $ property ) ) {
90
90
$ style = $ style ? $ style . '; ' : $ style ;
91
91
$ p ->set_attribute ( 'style ' , trim ( $ style . $ property . $ block ['attrs ' ]['smb ' ]['gridRow ' ] ) );
92
92
}
0 commit comments