Issues (85)

cli/drivers/JigsawValetDriver.php (1 issue)

1
<?php
2
3
class JigsawValetDriver extends BasicValetDriver
4
{
5
    /**
6
     * Mutate the incoming URI.
7
     *
8
     * @param string $uri
9
     *
10
     * @return string
11
     */
12
    public function mutateUri($uri)
13
    {
14
        return rtrim('/build_local'.$uri, '/');
15
    }
16
17
    /**
18
     * Determine if the driver serves the request.
19
     *
20
     * @param string $sitePath
21
     * @param string $siteName
22
     * @param string $uri
23
     *
24
     * @return void
25
     */
26
    public function serves($sitePath, $siteName, $uri)
27
    {
28
        return is_dir($sitePath.'/build_local');
0 ignored issues
show
Bug Best Practice introduced by
The expression return is_dir($sitePath . '/build_local') returns the type boolean which is incompatible with the documented return type void.
Loading history...
29
    }
30
}
31