Application::path()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Nip\Router\Tests\Fixtures\Application\Library;
4
5
/**
6
 * Class Application
7
 * @package Nip\Router\Tests\Fixtures\Application\Library
8
 */
9
class Application
10
{
11
12
    /**
13
     * Determine if the application routes are cached.
14
     *
15
     * @return bool
16
     */
17
    public function routesAreCached()
18
    {
19
        return ($this->getCachedRoutesPath());
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getCachedRoutesPath() returns the type string which is incompatible with the documented return type boolean.
Loading history...
20
    }
21
22
    /**
23
     * Get the path to the routes cache file.
24
     *
25
     * @return string
26
     */
27
    public function getCachedRoutesPath()
28
    {
29
        return $this->basePath() . '/bootstrap/cache/routes';
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function path()
36
    {
37
        return $this->basePath() . '/application';
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function basePath()
44
    {
45
        return TEST_FIXTURE_PATH;
46
    }
47
}
48