1 | <?php |
||
13 | abstract class AbstractApplication implements KernelTargetInterface { |
||
14 | |||
15 | use TwigTrait; |
||
16 | use TwigRenderTrait; |
||
17 | |||
18 | /** |
||
19 | * @var Application |
||
20 | */ |
||
21 | protected $model; |
||
22 | |||
23 | /** |
||
24 | * @var Localization |
||
25 | */ |
||
26 | protected $localization; |
||
27 | |||
28 | protected $rootUrl; |
||
29 | |||
30 | protected $appPath; |
||
31 | |||
32 | protected $destinationPath; |
||
33 | |||
34 | protected $appUrl; |
||
35 | |||
36 | /** @var ServiceContainer */ |
||
37 | protected $service; |
||
38 | |||
39 | /** @var Page */ |
||
40 | protected $page; |
||
41 | |||
42 | /** |
||
43 | * Creates a new Keeko Application |
||
44 | */ |
||
45 | public function __construct(Application $model, ServiceContainer $service) { |
||
50 | |||
51 | /** |
||
52 | * Returns the applications name |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getName() { |
||
59 | |||
60 | /** |
||
61 | * Returns the applications canonical name |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | public function getCanonicalName() { |
||
68 | |||
69 | /** |
||
70 | * Returns the applications title |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getTitle() { |
||
77 | |||
78 | /** |
||
79 | * Returns the service container |
||
80 | * |
||
81 | * @return ServiceContainer |
||
82 | */ |
||
83 | public function getServiceContainer() { |
||
86 | |||
87 | /** |
||
88 | * @return Page |
||
89 | */ |
||
90 | public function getPage() { |
||
93 | |||
94 | /** |
||
95 | * Returns the associated application model |
||
96 | * |
||
97 | * @return Application |
||
98 | */ |
||
99 | public function getModel() { |
||
102 | |||
103 | public function setAppPath($prefix) { |
||
107 | |||
108 | public function getAppPath() { |
||
111 | |||
112 | public function setRootUrl($root) { |
||
116 | |||
117 | public function getRootUrl() { |
||
120 | |||
121 | private function updateAppUrl() { |
||
124 | |||
125 | public function getAppUrl() { |
||
128 | |||
129 | public function setDestinationPath($destination) { |
||
132 | |||
133 | public function getDestinationPath() { |
||
136 | |||
137 | public function getTargetPath() { |
||
140 | |||
141 | public function getTailPath() { |
||
144 | |||
145 | public function setLocalization(Localization $localization) { |
||
148 | |||
149 | /** |
||
150 | * |
||
151 | * @return Localization |
||
152 | */ |
||
153 | public function getLocalization() { |
||
156 | |||
157 | public function getTwig() { |
||
160 | |||
161 | protected function runAction(AbstractAction $action, Request $request) { |
||
165 | |||
166 | abstract public function run(Request $request); |
||
167 | |||
168 | } |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.