@@ -207,8 +207,7 @@ public static function email($config = null, bool $getShared = true)
207207 {
208208 $ config = new \Config \Email ();
209209 }
210- $ email = new \CodeIgniter \Email \Email ($ config );
211- return $ email ;
210+ return new \CodeIgniter \Email \Email ($ config );
212211 }
213212
214213 /**
@@ -232,8 +231,7 @@ public static function encrypter($config = null, $getShared = false)
232231 }
233232
234233 $ encryption = new Encryption ($ config );
235- $ encrypter = $ encryption ->initialize ($ config );
236- return $ encrypter ;
234+ return $ encryption ->initialize ($ config );
237235 }
238236
239237 //--------------------------------------------------------------------
@@ -542,7 +540,7 @@ public static function parser(string $viewPath = null, $config = null, bool $get
542540 $ viewPath = $ paths ->viewDirectory ;
543541 }
544542
545- return new Parser ($ config , $ viewPath , static ::locator (true ), CI_DEBUG , static ::logger (true ));
543+ return new Parser ($ config , $ viewPath , static ::locator (), CI_DEBUG , static ::logger ());
546544 }
547545
548546 //--------------------------------------------------------------------
@@ -577,7 +575,7 @@ public static function renderer(string $viewPath = null, $config = null, bool $g
577575 $ viewPath = $ paths ->viewDirectory ;
578576 }
579577
580- return new \CodeIgniter \View \View ($ config , $ viewPath , static ::locator (true ), CI_DEBUG , static ::logger (true ));
578+ return new \CodeIgniter \View \View ($ config , $ viewPath , static ::locator (), CI_DEBUG , static ::logger ());
581579 }
582580
583581 //--------------------------------------------------------------------
@@ -705,7 +703,7 @@ public static function router(RouteCollectionInterface $routes = null, Request $
705703
706704 if (empty ($ routes ))
707705 {
708- $ routes = static ::routes (true );
706+ $ routes = static ::routes ();
709707 }
710708
711709 return new Router ($ routes , $ request );
@@ -759,7 +757,7 @@ public static function session(App $config = null, bool $getShared = true)
759757 $ config = config (App::class);
760758 }
761759
762- $ logger = static ::logger (true );
760+ $ logger = static ::logger ();
763761
764762 $ driverName = $ config ->sessionDriver ;
765763 $ driver = new $ driverName ($ config , static ::request ()->getIpAddress ());
0 commit comments