1 | <?php |
||
24 | class JobController extends Controller { |
||
25 | |||
26 | /** |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | private $userId; |
||
31 | |||
32 | /** |
||
33 | * |
||
34 | * @var OcrService |
||
35 | */ |
||
36 | private $service; |
||
37 | |||
38 | use Errors; |
||
39 | |||
40 | /** |
||
41 | * JobController constructor. |
||
42 | * |
||
43 | * @param string $AppName |
||
44 | * @param IRequest $request |
||
45 | * @param JobService $service |
||
46 | * @param |
||
47 | * $UserId |
||
48 | */ |
||
49 | public function __construct($AppName, IRequest $request, JobService $service, $UserId) { |
||
54 | |||
55 | /** |
||
56 | * Processing the srcFile(s) |
||
57 | * @NoAdminRequired |
||
58 | * |
||
59 | * @param string[] $languages |
||
60 | * - deu, eng... |
||
61 | * @param array $files |
||
62 | * @return DataResponse |
||
63 | */ |
||
64 | public function process($languages, $files) { |
||
69 | |||
70 | /** |
||
71 | * @NoAdminRequired |
||
72 | * |
||
73 | * @return \OCP\AppFramework\Http\DataResponse |
||
74 | */ |
||
75 | public function getAllJobs() { |
||
80 | |||
81 | /** |
||
82 | * @NoAdminRequired |
||
83 | * |
||
84 | * @param integer $id |
||
85 | * @return \OCP\AppFramework\Http\DataResponse |
||
86 | */ |
||
87 | public function deleteJob($id) { |
||
92 | |||
93 | /** |
||
94 | * TODO: maybe get the response over redis.. this would make sense because no additional http call is necessary then. |
||
95 | * @NoAdminRequired |
||
96 | * @NoCSRFRequired |
||
97 | * |
||
98 | * @param integer $id |
||
99 | * @param boolean $failed |
||
100 | * @param string $error |
||
101 | * @return \OCP\AppFramework\Http\DataResponse |
||
102 | */ |
||
103 | public function finish($id, $failed, $error) { |
||
108 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..