1 | <?php namespace Anomaly\Streams\Platform\Application; |
||
12 | class Application |
||
13 | { |
||
14 | |||
15 | use DispatchesJobs; |
||
16 | |||
17 | /** |
||
18 | * The application locale. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $locale = null; |
||
23 | |||
24 | /** |
||
25 | * The enabled state of the application. |
||
26 | * |
||
27 | * @var bool |
||
28 | */ |
||
29 | protected $enabled = null; |
||
30 | |||
31 | /** |
||
32 | * Keep installed status around. |
||
33 | * |
||
34 | * @var bool |
||
35 | */ |
||
36 | protected $installed = null; |
||
37 | |||
38 | /** |
||
39 | * The application reference. |
||
40 | * |
||
41 | * @var string |
||
42 | */ |
||
43 | protected $reference = 'default'; |
||
44 | |||
45 | /** |
||
46 | * The application repository. |
||
47 | * |
||
48 | * @var ApplicationRepository |
||
49 | */ |
||
50 | protected $applications; |
||
51 | |||
52 | /** |
||
53 | * Create a new Application instance. |
||
54 | * |
||
55 | * @param ApplicationRepository $model |
||
|
|||
56 | */ |
||
57 | public function __construct(ApplicationRepository $applications) |
||
63 | |||
64 | /** |
||
65 | * Setup the application. |
||
66 | */ |
||
67 | public function setup() |
||
71 | |||
72 | /** |
||
73 | * Set the database table prefix going forward. |
||
74 | * We really don't need a core table from here on out. |
||
75 | */ |
||
76 | public function setTablePrefix() |
||
81 | |||
82 | /** |
||
83 | * Get the reference. |
||
84 | * |
||
85 | * @return null |
||
86 | */ |
||
87 | public function getReference() |
||
91 | |||
92 | /** |
||
93 | * Set the reference. |
||
94 | * |
||
95 | * @param $reference |
||
96 | * @return $this |
||
97 | */ |
||
98 | public function setReference($reference) |
||
104 | |||
105 | /** |
||
106 | * Get the storage path for the application. |
||
107 | * |
||
108 | * @param string $path |
||
109 | * @return string |
||
110 | */ |
||
111 | public function getStoragePath($path = '') |
||
115 | |||
116 | /** |
||
117 | * Get the public assets path for the application. |
||
118 | * |
||
119 | * @param string $path |
||
120 | * @return string |
||
121 | */ |
||
122 | public function getAssetsPath($path = '') |
||
126 | |||
127 | /** |
||
128 | * Get the resources path for the application. |
||
129 | * |
||
130 | * @param string $path |
||
131 | * @return string |
||
132 | */ |
||
133 | public function getResourcesPath($path = '') |
||
137 | |||
138 | /** |
||
139 | * Return the app reference. |
||
140 | * |
||
141 | * @return string |
||
142 | */ |
||
143 | public function tablePrefix() |
||
147 | |||
148 | /** |
||
149 | * Locate the app by request or passed |
||
150 | * variable and set the application reference. |
||
151 | * |
||
152 | * @return bool |
||
153 | */ |
||
154 | public function locate() |
||
172 | |||
173 | /** |
||
174 | * Get the resolved locale. |
||
175 | * |
||
176 | * @return string |
||
177 | */ |
||
178 | public function getLocale() |
||
182 | |||
183 | /** |
||
184 | * Return if the application is enabled. |
||
185 | * |
||
186 | * @return bool |
||
187 | */ |
||
188 | public function isEnabled() |
||
196 | |||
197 | /** |
||
198 | * Is the application installed? |
||
199 | * |
||
200 | * @return bool |
||
201 | */ |
||
202 | public function isInstalled() |
||
210 | } |
||
211 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.