Completed
Push — develop ( 483997...e5e252 )
by
unknown
19:55
created
includes/presets/register-default-templates.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -109,14 +109,14 @@
 block discarded – undo
109 109
 	$products_data = $product_manager->get_products_data( [ 'key_by' => 'id' ] );
110 110
 
111 111
 	foreach ( $placeholders as $placeholder ) {
112
-		if ( GravityKit\GravityView\Foundation\Helpers\Arr::get( $products_data, "{$placeholder['download_id']}.active" ) ) {
112
+		if ( GravityKit\GravityView\Foundation\Helpers\Arr::get( $products_data, "{$placeholder[ 'download_id' ]}.active" ) ) {
113 113
 			// Template will be loaded by the extension.
114 114
 			continue;
115 115
 		}
116 116
 
117
-		$placeholder['type']     = 'custom';
118
-		$placeholder['included'] = ! empty( GravityKitFoundation::helpers()->array->get( $products_data, "{$placeholder['download_id']}.licenses" ) );
117
+		$placeholder[ 'type' ]     = 'custom';
118
+		$placeholder[ 'included' ] = ! empty( GravityKitFoundation::helpers()->array->get( $products_data, "{$placeholder[ 'download_id' ]}.licenses" ) );
119 119
 
120
-		new GravityView_Placeholder_Template( $placeholder['slug'], $placeholder );
120
+		new GravityView_Placeholder_Template( $placeholder[ 'slug' ], $placeholder );
121 121
 	}
122 122
 }
Please login to merge, or discard this patch.