| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | if ( ! isset( $slug ) ) { |
| 30 | 30 | $slug = 'formidable-applications'; |
| 31 | - $callback = array( self::class, 'landing_page' ); | |
| 31 | + $callback = array( __CLASS__, 'landing_page' ); | |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | add_submenu_page( 'formidable', 'Formidable | ' . $label, $label, $cap, $slug, $callback ); |
| 35 | 35 | } |
| @@ -130,9 +130,9 @@ | ||
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | FrmApplicationTemplate::init(); |
| 133 | 133 | |
| 134 | - return array_reduce( $applications, array( self::class, 'reduce_template' ), array() ); | |
| 134 | + return array_reduce( $applications, array( __CLASS__, 'reduce_template' ), array() ); | |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | /** |
| 138 | 138 | * @param array $total the accumulated array of reduced application data. |
| @@ -140,14 +140,9 @@ | ||
| 140 | 140 | * @return array<array> |
| 141 | 141 | */ |
| 142 | 142 | private static function reduce_template( $total, $current ) { |
| 143 | 143 | $template = new FrmApplicationTemplate( $current ); |
| 144 | - | |
| 145 | - $js_object = $template->as_js_object(); | |
| 146 | - if ( $js_object ) { | |
| 147 | - $total[] = $js_object; | |
| 148 | - } | |
| 149 | - | |
| 144 | + $total[] = $template->as_js_object(); | |
| 150 | 145 | return $total; |
| 151 | 146 | } |
| 152 | 147 | |
| 153 | 148 | /** |