From d73e6729cefb26c2fbcb16e47daefc2ba86b9697 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 28 Jan 2019 08:17:53 -0600 Subject: [PATCH] formatting --- src/Illuminate/Foundation/Application.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/Illuminate/Foundation/Application.php b/src/Illuminate/Foundation/Application.php index 63c5d0999d53..bd0865628a57 100755 --- a/src/Illuminate/Foundation/Application.php +++ b/src/Illuminate/Foundation/Application.php @@ -95,11 +95,11 @@ class Application extends Container implements ApplicationContract, HttpKernelIn protected $deferredServices = []; /** - * The custom app path defined by the developer. + * The custom application path defined by the developer. * * @var string */ - protected $path; + protected $appPath; /** * The custom database path defined by the developer. @@ -297,23 +297,25 @@ protected function bindPathsInContainer() /** * Get the path to the application "app" directory. * - * @param string $path Optionally, a path to append to the app path + * @param string $path * @return string */ public function path($path = '') { - return ($this->path ?: $this->basePath.DIRECTORY_SEPARATOR.'app').($path ? DIRECTORY_SEPARATOR.$path : $path); + $appPath = $this->appPath ?: $this->basePath.DIRECTORY_SEPARATOR.'app'; + + return $appPath.($path ? DIRECTORY_SEPARATOR.$path : $path); } /** - * Set the app directory. + * Set the application directory. * * @param string $path * @return $this */ - public function usePath($path) + public function useAppPath($path) { - $this->path = $path; + $this->appPath = $path; $this->instance('path', $path);