Skip to content

Commit f3396ca

Browse files
authored
Merge pull request #5324 from kenjis/fix-docs-services.rst
docs: fix services.rst
2 parents 564d654 + 1f570bd commit f3396ca

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

user_guide_src/source/concepts/services.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ to find the views at ``APPPATH.views/``. We want the developer to have the optio
9898
changing that path, though, if their needs require it. So the class accepts the ``$viewPath``
9999
as a constructor parameter. The service method looks like this::
100100

101-
public static function renderer($viewPath=APPPATH.'views/')
101+
public static function renderer($viewPath = APPPATH . 'views/')
102102
{
103103
return new \CodeIgniter\View\View($viewPath);
104104
}
@@ -121,8 +121,7 @@ within the class, and, if not, creates a new one. All of the factory methods pro
121121
{
122122
public static function routes($getShared = false)
123123
{
124-
if (! $getShared)
125-
{
124+
if (! $getShared) {
126125
return new \CodeIgniter\Router\RouteCollection();
127126
}
128127

0 commit comments

Comments
 (0)