@@ -178,13 +178,18 @@ public function render(string $view, ?array $options = null, ?bool $saveData = n
178178
179179 // Was it cached?
180180 if (isset ($ this ->renderVars ['options ' ]['cache ' ])) {
181- $ cacheName = $ this ->renderVars ['options ' ]['cache_name ' ] ?? str_replace ('.php ' , '' , $ this ->renderVars ['view ' ]);
181+ $ cacheName = $ this ->renderVars ['options ' ]['cache_name ' ]
182+ ?? str_replace ('.php ' , '' , $ this ->renderVars ['view ' ]);
182183 $ cacheName = str_replace (['\\' , '/ ' ], '' , $ cacheName );
183184
184185 $ this ->renderVars ['cacheName ' ] = $ cacheName ;
185186
186187 if ($ output = cache ($ this ->renderVars ['cacheName ' ])) {
187- $ this ->logPerformance ($ this ->renderVars ['start ' ], microtime (true ), $ this ->renderVars ['view ' ]);
188+ $ this ->logPerformance (
189+ $ this ->renderVars ['start ' ],
190+ microtime (true ),
191+ $ this ->renderVars ['view ' ]
192+ );
188193
189194 return $ output ;
190195 }
@@ -193,7 +198,11 @@ public function render(string $view, ?array $options = null, ?bool $saveData = n
193198 $ this ->renderVars ['file ' ] = $ this ->viewPath . $ this ->renderVars ['view ' ];
194199
195200 if (! is_file ($ this ->renderVars ['file ' ])) {
196- $ this ->renderVars ['file ' ] = $ this ->loader ->locateFile ($ this ->renderVars ['view ' ], 'Views ' , empty ($ fileExt ) ? 'php ' : $ fileExt );
201+ $ this ->renderVars ['file ' ] = $ this ->loader ->locateFile (
202+ $ this ->renderVars ['view ' ],
203+ 'Views ' ,
204+ empty ($ fileExt ) ? 'php ' : $ fileExt
205+ );
197206 }
198207
199208 // locateFile will return an empty string if the file cannot be found.
@@ -233,7 +242,11 @@ public function render(string $view, ?array $options = null, ?bool $saveData = n
233242
234243 $ output = $ this ->decorateOutput ($ output );
235244
236- $ this ->logPerformance ($ this ->renderVars ['start ' ], microtime (true ), $ this ->renderVars ['view ' ]);
245+ $ this ->logPerformance (
246+ $ this ->renderVars ['start ' ],
247+ microtime (true ),
248+ $ this ->renderVars ['view ' ]
249+ );
237250
238251 if (($ this ->debug && (! isset ($ options ['debug ' ]) || $ options ['debug ' ] === true ))
239252 && in_array (DebugToolbar::class, service ('filters ' )->getFiltersClass ()['after ' ], true )
@@ -253,7 +266,11 @@ public function render(string $view, ?array $options = null, ?bool $saveData = n
253266
254267 // Should we cache?
255268 if (isset ($ this ->renderVars ['options ' ]['cache ' ])) {
256- cache ()->save ($ this ->renderVars ['cacheName ' ], $ output , (int ) $ this ->renderVars ['options ' ]['cache ' ]);
269+ cache ()->save (
270+ $ this ->renderVars ['cacheName ' ],
271+ $ output ,
272+ (int ) $ this ->renderVars ['options ' ]['cache ' ]
273+ );
257274 }
258275
259276 $ this ->tempData = null ;
0 commit comments