Skip to content

Commit 0fef72b

Browse files
driesvintsgithub-actions[bot]
authored andcommitted
Fix code styling
1 parent 108bbf7 commit 0fef72b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cli/Valet/Drivers/Specific/Magento2ValetDriver.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,44 +7,44 @@
77
class Magento2ValetDriver extends ValetDriver
88
{
99
/**
10-
* @inheritdoc
10+
* {@inheritdoc}
1111
*/
1212
public function serves(string $sitePath, string $siteName, string $uri): bool
1313
{
1414
return file_exists($sitePath.'/bin/magento') && file_exists($sitePath.'/pub/index.php');
1515
}
1616

1717
/**
18-
* @inheritdoc
18+
* {@inheritdoc}
1919
*/
2020
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
2121
{
2222
$uri = preg_replace('/^\/static(\/version[\d]+)/', '/static', $uri);
2323

24-
if (file_exists($staticFilePath = $sitePath . '/pub' . $uri)) {
24+
if (file_exists($staticFilePath = $sitePath.'/pub'.$uri)) {
2525
return $staticFilePath;
2626
}
2727

2828
if (strpos($uri, '/static/') === 0) {
2929
$_GET['resource'] = preg_replace('#static/#', '', $uri, 1);
30-
include($sitePath . '/pub/static.php');
30+
include $sitePath.'/pub/static.php';
3131
exit;
3232
}
3333

3434
if (strpos($uri, '/media/') === 0) {
35-
include($sitePath . '/pub/get.php');
35+
include $sitePath.'/pub/get.php';
3636
exit;
3737
}
3838

3939
return false;
4040
}
4141

4242
/**
43-
* @inheritdoc
43+
* {@inheritdoc}
4444
*/
4545
public function frontControllerPath(string $sitePath, string $siteName, string $uri): ?string
4646
{
47-
$_SERVER['SERVER_NAME'] = $_SERVER['HTTP_HOST'];
47+
$_SERVER['SERVER_NAME'] = $_SERVER['HTTP_HOST'];
4848
$_SERVER['DOCUMENT_ROOT'] = $sitePath;
4949

5050
return $sitePath.'/pub/index.php';

0 commit comments

Comments
 (0)