Skip to content

Commit f28129d

Browse files
committed
style: remove extra space in sample driver's docblock params, and...
convert string concatenation to interpolation
1 parent fb909d1 commit f28129d

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

cli/stubs/SampleValetDriver.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ class SampleValetDriver extends ValetDriver {
88
/**
99
* Determine if the driver serves the request.
1010
*
11-
* @param string $sitePath
12-
* @param string $siteName
13-
* @param string $uri
14-
* @return boolean
11+
* @param string $sitePath
12+
* @param string $siteName
13+
* @param string $uri
14+
* @return bool
1515
*/
1616
public function serves($sitePath, $siteName, $uri) {
17-
// if (file_exists($sitePath.'/file-that-identifies-my-framework')) {
17+
// if (file_exists("$sitePath/file-that-identifies-my-framework")) {
1818
// return true;
1919
// }
2020

@@ -24,13 +24,13 @@ public function serves($sitePath, $siteName, $uri) {
2424
/**
2525
* Determine if the incoming request is for a static file.
2626
*
27-
* @param string $sitePath
28-
* @param string $siteName
29-
* @param string $uri
27+
* @param string $sitePath
28+
* @param string $siteName
29+
* @param string $uri
3030
* @return string|false
3131
*/
3232
public function isStaticFile($sitePath, $siteName, $uri) {
33-
if (file_exists($staticFilePath = $sitePath.'/public/'.$uri)) {
33+
if (file_exists($staticFilePath = "$sitePath/public/$uri")) {
3434
return $staticFilePath;
3535
}
3636

@@ -40,12 +40,12 @@ public function isStaticFile($sitePath, $siteName, $uri) {
4040
/**
4141
* Get the fully resolved path to the application's front controller.
4242
*
43-
* @param string $sitePath
44-
* @param string $siteName
45-
* @param string $uri
43+
* @param string $sitePath
44+
* @param string $siteName
45+
* @param string $uri
4646
* @return string
4747
*/
4848
public function frontControllerPath($sitePath, $siteName, $uri) {
49-
return $sitePath.'/public/index.php';
49+
return "$sitePath/public/index.php";
5050
}
51-
}
51+
}

0 commit comments

Comments
 (0)