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