@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | 'page' => '', |
46 | 46 | 'class' => 'frm-mt-0', |
47 | 47 | ); |
48 | - $tip = array_merge( $defaults, $tip ); |
|
48 | + $tip = array_merge( $defaults, $tip ); |
|
49 | 49 | |
50 | 50 | if ( isset( $tip['link'] ) && ! isset( $tip['link']['medium'] ) ) { |
51 | 51 | $tip['link']['medium'] = 'tip'; |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | * @return array |
373 | 373 | */ |
374 | 374 | public static function get_banner_tip() { |
375 | - $tips = array( |
|
375 | + $tips = array( |
|
376 | 376 | array( |
377 | 377 | 'link' => array( |
378 | 378 | 'medium' => 'banner', |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | ), |
400 | 400 | ); |
401 | 401 | $random = rand( 0, count( $tips ) - 1 ); |
402 | - $tip = $tips[ $random ]; |
|
402 | + $tip = $tips[$random]; |
|
403 | 403 | $tip['num'] = $random; |
404 | 404 | |
405 | 405 | return $tip; |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | public static function get_random_tip( $tips ) { |
409 | 409 | $random = rand( 0, count( $tips ) - 1 ); |
410 | 410 | |
411 | - return $tips[ $random ]; |
|
411 | + return $tips[$random]; |
|
412 | 412 | } |
413 | 413 | |
414 | 414 | /** |