psalm-baseline.xml 117 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <files psalm-version="5.9.0@8b9ad1eb9e8b7d3101f949291da2b9f7767cd163">
  3. <file src="3rdparty/sabre/dav/lib/CalDAV/Calendar.php">
  4. <MoreSpecificImplementedParamType>
  5. <code>$calendarData</code>
  6. </MoreSpecificImplementedParamType>
  7. </file>
  8. <file src="3rdparty/sabre/dav/lib/CalDAV/CalendarHome.php">
  9. <MoreSpecificImplementedParamType>
  10. <code>$data</code>
  11. </MoreSpecificImplementedParamType>
  12. </file>
  13. <file src="3rdparty/sabre/dav/lib/CalDAV/Principal/User.php">
  14. <MoreSpecificImplementedParamType>
  15. <code>$data</code>
  16. </MoreSpecificImplementedParamType>
  17. </file>
  18. <file src="3rdparty/sabre/dav/lib/CardDAV/AddressBook.php">
  19. <MoreSpecificImplementedParamType>
  20. <code>$vcardData</code>
  21. </MoreSpecificImplementedParamType>
  22. </file>
  23. <file src="3rdparty/sabre/dav/lib/CardDAV/AddressBookHome.php">
  24. <InvalidPropertyAssignmentValue>
  25. <code>$principalUri</code>
  26. </InvalidPropertyAssignmentValue>
  27. <MoreSpecificImplementedParamType>
  28. <code>$data</code>
  29. </MoreSpecificImplementedParamType>
  30. </file>
  31. <file src="3rdparty/sabre/dav/lib/CardDAV/Card.php">
  32. <MoreSpecificImplementedParamType>
  33. <code>$cardData</code>
  34. </MoreSpecificImplementedParamType>
  35. </file>
  36. <file src="3rdparty/sabre/dav/lib/DAVACL/AbstractPrincipalCollection.php">
  37. <LessSpecificImplementedReturnType>
  38. <code>array</code>
  39. </LessSpecificImplementedReturnType>
  40. </file>
  41. <file src="apps/admin_audit/lib/Listener/CriticalActionPerformedEventListener.php">
  42. <MissingTemplateParam>
  43. <code>IEventListener</code>
  44. </MissingTemplateParam>
  45. </file>
  46. <file src="apps/comments/lib/Listener/CommentsEntityEventListener.php">
  47. <MissingTemplateParam>
  48. <code>IEventListener</code>
  49. </MissingTemplateParam>
  50. </file>
  51. <file src="apps/comments/lib/Listener/LoadAdditionalScripts.php">
  52. <MissingTemplateParam>
  53. <code>IEventListener</code>
  54. </MissingTemplateParam>
  55. </file>
  56. <file src="apps/comments/lib/Listener/LoadSidebarScripts.php">
  57. <MissingTemplateParam>
  58. <code>IEventListener</code>
  59. </MissingTemplateParam>
  60. </file>
  61. <file src="apps/comments/lib/Notification/Listener.php">
  62. <LessSpecificReturnStatement>
  63. <code>$uids</code>
  64. </LessSpecificReturnStatement>
  65. <MoreSpecificReturnType>
  66. <code><![CDATA[list<string>]]></code>
  67. </MoreSpecificReturnType>
  68. </file>
  69. <file src="apps/contactsinteraction/lib/Listeners/ContactInteractionListener.php">
  70. <MissingTemplateParam>
  71. <code>IEventListener</code>
  72. </MissingTemplateParam>
  73. </file>
  74. <file src="apps/dav/appinfo/v1/caldav.php">
  75. <UndefinedGlobalVariable>
  76. <code>$baseuri</code>
  77. </UndefinedGlobalVariable>
  78. </file>
  79. <file src="apps/dav/appinfo/v1/carddav.php">
  80. <UndefinedGlobalVariable>
  81. <code>$baseuri</code>
  82. </UndefinedGlobalVariable>
  83. </file>
  84. <file src="apps/dav/appinfo/v1/publicwebdav.php">
  85. <InternalMethod>
  86. <code>\OC\Files\Filesystem::logWarningWhenAddingStorageWrapper($previousLog)</code>
  87. <code>\OC\Files\Filesystem::logWarningWhenAddingStorageWrapper(false)</code>
  88. </InternalMethod>
  89. <UndefinedGlobalVariable>
  90. <code>$baseuri</code>
  91. </UndefinedGlobalVariable>
  92. </file>
  93. <file src="apps/dav/appinfo/v1/webdav.php">
  94. <UndefinedGlobalVariable>
  95. <code>$baseuri</code>
  96. </UndefinedGlobalVariable>
  97. </file>
  98. <file src="apps/dav/appinfo/v2/direct.php">
  99. <UndefinedGlobalVariable>
  100. <code>$baseuri</code>
  101. </UndefinedGlobalVariable>
  102. </file>
  103. <file src="apps/dav/appinfo/v2/remote.php">
  104. <UndefinedGlobalVariable>
  105. <code>$baseuri</code>
  106. </UndefinedGlobalVariable>
  107. </file>
  108. <file src="apps/dav/lib/AppInfo/Application.php">
  109. <InvalidArgument>
  110. <code>CalendarDeletionDefaultUpdaterListener::class</code>
  111. </InvalidArgument>
  112. </file>
  113. <file src="apps/dav/lib/CalDAV/BirthdayService.php">
  114. <UndefinedMethod>
  115. <code>setDateTime</code>
  116. <code>setDateTime</code>
  117. </UndefinedMethod>
  118. <UndefinedPropertyFetch>
  119. <code><![CDATA[$existingBirthday->VEVENT->DTSTART]]></code>
  120. <code><![CDATA[$existingBirthday->VEVENT->SUMMARY]]></code>
  121. <code><![CDATA[$newCalendarData->VEVENT->DTSTART]]></code>
  122. <code><![CDATA[$newCalendarData->VEVENT->SUMMARY]]></code>
  123. </UndefinedPropertyFetch>
  124. </file>
  125. <file src="apps/dav/lib/CalDAV/CachedSubscription.php">
  126. <ParamNameMismatch>
  127. <code>$calendarData</code>
  128. </ParamNameMismatch>
  129. </file>
  130. <file src="apps/dav/lib/CalDAV/CachedSubscriptionObject.php">
  131. <NullableReturnStatement>
  132. <code><![CDATA[$this->objectData['calendardata']]]></code>
  133. </NullableReturnStatement>
  134. <ParamNameMismatch>
  135. <code>$calendarData</code>
  136. <code>$calendarData</code>
  137. </ParamNameMismatch>
  138. </file>
  139. <file src="apps/dav/lib/CalDAV/CalDavBackend.php">
  140. <InvalidNullableReturnType>
  141. <code>array</code>
  142. <code>array</code>
  143. </InvalidNullableReturnType>
  144. <LessSpecificReturnStatement>
  145. <code>Reader::read($objectData)</code>
  146. </LessSpecificReturnStatement>
  147. <MoreSpecificImplementedParamType>
  148. <code>$objectData</code>
  149. <code>$uris</code>
  150. <code>$uris</code>
  151. </MoreSpecificImplementedParamType>
  152. <MoreSpecificReturnType>
  153. <code>VCalendar</code>
  154. </MoreSpecificReturnType>
  155. <NullableReturnStatement>
  156. <code><![CDATA[$this->atomic(function () use ($calendarId, $syncToken, $syncLevel, $limit, $calendarType) {
  157. // Current synctoken
  158. $qb = $this->db->getQueryBuilder();
  159. $qb->select('synctoken')
  160. ->from('calendars')
  161. ->where(
  162. $qb->expr()->eq('id', $qb->createNamedParameter($calendarId))
  163. );
  164. $stmt = $qb->executeQuery();
  165. $currentToken = $stmt->fetchOne();
  166. if ($currentToken === false) {
  167. return null;
  168. }
  169. $result = [
  170. 'syncToken' => $currentToken,
  171. 'added' => [],
  172. 'modified' => [],
  173. 'deleted' => [],
  174. ];
  175. if ($syncToken) {
  176. $qb = $this->db->getQueryBuilder();
  177. $qb->select('uri', 'operation')
  178. ->from('calendarchanges')
  179. ->where(
  180. $qb->expr()->andX(
  181. $qb->expr()->gte('synctoken', $qb->createNamedParameter($syncToken)),
  182. $qb->expr()->lt('synctoken', $qb->createNamedParameter($currentToken)),
  183. $qb->expr()->eq('calendarid', $qb->createNamedParameter($calendarId)),
  184. $qb->expr()->eq('calendartype', $qb->createNamedParameter($calendarType))
  185. )
  186. )->orderBy('synctoken');
  187. if (is_int($limit) && $limit > 0) {
  188. $qb->setMaxResults($limit);
  189. }
  190. // Fetching all changes
  191. $stmt = $qb->executeQuery();
  192. $changes = [];
  193. // This loop ensures that any duplicates are overwritten, only the
  194. // last change on a node is relevant.
  195. while ($row = $stmt->fetch()) {
  196. $changes[$row['uri']] = $row['operation'];
  197. }
  198. $stmt->closeCursor();
  199. foreach ($changes as $uri => $operation) {
  200. switch ($operation) {
  201. case 1:
  202. $result['added'][] = $uri;
  203. break;
  204. case 2:
  205. $result['modified'][] = $uri;
  206. break;
  207. case 3:
  208. $result['deleted'][] = $uri;
  209. break;
  210. }
  211. }
  212. } else {
  213. // No synctoken supplied, this is the initial sync.
  214. $qb = $this->db->getQueryBuilder();
  215. $qb->select('uri')
  216. ->from('calendarobjects')
  217. ->where(
  218. $qb->expr()->andX(
  219. $qb->expr()->eq('calendarid', $qb->createNamedParameter($calendarId)),
  220. $qb->expr()->eq('calendartype', $qb->createNamedParameter($calendarType))
  221. )
  222. );
  223. $stmt = $qb->executeQuery();
  224. $result['added'] = $stmt->fetchAll(\PDO::FETCH_COLUMN);
  225. $stmt->closeCursor();
  226. }
  227. return $result;
  228. }, $this->db)]]></code>
  229. <code>null</code>
  230. </NullableReturnStatement>
  231. </file>
  232. <file src="apps/dav/lib/CalDAV/CalendarHome.php">
  233. <InvalidNullableReturnType>
  234. <code>INode</code>
  235. </InvalidNullableReturnType>
  236. <LessSpecificImplementedReturnType>
  237. <code>INode</code>
  238. </LessSpecificImplementedReturnType>
  239. <NullableReturnStatement>
  240. <code><![CDATA[$calendarPlugin->getCalendarInCalendarHome($this->principalInfo['uri'], $calendarUri)]]></code>
  241. </NullableReturnStatement>
  242. <UndefinedInterfaceMethod>
  243. <code>calendarSearch</code>
  244. </UndefinedInterfaceMethod>
  245. </file>
  246. <file src="apps/dav/lib/CalDAV/CalendarRoot.php">
  247. <ParamNameMismatch>
  248. <code>$principal</code>
  249. </ParamNameMismatch>
  250. </file>
  251. <file src="apps/dav/lib/CalDAV/Plugin.php">
  252. <ImplementedReturnTypeMismatch>
  253. <code>string|null</code>
  254. </ImplementedReturnTypeMismatch>
  255. </file>
  256. <file src="apps/dav/lib/CalDAV/Principal/Collection.php">
  257. <ParamNameMismatch>
  258. <code>$principalInfo</code>
  259. </ParamNameMismatch>
  260. </file>
  261. <file src="apps/dav/lib/CalDAV/PublicCalendar.php">
  262. <MoreSpecificImplementedParamType>
  263. <code>$paths</code>
  264. </MoreSpecificImplementedParamType>
  265. </file>
  266. <file src="apps/dav/lib/CalDAV/Reminder/NotificationProvider/AbstractProvider.php">
  267. <LessSpecificReturnStatement>
  268. <code><![CDATA[$vevent->DTEND]]></code>
  269. </LessSpecificReturnStatement>
  270. <UndefinedMethod>
  271. <code>hasTime</code>
  272. <code>isFloating</code>
  273. <code>isFloating</code>
  274. </UndefinedMethod>
  275. </file>
  276. <file src="apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php">
  277. <LessSpecificReturnStatement>
  278. <code>$emailAddresses</code>
  279. </LessSpecificReturnStatement>
  280. <MoreSpecificReturnType>
  281. <code><![CDATA[array<string, array{LANG?: string}>]]></code>
  282. </MoreSpecificReturnType>
  283. <UndefinedMethod>
  284. <code>getDateTime</code>
  285. <code>getDateTime</code>
  286. <code>isFloating</code>
  287. </UndefinedMethod>
  288. </file>
  289. <file src="apps/dav/lib/CalDAV/Reminder/NotificationProviderManager.php">
  290. <UndefinedConstant>
  291. <code>$provider::NOTIFICATION_TYPE</code>
  292. </UndefinedConstant>
  293. </file>
  294. <file src="apps/dav/lib/CalDAV/Reminder/Notifier.php">
  295. <TypeDoesNotContainType>
  296. <code>$diff === false</code>
  297. </TypeDoesNotContainType>
  298. </file>
  299. <file src="apps/dav/lib/CalDAV/Reminder/ReminderService.php">
  300. <LessSpecificReturnStatement>
  301. <code>$vevents</code>
  302. <code>VObject\Reader::read($calendarData,
  303. VObject\Reader::OPTION_FORGIVING)</code>
  304. </LessSpecificReturnStatement>
  305. <MoreSpecificReturnType>
  306. <code>VObject\Component\VCalendar|null</code>
  307. <code>VObject\Component\VEvent[]</code>
  308. </MoreSpecificReturnType>
  309. <UndefinedMethod>
  310. <code>getDateTime</code>
  311. <code>getDateTime</code>
  312. </UndefinedMethod>
  313. <UndefinedPropertyFetch>
  314. <code><![CDATA[$valarm->parent->UID]]></code>
  315. </UndefinedPropertyFetch>
  316. </file>
  317. <file src="apps/dav/lib/CalDAV/ResourceBooking/AbstractPrincipalBackend.php">
  318. <InvalidNullableReturnType>
  319. <code>array</code>
  320. </InvalidNullableReturnType>
  321. <InvalidReturnStatement>
  322. <code>$principals</code>
  323. </InvalidReturnStatement>
  324. <InvalidReturnType>
  325. <code>string[]</code>
  326. </InvalidReturnType>
  327. <NullableReturnStatement>
  328. <code>null</code>
  329. <code>null</code>
  330. </NullableReturnStatement>
  331. </file>
  332. <file src="apps/dav/lib/CalDAV/Schedule/IMipPlugin.php">
  333. <RedundantCast>
  334. <code><![CDATA[(string)$iTipMessage->recipientName]]></code>
  335. </RedundantCast>
  336. <RedundantCondition>
  337. <code><![CDATA[!empty($modified['old']) && is_array($modified['old'])]]></code>
  338. <code>is_array($modified['old'])</code>
  339. </RedundantCondition>
  340. </file>
  341. <file src="apps/dav/lib/CalDAV/Schedule/IMipService.php">
  342. <UndefinedMethod>
  343. <code>getNormalizedValue</code>
  344. <code>getNormalizedValue</code>
  345. </UndefinedMethod>
  346. </file>
  347. <file src="apps/dav/lib/CalDAV/Schedule/Plugin.php">
  348. <InvalidArgument>
  349. <code>[$aclPlugin, 'propFind']</code>
  350. <code>[$aclPlugin, 'propFind']</code>
  351. </InvalidArgument>
  352. <LessSpecificReturnStatement>
  353. <code><![CDATA[$vevent->DTEND]]></code>
  354. </LessSpecificReturnStatement>
  355. <UndefinedInterfaceMethod>
  356. <code>get</code>
  357. <code>getChildren</code>
  358. </UndefinedInterfaceMethod>
  359. <UndefinedMethod>
  360. <code>getDateTime</code>
  361. <code>hasTime</code>
  362. <code>isFloating</code>
  363. <code>isFloating</code>
  364. <code>principalSearch</code>
  365. </UndefinedMethod>
  366. </file>
  367. <file src="apps/dav/lib/CalDAV/Search/SearchPlugin.php">
  368. <InvalidNullableReturnType>
  369. <code>bool</code>
  370. </InvalidNullableReturnType>
  371. </file>
  372. <file src="apps/dav/lib/CalDAV/Search/Xml/Filter/ParamFilter.php">
  373. <InvalidReturnStatement>
  374. <code><![CDATA[[
  375. 'property' => $property,
  376. 'parameter' => $parameter,
  377. ]]]></code>
  378. </InvalidReturnStatement>
  379. <InvalidReturnType>
  380. <code>string</code>
  381. </InvalidReturnType>
  382. </file>
  383. <file src="apps/dav/lib/CalDAV/Search/Xml/Request/CalendarSearchReport.php">
  384. <TypeDoesNotContainType>
  385. <code>!is_array($newProps['filters']['comps'])</code>
  386. <code>!is_array($newProps['filters']['params'])</code>
  387. <code>!is_array($newProps['filters']['props'])</code>
  388. <code>!isset($newProps['filters']['comps']) || !is_array($newProps['filters']['comps'])</code>
  389. <code>!isset($newProps['filters']['params']) || !is_array($newProps['filters']['params'])</code>
  390. <code>!isset($newProps['filters']['props']) || !is_array($newProps['filters']['props'])</code>
  391. </TypeDoesNotContainType>
  392. </file>
  393. <file src="apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php">
  394. <InvalidArgument>
  395. <code>$webcalData</code>
  396. </InvalidArgument>
  397. </file>
  398. <file src="apps/dav/lib/CardDAV/AddressBookImpl.php">
  399. <InvalidArgument>
  400. <code><![CDATA[$this->getKey()]]></code>
  401. <code><![CDATA[$this->getKey()]]></code>
  402. </InvalidArgument>
  403. <LessSpecificReturnStatement>
  404. <code>Reader::read($cardData)</code>
  405. </LessSpecificReturnStatement>
  406. <MoreSpecificReturnType>
  407. <code>VCard</code>
  408. </MoreSpecificReturnType>
  409. </file>
  410. <file src="apps/dav/lib/CardDAV/AddressBookRoot.php">
  411. <ParamNameMismatch>
  412. <code>$principal</code>
  413. </ParamNameMismatch>
  414. </file>
  415. <file src="apps/dav/lib/CardDAV/CardDavBackend.php">
  416. <FalsableReturnStatement>
  417. <code>false</code>
  418. </FalsableReturnStatement>
  419. <LessSpecificReturnStatement>
  420. <code>Reader::read($cardData)</code>
  421. </LessSpecificReturnStatement>
  422. <MoreSpecificReturnType>
  423. <code>VCard</code>
  424. </MoreSpecificReturnType>
  425. <TypeDoesNotContainType>
  426. <code>$addressBooks[$row['id']][$readOnlyPropertyName] === 0</code>
  427. </TypeDoesNotContainType>
  428. </file>
  429. <file src="apps/dav/lib/CardDAV/MultiGetExportPlugin.php">
  430. <InvalidNullableReturnType>
  431. <code>bool</code>
  432. </InvalidNullableReturnType>
  433. </file>
  434. <file src="apps/dav/lib/CardDAV/PhotoCache.php">
  435. <InvalidNullableReturnType>
  436. <code>string</code>
  437. </InvalidNullableReturnType>
  438. <LessSpecificReturnStatement>
  439. <code><![CDATA[[
  440. 'Content-Type' => $type,
  441. 'body' => $val
  442. ]]]></code>
  443. </LessSpecificReturnStatement>
  444. <MoreSpecificReturnType>
  445. <code>false|array{body: string, Content-Type: string}</code>
  446. </MoreSpecificReturnType>
  447. <NullableReturnStatement>
  448. <code>$type</code>
  449. </NullableReturnStatement>
  450. </file>
  451. <file src="apps/dav/lib/CardDAV/Plugin.php">
  452. <ImplementedReturnTypeMismatch>
  453. <code>string|null</code>
  454. </ImplementedReturnTypeMismatch>
  455. </file>
  456. <file src="apps/dav/lib/CardDAV/SystemAddressbook.php">
  457. <InvalidNullableReturnType>
  458. <code>getChanges</code>
  459. </InvalidNullableReturnType>
  460. <NullableReturnStatement>
  461. <code>null</code>
  462. </NullableReturnStatement>
  463. </file>
  464. <file src="apps/dav/lib/CardDAV/UserAddressBooks.php">
  465. <InvalidArgument>
  466. <code><![CDATA[$this->principalUri]]></code>
  467. <code><![CDATA[$this->principalUri]]></code>
  468. </InvalidArgument>
  469. </file>
  470. <file src="apps/dav/lib/CardDAV/Xml/Groups.php">
  471. <InvalidPropertyAssignmentValue>
  472. <code>$groups</code>
  473. </InvalidPropertyAssignmentValue>
  474. </file>
  475. <file src="apps/dav/lib/Comments/CommentsPlugin.php">
  476. <UndefinedFunction>
  477. <code>\Sabre\HTTP\toDate($value)</code>
  478. </UndefinedFunction>
  479. </file>
  480. <file src="apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php">
  481. <InvalidNullableReturnType>
  482. <code>bool</code>
  483. </InvalidNullableReturnType>
  484. </file>
  485. <file src="apps/dav/lib/Connector/Sabre/Auth.php">
  486. <LessSpecificReturnStatement>
  487. <code>$data</code>
  488. </LessSpecificReturnStatement>
  489. <MoreSpecificReturnType>
  490. <code>array{bool, string}</code>
  491. </MoreSpecificReturnType>
  492. </file>
  493. <file src="apps/dav/lib/Connector/Sabre/BearerAuth.php">
  494. <UndefinedInterfaceMethod>
  495. <code>tryTokenLogin</code>
  496. </UndefinedInterfaceMethod>
  497. </file>
  498. <file src="apps/dav/lib/Connector/Sabre/Directory.php">
  499. <InvalidPropertyAssignmentValue>
  500. <code>$nodes</code>
  501. </InvalidPropertyAssignmentValue>
  502. <InvalidReturnStatement>
  503. <code><![CDATA[$this->dirContent]]></code>
  504. </InvalidReturnStatement>
  505. <InvalidReturnType>
  506. <code>\Sabre\DAV\INode[]</code>
  507. </InvalidReturnType>
  508. <LessSpecificReturnStatement>
  509. <code><![CDATA[$this->node]]></code>
  510. </LessSpecificReturnStatement>
  511. <MoreSpecificReturnType>
  512. <code>Folder</code>
  513. </MoreSpecificReturnType>
  514. <NullArgument>
  515. <code>null</code>
  516. <code>null</code>
  517. <code>null</code>
  518. </NullArgument>
  519. <ParamNameMismatch>
  520. <code>$fullSourcePath</code>
  521. </ParamNameMismatch>
  522. </file>
  523. <file src="apps/dav/lib/Connector/Sabre/File.php">
  524. <LessSpecificReturnStatement>
  525. <code><![CDATA[$this->node]]></code>
  526. </LessSpecificReturnStatement>
  527. <MoreSpecificImplementedParamType>
  528. <code>$data</code>
  529. </MoreSpecificImplementedParamType>
  530. <MoreSpecificReturnType>
  531. <code>\OCP\Files\File</code>
  532. </MoreSpecificReturnType>
  533. </file>
  534. <file src="apps/dav/lib/Connector/Sabre/FilesReportPlugin.php">
  535. <InvalidArgument>
  536. <code>0</code>
  537. <code>200</code>
  538. </InvalidArgument>
  539. <InvalidNullableReturnType>
  540. <code>bool</code>
  541. </InvalidNullableReturnType>
  542. <TooManyArguments>
  543. <code>new PreconditionFailed('Cannot filter by non-existing tag', 0, $e)</code>
  544. </TooManyArguments>
  545. <UndefinedClass>
  546. <code>\OCA\Circles\Api\v1\Circles</code>
  547. </UndefinedClass>
  548. <UndefinedInterfaceMethod>
  549. <code>getById</code>
  550. <code>getPath</code>
  551. </UndefinedInterfaceMethod>
  552. </file>
  553. <file src="apps/dav/lib/Connector/Sabre/Node.php">
  554. <InvalidNullableReturnType>
  555. <code>int</code>
  556. <code>integer</code>
  557. </InvalidNullableReturnType>
  558. <NullableReturnStatement>
  559. <code><![CDATA[$this->info->getId()]]></code>
  560. <code><![CDATA[$this->info->getId()]]></code>
  561. </NullableReturnStatement>
  562. </file>
  563. <file src="apps/dav/lib/Connector/Sabre/Principal.php">
  564. <InvalidNullableReturnType>
  565. <code>array</code>
  566. </InvalidNullableReturnType>
  567. <InvalidReturnStatement>
  568. <code>$principals</code>
  569. </InvalidReturnStatement>
  570. <InvalidReturnType>
  571. <code>string[]</code>
  572. </InvalidReturnType>
  573. <InvalidScalarArgument>
  574. <code>$results</code>
  575. </InvalidScalarArgument>
  576. <NullableReturnStatement>
  577. <code><![CDATA[$this->circleToPrincipal($decodedName)
  578. ?: $this->circleToPrincipal($name)]]></code>
  579. <code>null</code>
  580. <code>null</code>
  581. <code>null</code>
  582. <code>null</code>
  583. <code>null</code>
  584. <code>null</code>
  585. <code>null</code>
  586. </NullableReturnStatement>
  587. <UndefinedClass>
  588. <code>\OCA\Circles\Api\v1\Circles</code>
  589. <code>\OCA\Circles\Api\v1\Circles</code>
  590. </UndefinedClass>
  591. </file>
  592. <file src="apps/dav/lib/Connector/Sabre/QuotaPlugin.php">
  593. <UndefinedInterfaceMethod>
  594. <code>getPath</code>
  595. <code>getPath</code>
  596. </UndefinedInterfaceMethod>
  597. </file>
  598. <file src="apps/dav/lib/Connector/Sabre/ServerFactory.php">
  599. <TooManyArguments>
  600. <code>new \OCA\DAV\Connector\Sabre\QuotaPlugin($view, true)</code>
  601. </TooManyArguments>
  602. </file>
  603. <file src="apps/dav/lib/Connector/Sabre/ShareTypeList.php">
  604. <InvalidArgument>
  605. <code>$shareType</code>
  606. </InvalidArgument>
  607. </file>
  608. <file src="apps/dav/lib/Connector/Sabre/ShareeList.php">
  609. <InvalidArgument>
  610. <code><![CDATA[$share->getShareType()]]></code>
  611. </InvalidArgument>
  612. </file>
  613. <file src="apps/dav/lib/Connector/Sabre/TagsPlugin.php">
  614. <NullableReturnStatement>
  615. <code>null</code>
  616. </NullableReturnStatement>
  617. <UndefinedInterfaceMethod>
  618. <code>getId</code>
  619. </UndefinedInterfaceMethod>
  620. </file>
  621. <file src="apps/dav/lib/Controller/InvitationResponseController.php">
  622. <UndefinedPropertyAssignment>
  623. <code><![CDATA[$vEvent->DTSTAMP]]></code>
  624. </UndefinedPropertyAssignment>
  625. </file>
  626. <file src="apps/dav/lib/DAV/CustomPropertiesBackend.php">
  627. <InvalidArgument>
  628. <code>$whereValues</code>
  629. </InvalidArgument>
  630. </file>
  631. <file src="apps/dav/lib/DAV/GroupPrincipalBackend.php">
  632. <InvalidNullableReturnType>
  633. <code>array</code>
  634. <code>string</code>
  635. </InvalidNullableReturnType>
  636. <InvalidReturnStatement>
  637. <code>$principals</code>
  638. </InvalidReturnStatement>
  639. <InvalidReturnType>
  640. <code>string[]</code>
  641. </InvalidReturnType>
  642. <MoreSpecificImplementedParamType>
  643. <code>$members</code>
  644. </MoreSpecificImplementedParamType>
  645. <NullableReturnStatement>
  646. <code>null</code>
  647. <code>null</code>
  648. <code>null</code>
  649. <code>null</code>
  650. <code>null</code>
  651. <code>null</code>
  652. <code>null</code>
  653. </NullableReturnStatement>
  654. </file>
  655. <file src="apps/dav/lib/DAV/SystemPrincipalBackend.php">
  656. <InvalidNullableReturnType>
  657. <code>array</code>
  658. </InvalidNullableReturnType>
  659. <NullableReturnStatement>
  660. <code>null</code>
  661. </NullableReturnStatement>
  662. </file>
  663. <file src="apps/dav/lib/Direct/Server.php">
  664. <UndefinedThisPropertyAssignment>
  665. <code><![CDATA[$this->enablePropfindDepthInfinityf]]></code>
  666. </UndefinedThisPropertyAssignment>
  667. </file>
  668. <file src="apps/dav/lib/Files/FileSearchBackend.php">
  669. <InvalidReturnStatement>
  670. <code>$value</code>
  671. </InvalidReturnStatement>
  672. <InvalidReturnType>
  673. <code>?string</code>
  674. </InvalidReturnType>
  675. <ParamNameMismatch>
  676. <code>$search</code>
  677. </ParamNameMismatch>
  678. <RedundantCondition>
  679. <code><![CDATA[$date->getTimestamp() !== false]]></code>
  680. </RedundantCondition>
  681. <UndefinedPropertyFetch>
  682. <code><![CDATA[$operator->arguments[0]->name]]></code>
  683. <code><![CDATA[$operator->arguments[0]->name]]></code>
  684. </UndefinedPropertyFetch>
  685. </file>
  686. <file src="apps/dav/lib/Files/LazySearchBackend.php">
  687. <InvalidReturnStatement>
  688. <code><![CDATA[$this->backend->getArbiterPath()]]></code>
  689. </InvalidReturnStatement>
  690. <InvalidReturnType>
  691. <code>bool</code>
  692. </InvalidReturnType>
  693. </file>
  694. <file src="apps/dav/lib/HookManager.php">
  695. <InvalidPropertyAssignmentValue>
  696. <code><![CDATA[$this->usersToDelete]]></code>
  697. <code><![CDATA[$this->usersToDelete]]></code>
  698. </InvalidPropertyAssignmentValue>
  699. </file>
  700. <file src="apps/dav/lib/Listener/ActivityUpdaterListener.php">
  701. <MissingTemplateParam>
  702. <code>IEventListener</code>
  703. </MissingTemplateParam>
  704. </file>
  705. <file src="apps/dav/lib/Listener/AddressbookListener.php">
  706. <MissingTemplateParam>
  707. <code>IEventListener</code>
  708. </MissingTemplateParam>
  709. </file>
  710. <file src="apps/dav/lib/Listener/BirthdayListener.php">
  711. <MissingTemplateParam>
  712. <code>IEventListener</code>
  713. </MissingTemplateParam>
  714. </file>
  715. <file src="apps/dav/lib/Listener/CalendarContactInteractionListener.php">
  716. <MissingTemplateParam>
  717. <code>IEventListener</code>
  718. </MissingTemplateParam>
  719. </file>
  720. <file src="apps/dav/lib/Listener/CalendarObjectReminderUpdaterListener.php">
  721. <MissingTemplateParam>
  722. <code>IEventListener</code>
  723. </MissingTemplateParam>
  724. </file>
  725. <file src="apps/dav/lib/Listener/CalendarPublicationListener.php">
  726. <MissingTemplateParam>
  727. <code>IEventListener</code>
  728. </MissingTemplateParam>
  729. </file>
  730. <file src="apps/dav/lib/Listener/CalendarShareUpdateListener.php">
  731. <MissingTemplateParam>
  732. <code>IEventListener</code>
  733. </MissingTemplateParam>
  734. </file>
  735. <file src="apps/dav/lib/Listener/CardListener.php">
  736. <MissingTemplateParam>
  737. <code>IEventListener</code>
  738. </MissingTemplateParam>
  739. </file>
  740. <file src="apps/dav/lib/Listener/ClearPhotoCacheListener.php">
  741. <MissingTemplateParam>
  742. <code>IEventListener</code>
  743. </MissingTemplateParam>
  744. </file>
  745. <file src="apps/dav/lib/Listener/SubscriptionListener.php">
  746. <MissingTemplateParam>
  747. <code>IEventListener</code>
  748. </MissingTemplateParam>
  749. </file>
  750. <file src="apps/dav/lib/Listener/TrustedServerRemovedListener.php">
  751. <MissingTemplateParam>
  752. <code>IEventListener</code>
  753. </MissingTemplateParam>
  754. </file>
  755. <file src="apps/dav/lib/Listener/UserPreferenceListener.php">
  756. <MissingTemplateParam>
  757. <code>IEventListener</code>
  758. </MissingTemplateParam>
  759. </file>
  760. <file src="apps/dav/lib/Migration/BuildCalendarSearchIndexBackgroundJob.php">
  761. <ParamNameMismatch>
  762. <code>$arguments</code>
  763. </ParamNameMismatch>
  764. </file>
  765. <file src="apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php">
  766. <ParamNameMismatch>
  767. <code>$arguments</code>
  768. </ParamNameMismatch>
  769. </file>
  770. <file src="apps/dav/lib/Search/ContactsSearchProvider.php">
  771. <InvalidOperand>
  772. <code><![CDATA[$query->getCursor()]]></code>
  773. </InvalidOperand>
  774. </file>
  775. <file src="apps/dav/lib/Search/EventsSearchProvider.php">
  776. <FalsableReturnStatement>
  777. <code><![CDATA[$this->l10n->l('date', $startDateTime, ['width' => 'medium'])]]></code>
  778. </FalsableReturnStatement>
  779. <InvalidOperand>
  780. <code><![CDATA[$query->getCursor()]]></code>
  781. </InvalidOperand>
  782. <InvalidPropertyAssignmentValue>
  783. <code><![CDATA[[
  784. 'ATTENDEE' => ['CN'],
  785. 'ORGANIZER' => ['CN'],
  786. ]]]></code>
  787. </InvalidPropertyAssignmentValue>
  788. <InvalidReturnStatement>
  789. <code><![CDATA[$this->l10n->l('date', $startDateTime, ['width' => 'medium'])]]></code>
  790. </InvalidReturnStatement>
  791. <InvalidReturnType>
  792. <code>string</code>
  793. </InvalidReturnType>
  794. <UndefinedMethod>
  795. <code>getDateTime</code>
  796. <code>getDateTime</code>
  797. <code>hasTime</code>
  798. <code>isFloating</code>
  799. <code>isFloating</code>
  800. </UndefinedMethod>
  801. </file>
  802. <file src="apps/dav/lib/Search/TasksSearchProvider.php">
  803. <InvalidOperand>
  804. <code><![CDATA[$query->getCursor()]]></code>
  805. </InvalidOperand>
  806. <UndefinedMethod>
  807. <code>getDateTime</code>
  808. <code>getDateTime</code>
  809. <code>hasTime</code>
  810. </UndefinedMethod>
  811. </file>
  812. <file src="apps/dav/lib/SystemTag/SystemTagsObjectMappingCollection.php">
  813. <ParamNameMismatch>
  814. <code>$tagId</code>
  815. <code>$tagName</code>
  816. </ParamNameMismatch>
  817. </file>
  818. <file src="apps/dav/lib/SystemTag/SystemTagsObjectTypeCollection.php">
  819. <ParamNameMismatch>
  820. <code>$objectName</code>
  821. </ParamNameMismatch>
  822. </file>
  823. <file src="apps/dav/lib/Traits/PrincipalProxyTrait.php">
  824. <MoreSpecificImplementedParamType>
  825. <code>$members</code>
  826. </MoreSpecificImplementedParamType>
  827. </file>
  828. <file src="apps/dav/lib/Upload/AssemblyStream.php">
  829. <FalsableReturnStatement>
  830. <code>false</code>
  831. </FalsableReturnStatement>
  832. <InvalidPropertyAssignmentValue>
  833. <code><![CDATA[$this->currentStream]]></code>
  834. </InvalidPropertyAssignmentValue>
  835. <InvalidReturnStatement>
  836. <code>$context</code>
  837. </InvalidReturnStatement>
  838. <InvalidReturnType>
  839. <code>array</code>
  840. </InvalidReturnType>
  841. <RedundantFunctionCall>
  842. <code>array_values</code>
  843. </RedundantFunctionCall>
  844. </file>
  845. <file src="apps/dav/lib/Upload/ChunkingV2Plugin.php">
  846. <UndefinedInterfaceMethod>
  847. <code>getId</code>
  848. <code>getId</code>
  849. <code>getId</code>
  850. <code>getInternalPath</code>
  851. <code>getNode</code>
  852. <code>getSize</code>
  853. </UndefinedInterfaceMethod>
  854. </file>
  855. <file src="apps/dav/lib/UserMigration/ContactsMigrator.php">
  856. <LessSpecificReturnStatement>
  857. <code><![CDATA[[
  858. 'name' => $addressBookNode->getName(),
  859. 'displayName' => $addressBookInfo['{DAV:}displayname'],
  860. 'description' => $addressBookInfo['{' . CardDAVPlugin::NS_CARDDAV . '}addressbook-description'],
  861. 'vCards' => $vCards,
  862. ]]]></code>
  863. </LessSpecificReturnStatement>
  864. <MoreSpecificReturnType>
  865. <code>array{name: string, displayName: string, description: ?string, vCards: VCard[]}</code>
  866. </MoreSpecificReturnType>
  867. </file>
  868. <file src="apps/encryption/lib/Command/FixKeyLocation.php">
  869. <MoreSpecificReturnType>
  870. <code><![CDATA[\Generator<File>]]></code>
  871. </MoreSpecificReturnType>
  872. </file>
  873. <file src="apps/encryption/lib/Crypto/Crypt.php">
  874. <TypeDoesNotContainType>
  875. <code>get_class($res) === 'OpenSSLAsymmetricKey'</code>
  876. </TypeDoesNotContainType>
  877. </file>
  878. <file src="apps/encryption/lib/Crypto/Encryption.php">
  879. <ImplementedParamTypeMismatch>
  880. <code>$position</code>
  881. </ImplementedParamTypeMismatch>
  882. </file>
  883. <file src="apps/encryption/lib/KeyManager.php">
  884. <InvalidThrow>
  885. <code>throw $exception;</code>
  886. </InvalidThrow>
  887. </file>
  888. <file src="apps/encryption/lib/Session.php">
  889. <TooManyArguments>
  890. <code>new Exceptions\PrivateKeyMissingException('please try to log-out and log-in again', 0)</code>
  891. </TooManyArguments>
  892. </file>
  893. <file src="apps/encryption/lib/Util.php">
  894. <LessSpecificReturnStatement>
  895. <code><![CDATA[$this->files->getMount($path)->getStorage()]]></code>
  896. </LessSpecificReturnStatement>
  897. <MoreSpecificReturnType>
  898. <code>\OC\Files\Storage\Storage|null</code>
  899. </MoreSpecificReturnType>
  900. </file>
  901. <file src="apps/federatedfilesharing/lib/Controller/RequestHandlerController.php">
  902. <InvalidArgument>
  903. <code>$id</code>
  904. <code>$id</code>
  905. <code>$id</code>
  906. <code>$id</code>
  907. <code>$id</code>
  908. <code>$id</code>
  909. <code>$remoteId</code>
  910. </InvalidArgument>
  911. </file>
  912. <file src="apps/federatedfilesharing/lib/FederatedShareProvider.php">
  913. <InvalidArgument>
  914. <code>$shareId</code>
  915. <code>$shareId</code>
  916. <code>$shareId</code>
  917. <code>$shareId</code>
  918. <code>(int)$data['id']</code>
  919. </InvalidArgument>
  920. <LessSpecificReturnStatement>
  921. <code>$nodes[0]</code>
  922. </LessSpecificReturnStatement>
  923. <MoreSpecificReturnType>
  924. <code>\OCP\Files\File|\OCP\Files\Folder</code>
  925. </MoreSpecificReturnType>
  926. </file>
  927. <file src="apps/federatedfilesharing/lib/Listeners/LoadAdditionalScriptsListener.php">
  928. <MissingTemplateParam>
  929. <code>IEventListener</code>
  930. </MissingTemplateParam>
  931. </file>
  932. <file src="apps/federatedfilesharing/lib/Notifications.php">
  933. <InvalidReturnType>
  934. <code>bool</code>
  935. <code>bool</code>
  936. <code>bool</code>
  937. </InvalidReturnType>
  938. </file>
  939. <file src="apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php">
  940. <InvalidArgument>
  941. <code>$id</code>
  942. <code>$id</code>
  943. <code>$id</code>
  944. <code>$id</code>
  945. </InvalidArgument>
  946. <InvalidReturnStatement>
  947. <code>$shareId</code>
  948. </InvalidReturnStatement>
  949. <InvalidReturnType>
  950. <code>string</code>
  951. </InvalidReturnType>
  952. <InvalidScalarArgument>
  953. <code>(int)$share['id']</code>
  954. </InvalidScalarArgument>
  955. </file>
  956. <file src="apps/federation/lib/DbHandler.php">
  957. <LessSpecificReturnStatement>
  958. <code>$result</code>
  959. </LessSpecificReturnStatement>
  960. <MoreSpecificReturnType>
  961. <code><![CDATA[list<array{id: int, url: string, url_hash: string, shared_secret: ?string, status: int, sync_token: ?string}>]]></code>
  962. </MoreSpecificReturnType>
  963. </file>
  964. <file src="apps/federation/lib/Listener/SabrePluginAuthInitListener.php">
  965. <MissingTemplateParam>
  966. <code>IEventListener</code>
  967. </MissingTemplateParam>
  968. </file>
  969. <file src="apps/federation/lib/TrustedServers.php">
  970. <LessSpecificReturnStatement>
  971. <code><![CDATA[$this->dbHandler->getAllServer()]]></code>
  972. </LessSpecificReturnStatement>
  973. <MoreSpecificReturnType>
  974. <code><![CDATA[list<array{id: int, url: string, url_hash: string, shared_secret: string, status: int, sync_token: string}>]]></code>
  975. </MoreSpecificReturnType>
  976. </file>
  977. <file src="apps/files/ajax/download.php">
  978. <InvalidArgument>
  979. <code>$files_list</code>
  980. </InvalidArgument>
  981. </file>
  982. <file src="apps/files/lib/Activity/Provider.php">
  983. <FalsableReturnStatement>
  984. <code><![CDATA[$this->fileEncrypted[$fileId]]]></code>
  985. </FalsableReturnStatement>
  986. <LessSpecificReturnStatement>
  987. <code>$folder</code>
  988. <code><![CDATA[$this->fileEncrypted[$fileId]]]></code>
  989. </LessSpecificReturnStatement>
  990. <MoreSpecificReturnType>
  991. <code>Folder</code>
  992. </MoreSpecificReturnType>
  993. <TypeDoesNotContainType>
  994. <code><![CDATA[$this->fileIsEncrypted]]></code>
  995. <code><![CDATA[$this->fileIsEncrypted]]></code>
  996. <code><![CDATA[$this->fileIsEncrypted]]></code>
  997. <code><![CDATA[$this->fileIsEncrypted]]></code>
  998. <code><![CDATA[$this->fileIsEncrypted]]></code>
  999. <code><![CDATA[$this->fileIsEncrypted]]></code>
  1000. <code><![CDATA[$this->fileIsEncrypted]]></code>
  1001. <code><![CDATA[$this->fileIsEncrypted]]></code>
  1002. <code><![CDATA[$this->fileIsEncrypted]]></code>
  1003. <code><![CDATA[$this->fileIsEncrypted]]></code>
  1004. <code><![CDATA[$this->fileIsEncrypted]]></code>
  1005. <code><![CDATA[$this->fileIsEncrypted]]></code>
  1006. <code><![CDATA[$this->fileIsEncrypted]]></code>
  1007. <code><![CDATA[$this->fileIsEncrypted]]></code>
  1008. </TypeDoesNotContainType>
  1009. </file>
  1010. <file src="apps/files/lib/Command/ScanAppData.php">
  1011. <NullArgument>
  1012. <code>null</code>
  1013. <code>null</code>
  1014. </NullArgument>
  1015. </file>
  1016. <file src="apps/files/lib/Controller/DirectEditingController.php">
  1017. <InvalidArgument>
  1018. <code>$templateId</code>
  1019. </InvalidArgument>
  1020. <UndefinedInterfaceMethod>
  1021. <code>getTemplates</code>
  1022. <code>open</code>
  1023. </UndefinedInterfaceMethod>
  1024. </file>
  1025. <file src="apps/files/lib/Helper.php">
  1026. <UndefinedInterfaceMethod>
  1027. <code>$file</code>
  1028. <code>$i</code>
  1029. <code>$i</code>
  1030. <code>$i</code>
  1031. <code>$i</code>
  1032. <code>$i</code>
  1033. <code>$i</code>
  1034. <code>$i</code>
  1035. <code>$i</code>
  1036. <code>$i</code>
  1037. <code>$i</code>
  1038. <code>$i</code>
  1039. <code>$i</code>
  1040. </UndefinedInterfaceMethod>
  1041. </file>
  1042. <file src="apps/files/lib/Listener/LoadSidebarListener.php">
  1043. <MissingTemplateParam>
  1044. <code>IEventListener</code>
  1045. </MissingTemplateParam>
  1046. </file>
  1047. <file src="apps/files/lib/Listener/RenderReferenceEventListener.php">
  1048. <MissingTemplateParam>
  1049. <code>IEventListener</code>
  1050. </MissingTemplateParam>
  1051. </file>
  1052. <file src="apps/files/lib/Service/OwnershipTransferService.php">
  1053. <TypeDoesNotContainType>
  1054. <code>empty($encryptedFiles)</code>
  1055. </TypeDoesNotContainType>
  1056. <UndefinedInterfaceMethod>
  1057. <code>isReadyForUser</code>
  1058. </UndefinedInterfaceMethod>
  1059. </file>
  1060. <file src="apps/files_external/appinfo/routes.php">
  1061. <InvalidScope>
  1062. <code>$this</code>
  1063. </InvalidScope>
  1064. </file>
  1065. <file src="apps/files_external/lib/Controller/StoragesController.php">
  1066. <RedundantCast>
  1067. <code><![CDATA[(int)$e->getCode()]]></code>
  1068. <code>(int)$status</code>
  1069. </RedundantCast>
  1070. </file>
  1071. <file src="apps/files_external/lib/Lib/Backend/Backend.php">
  1072. <LessSpecificReturnStatement>
  1073. <code><![CDATA[$this->storageClass]]></code>
  1074. </LessSpecificReturnStatement>
  1075. <MoreSpecificReturnType>
  1076. <code><![CDATA[class-string<IStorage>]]></code>
  1077. </MoreSpecificReturnType>
  1078. </file>
  1079. <file src="apps/files_external/lib/Lib/Storage/SFTP.php">
  1080. <InternalMethod>
  1081. <code>put</code>
  1082. </InternalMethod>
  1083. </file>
  1084. <file src="apps/files_external/lib/Lib/Storage/SMB.php">
  1085. <RedundantCast>
  1086. <code><![CDATA[(int)$e->getCode()]]></code>
  1087. <code><![CDATA[(int)$e->getCode()]]></code>
  1088. <code><![CDATA[(int)$e->getCode()]]></code>
  1089. <code><![CDATA[(int)$e->getCode()]]></code>
  1090. <code><![CDATA[(int)$e->getCode()]]></code>
  1091. <code><![CDATA[(int)$e->getCode()]]></code>
  1092. <code><![CDATA[(int)$e->getCode()]]></code>
  1093. </RedundantCast>
  1094. </file>
  1095. <file src="apps/files_external/lib/Lib/Storage/Swift.php">
  1096. <InvalidArgument>
  1097. <code><![CDATA[$object->lastModified]]></code>
  1098. </InvalidArgument>
  1099. <InvalidNullableReturnType>
  1100. <code>filetype</code>
  1101. <code>fopen</code>
  1102. </InvalidNullableReturnType>
  1103. </file>
  1104. <file src="apps/files_external/lib/Listener/GroupDeletedListener.php">
  1105. <MissingTemplateParam>
  1106. <code>IEventListener</code>
  1107. </MissingTemplateParam>
  1108. </file>
  1109. <file src="apps/files_external/lib/Listener/StorePasswordListener.php">
  1110. <MissingTemplateParam>
  1111. <code>IEventListener</code>
  1112. </MissingTemplateParam>
  1113. </file>
  1114. <file src="apps/files_external/lib/Listener/UserDeletedListener.php">
  1115. <MissingTemplateParam>
  1116. <code>IEventListener</code>
  1117. </MissingTemplateParam>
  1118. </file>
  1119. <file src="apps/files_external/lib/Migration/DummyUserSession.php">
  1120. <InvalidReturnType>
  1121. <code>login</code>
  1122. </InvalidReturnType>
  1123. </file>
  1124. <file src="apps/files_external/lib/MountConfig.php">
  1125. <InternalMethod>
  1126. <code>decrypt</code>
  1127. <code>encrypt</code>
  1128. <code>setIV</code>
  1129. <code>setIV</code>
  1130. </InternalMethod>
  1131. <TooManyArguments>
  1132. <code>test</code>
  1133. </TooManyArguments>
  1134. </file>
  1135. <file src="apps/files_sharing/lib/Controller/ShareAPIController.php">
  1136. <RedundantCast>
  1137. <code>(int)$code</code>
  1138. <code>(int)$code</code>
  1139. </RedundantCast>
  1140. <UndefinedClass>
  1141. <code>\OCA\Circles\Api\v1\Circles</code>
  1142. <code>\OCA\Circles\Api\v1\Circles</code>
  1143. </UndefinedClass>
  1144. <UndefinedDocblockClass>
  1145. <code><![CDATA[$this->getRoomShareHelper()]]></code>
  1146. <code><![CDATA[$this->getRoomShareHelper()]]></code>
  1147. <code><![CDATA[$this->getRoomShareHelper()]]></code>
  1148. <code>\OCA\Talk\Share\Helper\ShareAPIController</code>
  1149. </UndefinedDocblockClass>
  1150. </file>
  1151. <file src="apps/files_sharing/lib/Controller/ShareController.php">
  1152. <InvalidArgument>
  1153. <code>$files_list</code>
  1154. </InvalidArgument>
  1155. </file>
  1156. <file src="apps/files_sharing/lib/External/Manager.php">
  1157. <LessSpecificReturnStatement>
  1158. <code>$mount</code>
  1159. </LessSpecificReturnStatement>
  1160. <MoreSpecificReturnType>
  1161. <code>Mount</code>
  1162. </MoreSpecificReturnType>
  1163. </file>
  1164. <file src="apps/files_sharing/lib/External/Scanner.php">
  1165. <MoreSpecificImplementedParamType>
  1166. <code>$cacheData</code>
  1167. </MoreSpecificImplementedParamType>
  1168. </file>
  1169. <file src="apps/files_sharing/lib/Listener/LoadAdditionalListener.php">
  1170. <MissingTemplateParam>
  1171. <code>IEventListener</code>
  1172. </MissingTemplateParam>
  1173. </file>
  1174. <file src="apps/files_sharing/lib/Listener/ShareInteractionListener.php">
  1175. <MissingTemplateParam>
  1176. <code>IEventListener</code>
  1177. </MissingTemplateParam>
  1178. </file>
  1179. <file src="apps/files_sharing/lib/Listener/UserAddedToGroupListener.php">
  1180. <MissingTemplateParam>
  1181. <code>IEventListener</code>
  1182. </MissingTemplateParam>
  1183. </file>
  1184. <file src="apps/files_sharing/lib/Listener/UserShareAcceptanceListener.php">
  1185. <MissingTemplateParam>
  1186. <code>IEventListener</code>
  1187. </MissingTemplateParam>
  1188. </file>
  1189. <file src="apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php">
  1190. <InvalidArgument>
  1191. <code><![CDATA[$exception->getMessage()]]></code>
  1192. </InvalidArgument>
  1193. </file>
  1194. <file src="apps/files_sharing/lib/MountProvider.php">
  1195. <RedundantFunctionCall>
  1196. <code>array_values</code>
  1197. </RedundantFunctionCall>
  1198. </file>
  1199. <file src="apps/files_sharing/lib/ShareBackend/File.php">
  1200. <InvalidArgument>
  1201. <code>$itemSource</code>
  1202. <code>$itemSource</code>
  1203. </InvalidArgument>
  1204. <MoreSpecificImplementedParamType>
  1205. <code>$shareWith</code>
  1206. </MoreSpecificImplementedParamType>
  1207. </file>
  1208. <file src="apps/files_sharing/lib/ShareBackend/Folder.php">
  1209. <UndefinedInterfaceMethod>
  1210. <code>fetchRow</code>
  1211. </UndefinedInterfaceMethod>
  1212. </file>
  1213. <file src="apps/files_sharing/lib/SharedMount.php">
  1214. <InvalidReturnType>
  1215. <code>bool</code>
  1216. </InvalidReturnType>
  1217. </file>
  1218. <file src="apps/files_sharing/lib/SharedStorage.php">
  1219. <FalsableReturnStatement>
  1220. <code><![CDATA[$this->sourceRootInfo]]></code>
  1221. </FalsableReturnStatement>
  1222. <InvalidNullableReturnType>
  1223. <code>ICacheEntry</code>
  1224. </InvalidNullableReturnType>
  1225. <InvalidReturnStatement>
  1226. <code>new FailedCache()</code>
  1227. </InvalidReturnStatement>
  1228. <NullableReturnStatement>
  1229. <code><![CDATA[$this->sourceRootInfo]]></code>
  1230. </NullableReturnStatement>
  1231. </file>
  1232. <file src="apps/files_sharing/lib/Updater.php">
  1233. <UndefinedMethod>
  1234. <code>moveMount</code>
  1235. </UndefinedMethod>
  1236. </file>
  1237. <file src="apps/files_sharing/templates/public.php">
  1238. <RedundantCondition>
  1239. <code>$_['hideFileList'] !== true</code>
  1240. <code><![CDATA[isset($_['hideFileList']) && $_['hideFileList'] !== true]]></code>
  1241. </RedundantCondition>
  1242. </file>
  1243. <file src="apps/files_trashbin/lib/Listeners/LoadAdditionalScripts.php">
  1244. <MissingTemplateParam>
  1245. <code>IEventListener</code>
  1246. </MissingTemplateParam>
  1247. </file>
  1248. <file src="apps/files_trashbin/lib/Sabre/AbstractTrash.php">
  1249. <InvalidNullableReturnType>
  1250. <code>int</code>
  1251. </InvalidNullableReturnType>
  1252. <NullableReturnStatement>
  1253. <code><![CDATA[$this->data->getId()]]></code>
  1254. </NullableReturnStatement>
  1255. </file>
  1256. <file src="apps/files_trashbin/lib/Sabre/AbstractTrashFolder.php">
  1257. <InvalidReturnStatement>
  1258. <code>$entry</code>
  1259. </InvalidReturnStatement>
  1260. <InvalidReturnType>
  1261. <code>ITrash</code>
  1262. </InvalidReturnType>
  1263. </file>
  1264. <file src="apps/files_trashbin/lib/Sabre/RestoreFolder.php">
  1265. <InvalidNullableReturnType>
  1266. <code>getChild</code>
  1267. </InvalidNullableReturnType>
  1268. <NullableReturnStatement>
  1269. <code>null</code>
  1270. </NullableReturnStatement>
  1271. </file>
  1272. <file src="apps/files_trashbin/lib/Sabre/RootCollection.php">
  1273. <MismatchingDocblockReturnType>
  1274. <code>INode</code>
  1275. </MismatchingDocblockReturnType>
  1276. </file>
  1277. <file src="apps/files_trashbin/lib/Sabre/TrashRoot.php">
  1278. <InvalidReturnStatement>
  1279. <code>$entry</code>
  1280. </InvalidReturnStatement>
  1281. <InvalidReturnType>
  1282. <code>ITrash</code>
  1283. </InvalidReturnType>
  1284. </file>
  1285. <file src="apps/files_trashbin/lib/Trash/LegacyTrashBackend.php">
  1286. <RedundantCondition>
  1287. <code>$trashFiles</code>
  1288. </RedundantCondition>
  1289. <TypeDoesNotContainType>
  1290. <code>null</code>
  1291. </TypeDoesNotContainType>
  1292. <UndefinedInterfaceMethod>
  1293. <code>$file</code>
  1294. <code>getById</code>
  1295. </UndefinedInterfaceMethod>
  1296. </file>
  1297. <file src="apps/files_trashbin/lib/Trashbin.php">
  1298. <FalsableReturnStatement>
  1299. <code>false</code>
  1300. </FalsableReturnStatement>
  1301. <InvalidArgument>
  1302. <code>$timestamp</code>
  1303. </InvalidArgument>
  1304. <InvalidScalarArgument>
  1305. <code>$timestamp</code>
  1306. </InvalidScalarArgument>
  1307. </file>
  1308. <file src="apps/files_versions/appinfo/routes.php">
  1309. <InvalidScope>
  1310. <code>$this</code>
  1311. <code>$this</code>
  1312. </InvalidScope>
  1313. </file>
  1314. <file src="apps/files_versions/lib/Listener/FileEventsListener.php">
  1315. <MissingTemplateParam>
  1316. <code>IEventListener</code>
  1317. </MissingTemplateParam>
  1318. </file>
  1319. <file src="apps/files_versions/lib/Listener/LoadAdditionalListener.php">
  1320. <MissingTemplateParam>
  1321. <code>IEventListener</code>
  1322. </MissingTemplateParam>
  1323. </file>
  1324. <file src="apps/files_versions/lib/Listener/LoadSidebarListener.php">
  1325. <MissingTemplateParam>
  1326. <code>IEventListener</code>
  1327. </MissingTemplateParam>
  1328. </file>
  1329. <file src="apps/files_versions/lib/Sabre/RestoreFolder.php">
  1330. <InvalidNullableReturnType>
  1331. <code>getChild</code>
  1332. </InvalidNullableReturnType>
  1333. <NullableReturnStatement>
  1334. <code>null</code>
  1335. </NullableReturnStatement>
  1336. </file>
  1337. <file src="apps/files_versions/lib/Sabre/VersionHome.php">
  1338. <InvalidNullableReturnType>
  1339. <code>getChild</code>
  1340. </InvalidNullableReturnType>
  1341. </file>
  1342. <file src="apps/files_versions/lib/Storage.php">
  1343. <RedundantCondition>
  1344. <code><![CDATA[$storage1->instanceOfStorage('\OC\Files\ObjectStore\ObjectStoreStorage')]]></code>
  1345. </RedundantCondition>
  1346. </file>
  1347. <file src="apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php">
  1348. <InvalidArgument>
  1349. <code><![CDATA[$this->retries + 1]]></code>
  1350. </InvalidArgument>
  1351. </file>
  1352. <file src="apps/oauth2/lib/Controller/OauthApiController.php">
  1353. <NoInterfaceProperties>
  1354. <code><![CDATA[$this->request->server]]></code>
  1355. </NoInterfaceProperties>
  1356. </file>
  1357. <file src="apps/provisioning_api/lib/Controller/UsersController.php">
  1358. <TypeDoesNotContainNull>
  1359. <code>$groupid === null</code>
  1360. <code>$groupid === null</code>
  1361. </TypeDoesNotContainNull>
  1362. </file>
  1363. <file src="apps/provisioning_api/lib/Listener/UserDeletedListener.php">
  1364. <MissingTemplateParam>
  1365. <code>IEventListener</code>
  1366. </MissingTemplateParam>
  1367. </file>
  1368. <file src="apps/provisioning_api/lib/Middleware/ProvisioningApiMiddleware.php">
  1369. <InvalidReturnType>
  1370. <code>Response</code>
  1371. </InvalidReturnType>
  1372. </file>
  1373. <file src="apps/settings/lib/AppInfo/Application.php">
  1374. <InvalidArgument>
  1375. <code>AppPasswordCreatedActivityListener::class</code>
  1376. </InvalidArgument>
  1377. <UndefinedInterfaceMethod>
  1378. <code>getSettingsManager</code>
  1379. </UndefinedInterfaceMethod>
  1380. </file>
  1381. <file src="apps/settings/lib/Controller/AppSettingsController.php">
  1382. <UndefinedInterfaceMethod>
  1383. <code>ignoreNextcloudRequirementForApp</code>
  1384. </UndefinedInterfaceMethod>
  1385. </file>
  1386. <file src="apps/settings/lib/Hooks.php">
  1387. <InvalidArrayOffset>
  1388. <code><![CDATA[[$user->getEMailAddress() => $user->getDisplayName()]]]></code>
  1389. </InvalidArrayOffset>
  1390. </file>
  1391. <file src="apps/settings/lib/Listener/GroupRemovedListener.php">
  1392. <MissingTemplateParam>
  1393. <code>IEventListener</code>
  1394. </MissingTemplateParam>
  1395. </file>
  1396. <file src="apps/settings/lib/Listener/UserAddedToGroupActivityListener.php">
  1397. <MissingTemplateParam>
  1398. <code>IEventListener</code>
  1399. </MissingTemplateParam>
  1400. </file>
  1401. <file src="apps/settings/lib/Listener/UserRemovedFromGroupActivityListener.php">
  1402. <MissingTemplateParam>
  1403. <code>IEventListener</code>
  1404. </MissingTemplateParam>
  1405. </file>
  1406. <file src="apps/settings/lib/Settings/Admin/Security.php">
  1407. <UndefinedInterfaceMethod>
  1408. <code>isReady</code>
  1409. </UndefinedInterfaceMethod>
  1410. </file>
  1411. <file src="apps/settings/lib/Settings/Admin/Sharing.php">
  1412. <NullArgument>
  1413. <code>null</code>
  1414. </NullArgument>
  1415. </file>
  1416. <file src="apps/sharebymail/lib/ShareByMailProvider.php">
  1417. <InvalidArgument>
  1418. <code><![CDATA[$share->getId()]]></code>
  1419. <code>(int)$data['id']</code>
  1420. </InvalidArgument>
  1421. </file>
  1422. <file src="apps/systemtags/lib/Activity/Listener.php">
  1423. <InvalidArgument>
  1424. <code><![CDATA[$event->getObjectId()]]></code>
  1425. <code><![CDATA[$event->getObjectId()]]></code>
  1426. </InvalidArgument>
  1427. </file>
  1428. <file src="apps/theming/lib/Jobs/MigrateBackgroundImages.php">
  1429. <OverriddenInterfaceConstant>
  1430. <code>TIME_SENSITIVE</code>
  1431. </OverriddenInterfaceConstant>
  1432. </file>
  1433. <file src="apps/theming/lib/Listener/BeforePreferenceListener.php">
  1434. <MissingTemplateParam>
  1435. <code>IEventListener</code>
  1436. </MissingTemplateParam>
  1437. </file>
  1438. <file src="apps/theming/lib/Listener/BeforeTemplateRenderedListener.php">
  1439. <MissingTemplateParam>
  1440. <code>IEventListener</code>
  1441. </MissingTemplateParam>
  1442. </file>
  1443. <file src="apps/theming/lib/Util.php">
  1444. <InvalidReturnStatement>
  1445. <code><![CDATA[array_values($color->getRgb())]]></code>
  1446. </InvalidReturnStatement>
  1447. <InvalidReturnType>
  1448. <code>array{0: int, 1: int, 2: int}</code>
  1449. </InvalidReturnType>
  1450. </file>
  1451. <file src="apps/twofactor_backupcodes/lib/Listener/ActivityPublisher.php">
  1452. <MissingTemplateParam>
  1453. <code>IEventListener</code>
  1454. </MissingTemplateParam>
  1455. </file>
  1456. <file src="apps/twofactor_backupcodes/lib/Listener/ClearNotifications.php">
  1457. <MissingTemplateParam>
  1458. <code>IEventListener</code>
  1459. </MissingTemplateParam>
  1460. </file>
  1461. <file src="apps/twofactor_backupcodes/lib/Listener/ProviderDisabled.php">
  1462. <MissingTemplateParam>
  1463. <code>IEventListener</code>
  1464. </MissingTemplateParam>
  1465. </file>
  1466. <file src="apps/twofactor_backupcodes/lib/Listener/ProviderEnabled.php">
  1467. <MissingTemplateParam>
  1468. <code>IEventListener</code>
  1469. </MissingTemplateParam>
  1470. </file>
  1471. <file src="apps/twofactor_backupcodes/lib/Listener/RegistryUpdater.php">
  1472. <MissingTemplateParam>
  1473. <code>IEventListener</code>
  1474. </MissingTemplateParam>
  1475. </file>
  1476. <file src="apps/twofactor_backupcodes/lib/Listener/UserDeleted.php">
  1477. <MissingTemplateParam>
  1478. <code>IEventListener</code>
  1479. </MissingTemplateParam>
  1480. </file>
  1481. <file src="apps/updatenotification/lib/Notification/BackgroundJob.php">
  1482. <InvalidArgument>
  1483. <code>false</code>
  1484. </InvalidArgument>
  1485. <InvalidPropertyAssignmentValue>
  1486. <code><![CDATA[$this->users]]></code>
  1487. </InvalidPropertyAssignmentValue>
  1488. </file>
  1489. <file src="apps/user_ldap/ajax/getNewServerConfigPrefix.php">
  1490. <InvalidScalarArgument>
  1491. <code>$ln + 1</code>
  1492. </InvalidScalarArgument>
  1493. </file>
  1494. <file src="apps/user_ldap/appinfo/routes.php">
  1495. <InvalidScope>
  1496. <code>$this</code>
  1497. </InvalidScope>
  1498. </file>
  1499. <file src="apps/user_ldap/lib/Access.php">
  1500. <InvalidReturnStatement>
  1501. <code>$uuid</code>
  1502. <code>$values</code>
  1503. </InvalidReturnStatement>
  1504. <InvalidReturnType>
  1505. <code>string[]</code>
  1506. </InvalidReturnType>
  1507. <RedundantCast>
  1508. <code><![CDATA[(int)$e->getCode()]]></code>
  1509. </RedundantCast>
  1510. </file>
  1511. <file src="apps/user_ldap/lib/Connection.php">
  1512. <NoValue>
  1513. <code>$subj</code>
  1514. </NoValue>
  1515. <ParadoxicalCondition>
  1516. <code>default:
  1517. $subj = $key;
  1518. break;</code>
  1519. </ParadoxicalCondition>
  1520. </file>
  1521. <file src="apps/user_ldap/lib/Group_LDAP.php">
  1522. <InvalidScalarArgument>
  1523. <code>$groupID</code>
  1524. </InvalidScalarArgument>
  1525. </file>
  1526. <file src="apps/user_ldap/lib/Group_Proxy.php">
  1527. <ParamNameMismatch>
  1528. <code>$gid</code>
  1529. </ParamNameMismatch>
  1530. </file>
  1531. <file src="apps/user_ldap/lib/Jobs/Sync.php">
  1532. <InvalidOperand>
  1533. <code>$i</code>
  1534. </InvalidOperand>
  1535. <NullArgument>
  1536. <code>null</code>
  1537. </NullArgument>
  1538. </file>
  1539. <file src="apps/user_ldap/lib/Mapping/AbstractMapping.php">
  1540. <RedundantCondition>
  1541. <code>isset($qb)</code>
  1542. </RedundantCondition>
  1543. <TypeDoesNotContainNull>
  1544. <code>isset($qb)</code>
  1545. </TypeDoesNotContainNull>
  1546. </file>
  1547. <file src="apps/user_ldap/lib/User/Manager.php">
  1548. <InvalidDocblock>
  1549. <code>public function setLdapAccess(Access $access) {</code>
  1550. </InvalidDocblock>
  1551. </file>
  1552. <file src="apps/user_ldap/lib/User/User.php">
  1553. <FalsableReturnStatement>
  1554. <code><![CDATA[$this->avatarImage]]></code>
  1555. </FalsableReturnStatement>
  1556. <InvalidPropertyAssignmentValue>
  1557. <code><![CDATA[$this->refreshedFeatures]]></code>
  1558. </InvalidPropertyAssignmentValue>
  1559. <InvalidReturnType>
  1560. <code>null</code>
  1561. </InvalidReturnType>
  1562. <RedundantCondition>
  1563. <code><![CDATA[$aQuota && (count($aQuota) > 0)]]></code>
  1564. </RedundantCondition>
  1565. </file>
  1566. <file src="apps/user_ldap/lib/User_LDAP.php">
  1567. <ImplementedReturnTypeMismatch>
  1568. <code>string|false</code>
  1569. </ImplementedReturnTypeMismatch>
  1570. <MoreSpecificImplementedParamType>
  1571. <code>$limit</code>
  1572. <code>$offset</code>
  1573. </MoreSpecificImplementedParamType>
  1574. <NullableReturnStatement>
  1575. <code>null</code>
  1576. </NullableReturnStatement>
  1577. <RedundantCondition>
  1578. <code><![CDATA[$displayName && (count($displayName) > 0)]]></code>
  1579. <code>is_string($dn)</code>
  1580. </RedundantCondition>
  1581. </file>
  1582. <file src="apps/user_ldap/lib/User_Proxy.php">
  1583. <ParamNameMismatch>
  1584. <code>$uid</code>
  1585. </ParamNameMismatch>
  1586. </file>
  1587. <file src="apps/user_ldap/lib/Wizard.php">
  1588. <InvalidArrayOffset>
  1589. <code>$possibleAttrs[$i]</code>
  1590. </InvalidArrayOffset>
  1591. </file>
  1592. <file src="apps/user_status/lib/AppInfo/Application.php">
  1593. <UndefinedInterfaceMethod>
  1594. <code>registerProvider</code>
  1595. </UndefinedInterfaceMethod>
  1596. </file>
  1597. <file src="apps/user_status/lib/Listener/BeforeTemplateRenderedListener.php">
  1598. <MissingTemplateParam>
  1599. <code>IEventListener</code>
  1600. </MissingTemplateParam>
  1601. </file>
  1602. <file src="apps/user_status/lib/Listener/UserDeletedListener.php">
  1603. <MissingTemplateParam>
  1604. <code>IEventListener</code>
  1605. </MissingTemplateParam>
  1606. </file>
  1607. <file src="apps/user_status/lib/Listener/UserLiveStatusListener.php">
  1608. <MissingTemplateParam>
  1609. <code>IEventListener</code>
  1610. </MissingTemplateParam>
  1611. </file>
  1612. <file src="apps/workflowengine/lib/Check/AbstractStringCheck.php">
  1613. <NullArgument>
  1614. <code>null</code>
  1615. </NullArgument>
  1616. </file>
  1617. <file src="apps/workflowengine/lib/Check/FileSize.php">
  1618. <FalsableReturnStatement>
  1619. <code><![CDATA[$this->size]]></code>
  1620. </FalsableReturnStatement>
  1621. <InvalidPropertyAssignmentValue>
  1622. <code>$size</code>
  1623. </InvalidPropertyAssignmentValue>
  1624. <InvalidReturnStatement>
  1625. <code><![CDATA[$this->size]]></code>
  1626. </InvalidReturnStatement>
  1627. <InvalidReturnType>
  1628. <code>string</code>
  1629. </InvalidReturnType>
  1630. </file>
  1631. <file src="apps/workflowengine/lib/Check/FileSystemTags.php">
  1632. <UndefinedDocblockClass>
  1633. <code><![CDATA[$this->storage]]></code>
  1634. </UndefinedDocblockClass>
  1635. </file>
  1636. <file src="apps/workflowengine/lib/Check/RequestRemoteAddress.php">
  1637. <InvalidArgument>
  1638. <code>$decodedValue[1]</code>
  1639. <code>$decodedValue[1]</code>
  1640. <code>$decodedValue[1]</code>
  1641. <code>$decodedValue[1]</code>
  1642. </InvalidArgument>
  1643. </file>
  1644. <file src="apps/workflowengine/lib/Check/RequestTime.php">
  1645. <InvalidScalarArgument>
  1646. <code>$hour1</code>
  1647. <code>$minute1</code>
  1648. </InvalidScalarArgument>
  1649. </file>
  1650. <file src="apps/workflowengine/lib/Check/TFileCheck.php">
  1651. <InvalidArgument>
  1652. <code><![CDATA[['app' => Application::APP_ID, 'class' => get_class($subject)]]]></code>
  1653. </InvalidArgument>
  1654. </file>
  1655. <file src="apps/workflowengine/lib/Entity/File.php">
  1656. <InvalidReturnType>
  1657. <code>string</code>
  1658. </InvalidReturnType>
  1659. <ParamNameMismatch>
  1660. <code>$uid</code>
  1661. </ParamNameMismatch>
  1662. </file>
  1663. <file src="apps/workflowengine/lib/Listener/LoadAdditionalSettingsScriptsListener.php">
  1664. <MissingTemplateParam>
  1665. <code>IEventListener</code>
  1666. </MissingTemplateParam>
  1667. </file>
  1668. <file src="apps/workflowengine/lib/Manager.php">
  1669. <InvalidArgument>
  1670. <code>$missingCheck</code>
  1671. </InvalidArgument>
  1672. <InvalidOperand>
  1673. <code>$result</code>
  1674. </InvalidOperand>
  1675. <InvalidReturnStatement>
  1676. <code>$result</code>
  1677. </InvalidReturnStatement>
  1678. <InvalidReturnType>
  1679. <code>bool</code>
  1680. </InvalidReturnType>
  1681. </file>
  1682. <file src="apps/workflowengine/lib/Service/RuleMatcher.php">
  1683. <UndefinedInterfaceMethod>
  1684. <code>getAllConfiguredScopesForOperation</code>
  1685. <code>getChecks</code>
  1686. <code>getOperations</code>
  1687. <code>getOperations</code>
  1688. <code>isUserScopeEnabled</code>
  1689. </UndefinedInterfaceMethod>
  1690. </file>
  1691. <file src="core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php">
  1692. <ParamNameMismatch>
  1693. <code>$arguments</code>
  1694. </ParamNameMismatch>
  1695. </file>
  1696. <file src="core/BackgroundJobs/CheckForUserCertificates.php">
  1697. <ParamNameMismatch>
  1698. <code>$arguments</code>
  1699. </ParamNameMismatch>
  1700. </file>
  1701. <file src="core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php">
  1702. <ParamNameMismatch>
  1703. <code>$arguments</code>
  1704. </ParamNameMismatch>
  1705. </file>
  1706. <file src="core/Command/App/Install.php">
  1707. <TypeDoesNotContainType>
  1708. <code>$result === false</code>
  1709. </TypeDoesNotContainType>
  1710. </file>
  1711. <file src="core/Command/App/ListApps.php">
  1712. <LessSpecificImplementedReturnType>
  1713. <code>array</code>
  1714. </LessSpecificImplementedReturnType>
  1715. </file>
  1716. <file src="core/Command/App/Update.php">
  1717. <RedundantCondition>
  1718. <code>$result === true</code>
  1719. </RedundantCondition>
  1720. </file>
  1721. <file src="core/Command/Config/Import.php">
  1722. <InvalidScalarArgument>
  1723. <code>0</code>
  1724. <code>1</code>
  1725. </InvalidScalarArgument>
  1726. </file>
  1727. <file src="core/Command/Config/ListConfigs.php">
  1728. <FalsableReturnStatement>
  1729. <code><![CDATA[$this->appConfig->getValues($app, false)]]></code>
  1730. </FalsableReturnStatement>
  1731. <TooManyArguments>
  1732. <code>getFilteredValues</code>
  1733. </TooManyArguments>
  1734. </file>
  1735. <file src="core/Command/Db/ConvertType.php">
  1736. <InvalidScalarArgument>
  1737. <code>0</code>
  1738. <code>1</code>
  1739. </InvalidScalarArgument>
  1740. </file>
  1741. <file src="core/Command/Encryption/Enable.php">
  1742. <NullArgument>
  1743. <code>null</code>
  1744. </NullArgument>
  1745. </file>
  1746. <file src="core/Command/Log/File.php">
  1747. <InvalidReturnStatement>
  1748. <code>[0]</code>
  1749. </InvalidReturnStatement>
  1750. <InvalidReturnType>
  1751. <code>string[]</code>
  1752. </InvalidReturnType>
  1753. </file>
  1754. <file src="core/Command/Log/Manage.php">
  1755. <InvalidArgument>
  1756. <code>$levelNum</code>
  1757. </InvalidArgument>
  1758. </file>
  1759. <file src="core/Command/Maintenance/DataFingerprint.php">
  1760. <InvalidScalarArgument>
  1761. <code><![CDATA[$this->timeFactory->getTime()]]></code>
  1762. </InvalidScalarArgument>
  1763. </file>
  1764. <file src="core/Command/Maintenance/Mimetype/UpdateDB.php">
  1765. <UndefinedInterfaceMethod>
  1766. <code>getAllMappings</code>
  1767. <code>updateFilecache</code>
  1768. </UndefinedInterfaceMethod>
  1769. </file>
  1770. <file src="core/Command/Maintenance/RepairShareOwnership.php">
  1771. <LessSpecificReturnStatement>
  1772. <code>$found</code>
  1773. <code>$found</code>
  1774. </LessSpecificReturnStatement>
  1775. <MoreSpecificReturnType>
  1776. <code>array{shareId: int, fileTarget: string, initiator: string, receiver: string, owner: string, mountOwner: string}[]</code>
  1777. <code>array{shareId: int, fileTarget: string, initiator: string, receiver: string, owner: string, mountOwner: string}[]</code>
  1778. </MoreSpecificReturnType>
  1779. </file>
  1780. <file src="core/Command/Preview/Repair.php">
  1781. <UndefinedInterfaceMethod>
  1782. <code>section</code>
  1783. <code>section</code>
  1784. </UndefinedInterfaceMethod>
  1785. </file>
  1786. <file src="core/Command/Preview/ResetRenderedTexts.php">
  1787. <InvalidReturnStatement>
  1788. <code>[]</code>
  1789. </InvalidReturnStatement>
  1790. </file>
  1791. <file src="core/Controller/ClientFlowLoginV2Controller.php">
  1792. <TypeDoesNotContainType>
  1793. <code>!is_string($stateToken)</code>
  1794. </TypeDoesNotContainType>
  1795. </file>
  1796. <file src="core/Controller/CollaborationResourcesController.php">
  1797. <UndefinedInterfaceMethod>
  1798. <code>searchCollections</code>
  1799. </UndefinedInterfaceMethod>
  1800. </file>
  1801. <file src="core/Controller/LostController.php">
  1802. <RedundantCast>
  1803. <code><![CDATA[(int)$e->getCode()]]></code>
  1804. </RedundantCast>
  1805. </file>
  1806. <file src="core/Controller/UnifiedSearchController.php">
  1807. <UndefinedInterfaceMethod>
  1808. <code>findMatchingRoute</code>
  1809. </UndefinedInterfaceMethod>
  1810. </file>
  1811. <file src="core/Listener/BeforeTemplateRenderedListener.php">
  1812. <MissingTemplateParam>
  1813. <code>IEventListener</code>
  1814. </MissingTemplateParam>
  1815. </file>
  1816. <file src="core/Middleware/TwoFactorMiddleware.php">
  1817. <NoInterfaceProperties>
  1818. <code><![CDATA[$this->request->server]]></code>
  1819. </NoInterfaceProperties>
  1820. </file>
  1821. <file src="core/routes.php">
  1822. <InvalidScope>
  1823. <code>$this</code>
  1824. <code>$this</code>
  1825. <code><![CDATA[$this->create('core_ajax_update', '/core/ajax/update.php')]]></code>
  1826. </InvalidScope>
  1827. </file>
  1828. <file src="core/templates/layout.public.php">
  1829. <UndefinedInterfaceMethod>
  1830. <code>getIcon</code>
  1831. </UndefinedInterfaceMethod>
  1832. </file>
  1833. <file src="lib/autoloader.php">
  1834. <RedundantCondition>
  1835. <code><![CDATA[$this->memoryCache]]></code>
  1836. </RedundantCondition>
  1837. </file>
  1838. <file src="lib/base.php">
  1839. <InvalidArgument>
  1840. <code>$restrictions</code>
  1841. </InvalidArgument>
  1842. </file>
  1843. <file src="lib/private/Activity/Event.php">
  1844. <ParamNameMismatch>
  1845. <code>$affectedUser</code>
  1846. </ParamNameMismatch>
  1847. </file>
  1848. <file src="lib/private/Activity/Manager.php">
  1849. <InvalidPropertyAssignmentValue>
  1850. <code><![CDATA[$this->filterClasses]]></code>
  1851. <code><![CDATA[$this->providerClasses]]></code>
  1852. <code><![CDATA[$this->settingsClasses]]></code>
  1853. </InvalidPropertyAssignmentValue>
  1854. <LessSpecificReturnStatement>
  1855. <code><![CDATA[$this->settings]]></code>
  1856. </LessSpecificReturnStatement>
  1857. <MoreSpecificReturnType>
  1858. <code>ActivitySettings[]</code>
  1859. </MoreSpecificReturnType>
  1860. <TypeDoesNotContainType>
  1861. <code><![CDATA[!is_string($currentUserId) && $currentUserId !== null]]></code>
  1862. </TypeDoesNotContainType>
  1863. </file>
  1864. <file src="lib/private/AllConfig.php">
  1865. <MoreSpecificImplementedParamType>
  1866. <code>$key</code>
  1867. </MoreSpecificImplementedParamType>
  1868. <TypeDoesNotContainType>
  1869. <code>!is_array($userIds)</code>
  1870. </TypeDoesNotContainType>
  1871. </file>
  1872. <file src="lib/private/App/AppManager.php">
  1873. <LessSpecificImplementedReturnType>
  1874. <code>array</code>
  1875. <code>array</code>
  1876. </LessSpecificImplementedReturnType>
  1877. </file>
  1878. <file src="lib/private/App/AppStore/Fetcher/Fetcher.php">
  1879. <TooManyArguments>
  1880. <code>fetch</code>
  1881. </TooManyArguments>
  1882. </file>
  1883. <file src="lib/private/App/DependencyAnalyzer.php">
  1884. <InvalidNullableReturnType>
  1885. <code>bool</code>
  1886. </InvalidNullableReturnType>
  1887. <NullableReturnStatement>
  1888. <code>version_compare($first, $second, $operator)</code>
  1889. </NullableReturnStatement>
  1890. </file>
  1891. <file src="lib/private/App/InfoParser.php">
  1892. <InvalidArrayOffset>
  1893. <code>$array[$element][]</code>
  1894. <code>$array[$element][]</code>
  1895. </InvalidArrayOffset>
  1896. <InvalidReturnStatement>
  1897. <code>(string)$xml</code>
  1898. </InvalidReturnStatement>
  1899. <InvalidReturnType>
  1900. <code>array</code>
  1901. </InvalidReturnType>
  1902. </file>
  1903. <file src="lib/private/AppConfig.php">
  1904. <FalsableReturnStatement>
  1905. <code>$values</code>
  1906. </FalsableReturnStatement>
  1907. <NullableReturnStatement>
  1908. <code>$default</code>
  1909. </NullableReturnStatement>
  1910. </file>
  1911. <file src="lib/private/AppFramework/Bootstrap/Coordinator.php">
  1912. <InvalidPropertyAssignmentValue>
  1913. <code><![CDATA[$this->bootedApps]]></code>
  1914. </InvalidPropertyAssignmentValue>
  1915. </file>
  1916. <file src="lib/private/AppFramework/Bootstrap/FunctionInjector.php">
  1917. <UndefinedMethod>
  1918. <code>getName</code>
  1919. </UndefinedMethod>
  1920. </file>
  1921. <file src="lib/private/AppFramework/DependencyInjection/DIContainer.php">
  1922. <ImplementedReturnTypeMismatch>
  1923. <code>boolean|null</code>
  1924. </ImplementedReturnTypeMismatch>
  1925. <InvalidReturnStatement>
  1926. <code><![CDATA[$this->server]]></code>
  1927. </InvalidReturnStatement>
  1928. <InvalidReturnType>
  1929. <code>\OCP\IServerContainer</code>
  1930. <code>mixed</code>
  1931. </InvalidReturnType>
  1932. <UndefinedInterfaceMethod>
  1933. <code>getAppDataDir</code>
  1934. </UndefinedInterfaceMethod>
  1935. </file>
  1936. <file src="lib/private/AppFramework/Http/Dispatcher.php">
  1937. <NoInterfaceProperties>
  1938. <code><![CDATA[$this->request->method]]></code>
  1939. </NoInterfaceProperties>
  1940. <NullArgument>
  1941. <code>null</code>
  1942. </NullArgument>
  1943. </file>
  1944. <file src="lib/private/AppFramework/Http/Output.php">
  1945. <InvalidReturnStatement>
  1946. <code>@readfile($path)</code>
  1947. <code>http_response_code()</code>
  1948. </InvalidReturnStatement>
  1949. <InvalidReturnType>
  1950. <code>bool</code>
  1951. <code>int</code>
  1952. </InvalidReturnType>
  1953. </file>
  1954. <file src="lib/private/AppFramework/Http/Request.php">
  1955. <MissingTemplateParam>
  1956. <code>\ArrayAccess</code>
  1957. </MissingTemplateParam>
  1958. <NullableReturnStatement>
  1959. <code>$name</code>
  1960. <code>$remoteAddress</code>
  1961. <code><![CDATA[$this->getOverwriteHost()]]></code>
  1962. <code><![CDATA[$this->method]]></code>
  1963. <code>$uri</code>
  1964. <code><![CDATA[isset($this->cookies[$key]) ? $this->cookies[$key] : null]]></code>
  1965. <code><![CDATA[isset($this->env[$key]) ? $this->env[$key] : null]]></code>
  1966. <code><![CDATA[isset($this->files[$key]) ? $this->files[$key] : null]]></code>
  1967. </NullableReturnStatement>
  1968. <RedundantCondition>
  1969. <code>\is_array($params)</code>
  1970. </RedundantCondition>
  1971. <UndefinedFunction>
  1972. <code>\Sabre\HTTP\decodePath($pathInfo)</code>
  1973. </UndefinedFunction>
  1974. </file>
  1975. <file src="lib/private/AppFramework/Logger.php">
  1976. <InvalidReturnType>
  1977. <code>log</code>
  1978. </InvalidReturnType>
  1979. </file>
  1980. <file src="lib/private/AppFramework/Middleware/OCSMiddleware.php">
  1981. <InternalMethod>
  1982. <code>setOCSVersion</code>
  1983. </InternalMethod>
  1984. </file>
  1985. <file src="lib/private/AppFramework/Middleware/Security/CORSMiddleware.php">
  1986. <NoInterfaceProperties>
  1987. <code><![CDATA[$this->request->server]]></code>
  1988. <code><![CDATA[$this->request->server]]></code>
  1989. </NoInterfaceProperties>
  1990. </file>
  1991. <file src="lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php">
  1992. <NoInterfaceProperties>
  1993. <code><![CDATA[$this->request->server]]></code>
  1994. </NoInterfaceProperties>
  1995. <UndefinedClass>
  1996. <code>\OCA\Talk\Controller\PageController</code>
  1997. </UndefinedClass>
  1998. </file>
  1999. <file src="lib/private/AppFramework/Routing/RouteConfig.php">
  2000. <InvalidArrayOffset>
  2001. <code>$action['url-postfix']</code>
  2002. </InvalidArrayOffset>
  2003. </file>
  2004. <file src="lib/private/AppFramework/Services/AppConfig.php">
  2005. <MoreSpecificImplementedParamType>
  2006. <code>$default</code>
  2007. </MoreSpecificImplementedParamType>
  2008. </file>
  2009. <file src="lib/private/AppFramework/Utility/SimpleContainer.php">
  2010. <LessSpecificReturnStatement>
  2011. <code><![CDATA[$class->newInstance()]]></code>
  2012. <code><![CDATA[$class->newInstanceArgs(array_map(function (ReflectionParameter $parameter) {
  2013. $parameterType = $parameter->getType();
  2014. $resolveName = $parameter->getName();
  2015. // try to find out if it is a class or a simple parameter
  2016. if ($parameterType !== null && ($parameterType instanceof ReflectionNamedType) && !$parameterType->isBuiltin()) {
  2017. $resolveName = $parameterType->getName();
  2018. }
  2019. try {
  2020. $builtIn = $parameter->hasType() && ($parameter->getType() instanceof ReflectionNamedType)
  2021. && $parameter->getType()->isBuiltin();
  2022. return $this->query($resolveName, !$builtIn);
  2023. } catch (QueryException $e) {
  2024. // Service not found, use the default value when available
  2025. if ($parameter->isDefaultValueAvailable()) {
  2026. return $parameter->getDefaultValue();
  2027. }
  2028. if ($parameterType !== null && ($parameterType instanceof ReflectionNamedType) && !$parameterType->isBuiltin()) {
  2029. $resolveName = $parameter->getName();
  2030. try {
  2031. return $this->query($resolveName);
  2032. } catch (QueryException $e2) {
  2033. // don't lose the error we got while trying to query by type
  2034. throw new QueryException($e->getMessage(), (int) $e->getCode(), $e);
  2035. }
  2036. }
  2037. throw $e;
  2038. }
  2039. }, $constructor->getParameters()))]]></code>
  2040. </LessSpecificReturnStatement>
  2041. <MissingTemplateParam>
  2042. <code>ArrayAccess</code>
  2043. </MissingTemplateParam>
  2044. <MoreSpecificReturnType>
  2045. <code>\stdClass</code>
  2046. </MoreSpecificReturnType>
  2047. <RedundantCast>
  2048. <code><![CDATA[(int) $e->getCode()]]></code>
  2049. </RedundantCast>
  2050. </file>
  2051. <file src="lib/private/Archive/TAR.php">
  2052. <UndefinedDocblockClass>
  2053. <code><![CDATA[$this->tar->extractInString($path)]]></code>
  2054. </UndefinedDocblockClass>
  2055. </file>
  2056. <file src="lib/private/Authentication/Listeners/UserDeletedFilesCleanupListener.php">
  2057. <MissingTemplateParam>
  2058. <code>IEventListener</code>
  2059. </MissingTemplateParam>
  2060. </file>
  2061. <file src="lib/private/Authentication/Listeners/UserDeletedWebAuthnCleanupListener.php">
  2062. <MissingTemplateParam>
  2063. <code>IEventListener</code>
  2064. </MissingTemplateParam>
  2065. </file>
  2066. <file src="lib/private/Authentication/LoginCredentials/Store.php">
  2067. <RedundantCondition>
  2068. <code>$trySession</code>
  2069. </RedundantCondition>
  2070. </file>
  2071. <file src="lib/public/Authentication/Token/IToken.php">
  2072. <AmbiguousConstantInheritance>
  2073. <code>DO_NOT_REMEMBER</code>
  2074. <code>PERMANENT_TOKEN</code>
  2075. <code>REMEMBER</code>
  2076. <code>TEMPORARY_TOKEN</code>
  2077. <code>WIPE_TOKEN</code>
  2078. </AmbiguousConstantInheritance>
  2079. </file>
  2080. <file src="lib/private/Authentication/Token/PublicKeyToken.php">
  2081. <UndefinedMagicMethod>
  2082. <code>getExpires</code>
  2083. <code>getLastCheck</code>
  2084. <code>getLoginName</code>
  2085. <code>getName</code>
  2086. <code>getPassword</code>
  2087. <code>getRemember</code>
  2088. <code>getScope</code>
  2089. <code>setExpires</code>
  2090. <code>setLastCheck</code>
  2091. <code>setName</code>
  2092. <code>setPassword</code>
  2093. <code>setPasswordInvalid</code>
  2094. <code>setScope</code>
  2095. <code>setScope</code>
  2096. <code>setToken</code>
  2097. <code>setType</code>
  2098. </UndefinedMagicMethod>
  2099. </file>
  2100. <file src="lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php">
  2101. <LessSpecificReturnStatement>
  2102. <code><![CDATA[array_map(function (array $row) {
  2103. return [
  2104. 'provider_id' => $row['provider_id'],
  2105. 'uid' => $row['uid'],
  2106. 'enabled' => 1 === (int) $row['enabled'],
  2107. ];
  2108. }, $rows)]]></code>
  2109. </LessSpecificReturnStatement>
  2110. <MoreSpecificReturnType>
  2111. <code><![CDATA[list<array{provider_id: string, uid: string, enabled: bool}>]]></code>
  2112. </MoreSpecificReturnType>
  2113. </file>
  2114. <file src="lib/private/Authentication/TwoFactorAuth/ProviderSet.php">
  2115. <InvalidArgument>
  2116. <code><![CDATA[$this->providers]]></code>
  2117. </InvalidArgument>
  2118. <InvalidPropertyAssignmentValue>
  2119. <code><![CDATA[$this->providers]]></code>
  2120. <code>[]</code>
  2121. </InvalidPropertyAssignmentValue>
  2122. <InvalidReturnStatement>
  2123. <code><![CDATA[$this->providers]]></code>
  2124. </InvalidReturnStatement>
  2125. <InvalidReturnType>
  2126. <code>IProvider[]</code>
  2127. </InvalidReturnType>
  2128. <UndefinedInterfaceMethod>
  2129. <code><![CDATA[$this->providers]]></code>
  2130. </UndefinedInterfaceMethod>
  2131. </file>
  2132. <file src="lib/private/BackgroundJob/QueuedJob.php">
  2133. <MoreSpecificImplementedParamType>
  2134. <code>$jobList</code>
  2135. <code>$jobList</code>
  2136. </MoreSpecificImplementedParamType>
  2137. </file>
  2138. <file src="lib/private/Cache/CappedMemoryCache.php">
  2139. <MissingTemplateParam>
  2140. <code>\ArrayAccess</code>
  2141. </MissingTemplateParam>
  2142. </file>
  2143. <file src="lib/private/Cache/File.php">
  2144. <LessSpecificImplementedReturnType>
  2145. <code>bool|mixed</code>
  2146. <code>bool|mixed</code>
  2147. </LessSpecificImplementedReturnType>
  2148. </file>
  2149. <file src="lib/private/Calendar/Manager.php">
  2150. <LessSpecificReturnStatement>
  2151. <code><![CDATA[array_merge(
  2152. ...array_map(function ($registration) use ($principalUri, $calendarUris) {
  2153. try {
  2154. /** @var ICalendarProvider $provider */
  2155. $provider = $this->container->get($registration->getService());
  2156. } catch (Throwable $e) {
  2157. $this->logger->error('Could not load calendar provider ' . $registration->getService() . ': ' . $e->getMessage(), [
  2158. 'exception' => $e,
  2159. ]);
  2160. return [];
  2161. }
  2162. return $provider->getCalendars($principalUri, $calendarUris);
  2163. }, $context->getCalendarProviders())
  2164. )]]></code>
  2165. </LessSpecificReturnStatement>
  2166. <MoreSpecificReturnType>
  2167. <code>ICreateFromString[]</code>
  2168. </MoreSpecificReturnType>
  2169. <NamedArgumentNotAllowed>
  2170. <code><![CDATA[array_map(function ($registration) use ($principalUri, $calendarUris) {
  2171. try {
  2172. /** @var ICalendarProvider $provider */
  2173. $provider = $this->container->get($registration->getService());
  2174. } catch (Throwable $e) {
  2175. $this->logger->error('Could not load calendar provider ' . $registration->getService() . ': ' . $e->getMessage(), [
  2176. 'exception' => $e,
  2177. ]);
  2178. return [];
  2179. }
  2180. return $provider->getCalendars($principalUri, $calendarUris);
  2181. }, $context->getCalendarProviders())]]></code>
  2182. </NamedArgumentNotAllowed>
  2183. </file>
  2184. <file src="lib/private/Command/CallableJob.php">
  2185. <ParamNameMismatch>
  2186. <code>$serializedCallable</code>
  2187. </ParamNameMismatch>
  2188. </file>
  2189. <file src="lib/private/Command/ClosureJob.php">
  2190. <InvalidArgument>
  2191. <code>[LaravelClosure::class, OpisClosure::class]</code>
  2192. </InvalidArgument>
  2193. <ParamNameMismatch>
  2194. <code>$serializedCallable</code>
  2195. </ParamNameMismatch>
  2196. </file>
  2197. <file src="lib/private/Command/CommandJob.php">
  2198. <ParamNameMismatch>
  2199. <code>$serializedCommand</code>
  2200. </ParamNameMismatch>
  2201. </file>
  2202. <file src="lib/private/Comments/Manager.php">
  2203. <RedundantCast>
  2204. <code>(string)$id</code>
  2205. </RedundantCast>
  2206. </file>
  2207. <file src="lib/private/Config.php">
  2208. <InvalidOperand>
  2209. <code><![CDATA[$this->delete($key)]]></code>
  2210. <code><![CDATA[$this->set($key, $value)]]></code>
  2211. </InvalidOperand>
  2212. <UndefinedVariable>
  2213. <code>$CONFIG</code>
  2214. <code>$CONFIG</code>
  2215. </UndefinedVariable>
  2216. </file>
  2217. <file src="lib/private/Console/Application.php">
  2218. <NoInterfaceProperties>
  2219. <code><![CDATA[$this->request->server]]></code>
  2220. </NoInterfaceProperties>
  2221. </file>
  2222. <file src="lib/private/ContactsManager.php">
  2223. <InvalidArgument>
  2224. <code>$searchOptions</code>
  2225. </InvalidArgument>
  2226. </file>
  2227. <file src="lib/private/DB/AdapterMySQL.php">
  2228. <InternalMethod>
  2229. <code>getParams</code>
  2230. </InternalMethod>
  2231. <InvalidArrayOffset>
  2232. <code>$params['collation']</code>
  2233. </InvalidArrayOffset>
  2234. </file>
  2235. <file src="lib/private/DB/Connection.php">
  2236. <InternalMethod>
  2237. <code>getParams</code>
  2238. </InternalMethod>
  2239. <InvalidArgument>
  2240. <code>$params</code>
  2241. </InvalidArgument>
  2242. <InvalidArrayOffset>
  2243. <code>$params['adapter']</code>
  2244. <code>$params['tablePrefix']</code>
  2245. </InvalidArrayOffset>
  2246. </file>
  2247. <file src="lib/private/DB/Exceptions/DbalException.php">
  2248. <RedundantCondition>
  2249. <code><![CDATA[is_int($original->getCode())]]></code>
  2250. </RedundantCondition>
  2251. <TypeDoesNotContainType>
  2252. <code>0</code>
  2253. </TypeDoesNotContainType>
  2254. </file>
  2255. <file src="lib/private/DB/MigrationService.php">
  2256. <LessSpecificReturnStatement>
  2257. <code>$s</code>
  2258. </LessSpecificReturnStatement>
  2259. <MoreSpecificReturnType>
  2260. <code>IMigrationStep</code>
  2261. </MoreSpecificReturnType>
  2262. </file>
  2263. <file src="lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php">
  2264. <ImplicitToStringCast>
  2265. <code><![CDATA[$this->functionBuilder->lower($x)]]></code>
  2266. </ImplicitToStringCast>
  2267. <InvalidArgument>
  2268. <code>$y</code>
  2269. <code>$y</code>
  2270. </InvalidArgument>
  2271. </file>
  2272. <file src="lib/private/DB/QueryBuilder/ExpressionBuilder/MySqlExpressionBuilder.php">
  2273. <InternalMethod>
  2274. <code>getParams</code>
  2275. </InternalMethod>
  2276. <InvalidArrayOffset>
  2277. <code>$params['collation']</code>
  2278. </InvalidArrayOffset>
  2279. </file>
  2280. <file src="lib/private/DB/QueryBuilder/QueryBuilder.php">
  2281. <InvalidNullableReturnType>
  2282. <code>string</code>
  2283. </InvalidNullableReturnType>
  2284. <NullableReturnStatement>
  2285. <code>$alias</code>
  2286. </NullableReturnStatement>
  2287. <ParamNameMismatch>
  2288. <code>$groupBys</code>
  2289. <code>$selects</code>
  2290. </ParamNameMismatch>
  2291. </file>
  2292. <file src="lib/private/DB/QueryBuilder/QuoteHelper.php">
  2293. <InvalidNullableReturnType>
  2294. <code>string</code>
  2295. </InvalidNullableReturnType>
  2296. <NullableReturnStatement>
  2297. <code>$string</code>
  2298. </NullableReturnStatement>
  2299. </file>
  2300. <file src="lib/private/DateTimeFormatter.php">
  2301. <FalsableReturnStatement>
  2302. <code><![CDATA[$l->l($type, $timestamp, [
  2303. 'width' => $format,
  2304. ])]]></code>
  2305. </FalsableReturnStatement>
  2306. <InvalidDocblock>
  2307. <code>public function formatDateSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null) {</code>
  2308. <code>public function formatTimeSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null) {</code>
  2309. </InvalidDocblock>
  2310. <InvalidReturnStatement>
  2311. <code><![CDATA[$l->l($type, $timestamp, [
  2312. 'width' => $format,
  2313. ])]]></code>
  2314. </InvalidReturnStatement>
  2315. <InvalidReturnType>
  2316. <code>string</code>
  2317. </InvalidReturnType>
  2318. </file>
  2319. <file src="lib/private/DateTimeZone.php">
  2320. <InvalidScalarArgument>
  2321. <code>$timestamp</code>
  2322. </InvalidScalarArgument>
  2323. </file>
  2324. <file src="lib/private/Diagnostics/Query.php">
  2325. <ImplementedReturnTypeMismatch>
  2326. <code>float</code>
  2327. </ImplementedReturnTypeMismatch>
  2328. </file>
  2329. <file src="lib/private/Diagnostics/QueryLogger.php">
  2330. <InvalidArgument>
  2331. <code>microtime(true)</code>
  2332. </InvalidArgument>
  2333. <InvalidReturnType>
  2334. <code>stopQuery</code>
  2335. </InvalidReturnType>
  2336. </file>
  2337. <file src="lib/private/DirectEditing/Manager.php">
  2338. <InvalidReturnStatement>
  2339. <code><![CDATA[$query->execute()]]></code>
  2340. </InvalidReturnStatement>
  2341. <InvalidReturnType>
  2342. <code>TemplateResponse</code>
  2343. <code>int</code>
  2344. </InvalidReturnType>
  2345. <UndefinedMethod>
  2346. <code>$template</code>
  2347. <code>$template</code>
  2348. <code>$template</code>
  2349. <code>$template</code>
  2350. </UndefinedMethod>
  2351. </file>
  2352. <file src="lib/private/DirectEditing/Token.php">
  2353. <LessSpecificReturnStatement>
  2354. <code><![CDATA[$this->manager->getFileForToken($this->data['user_id'], $this->data['file_id'], $this->data['file_path'])]]></code>
  2355. </LessSpecificReturnStatement>
  2356. <UndefinedMethod>
  2357. <code>getShareForToken</code>
  2358. </UndefinedMethod>
  2359. </file>
  2360. <file src="lib/private/Encryption/File.php">
  2361. <LessSpecificReturnStatement>
  2362. <code><![CDATA[['users' => $uniqueUserIds, 'public' => $public]]]></code>
  2363. </LessSpecificReturnStatement>
  2364. <MoreSpecificReturnType>
  2365. <code>array{users: string[], public: bool}</code>
  2366. </MoreSpecificReturnType>
  2367. </file>
  2368. <file src="lib/private/Encryption/Keys/Storage.php">
  2369. <InvalidNullableReturnType>
  2370. <code>deleteUserKey</code>
  2371. </InvalidNullableReturnType>
  2372. <NullArgument>
  2373. <code>null</code>
  2374. <code>null</code>
  2375. <code>null</code>
  2376. </NullArgument>
  2377. </file>
  2378. <file src="lib/private/Encryption/Manager.php">
  2379. <ImplementedReturnTypeMismatch>
  2380. <code>bool</code>
  2381. </ImplementedReturnTypeMismatch>
  2382. </file>
  2383. <file src="lib/private/Federation/CloudFederationProviderManager.php">
  2384. <ParamNameMismatch>
  2385. <code>$providerId</code>
  2386. </ParamNameMismatch>
  2387. </file>
  2388. <file src="lib/private/Files/AppData/AppData.php">
  2389. <LessSpecificReturnStatement>
  2390. <code><![CDATA[$this->folder]]></code>
  2391. </LessSpecificReturnStatement>
  2392. <MoreSpecificReturnType>
  2393. <code>Folder</code>
  2394. </MoreSpecificReturnType>
  2395. </file>
  2396. <file src="lib/private/Files/Cache/Cache.php">
  2397. <InvalidArgument>
  2398. <code>$parentData</code>
  2399. </InvalidArgument>
  2400. <InvalidNullableReturnType>
  2401. <code>array</code>
  2402. </InvalidNullableReturnType>
  2403. <InvalidScalarArgument>
  2404. <code>$path</code>
  2405. <code>\OC_Util::normalizeUnicode($path)</code>
  2406. </InvalidScalarArgument>
  2407. <NullableReturnStatement>
  2408. <code>null</code>
  2409. <code>null</code>
  2410. </NullableReturnStatement>
  2411. <ParamNameMismatch>
  2412. <code>$searchQuery</code>
  2413. </ParamNameMismatch>
  2414. </file>
  2415. <file src="lib/private/Files/Cache/FailedCache.php">
  2416. <InvalidReturnStatement>
  2417. <code>[]</code>
  2418. </InvalidReturnStatement>
  2419. <InvalidReturnType>
  2420. <code>getIncomplete</code>
  2421. <code>insert</code>
  2422. <code>put</code>
  2423. </InvalidReturnType>
  2424. </file>
  2425. <file src="lib/private/Files/Cache/HomeCache.php">
  2426. <FalsableReturnStatement>
  2427. <code>$data</code>
  2428. </FalsableReturnStatement>
  2429. <MoreSpecificImplementedParamType>
  2430. <code>$file</code>
  2431. <code>$file</code>
  2432. </MoreSpecificImplementedParamType>
  2433. </file>
  2434. <file src="lib/private/Files/Cache/Scanner.php">
  2435. <InvalidArgument>
  2436. <code>self::SCAN_RECURSIVE_INCOMPLETE</code>
  2437. </InvalidArgument>
  2438. <InvalidReturnStatement>
  2439. <code>$existingChildren</code>
  2440. </InvalidReturnStatement>
  2441. <InvalidReturnType>
  2442. <code>array[]</code>
  2443. </InvalidReturnType>
  2444. </file>
  2445. <file src="lib/private/Files/Cache/Storage.php">
  2446. <InvalidNullableReturnType>
  2447. <code>array</code>
  2448. </InvalidNullableReturnType>
  2449. <NullableReturnStatement>
  2450. <code><![CDATA[self::getGlobalCache()->getStorageInfo($storageId)]]></code>
  2451. </NullableReturnStatement>
  2452. </file>
  2453. <file src="lib/private/Files/Cache/Updater.php">
  2454. <RedundantCondition>
  2455. <code><![CDATA[$this->cache instanceof Cache]]></code>
  2456. </RedundantCondition>
  2457. </file>
  2458. <file src="lib/private/Files/Cache/Wrapper/CacheWrapper.php">
  2459. <LessSpecificImplementedReturnType>
  2460. <code>array</code>
  2461. <code>array</code>
  2462. </LessSpecificImplementedReturnType>
  2463. <ParamNameMismatch>
  2464. <code>$searchQuery</code>
  2465. </ParamNameMismatch>
  2466. </file>
  2467. <file src="lib/private/Files/Config/MountProviderCollection.php">
  2468. <InvalidOperand>
  2469. <code>$user</code>
  2470. </InvalidOperand>
  2471. <RedundantCondition>
  2472. <code>get_class($provider) !== 'OCA\Files_Sharing\MountProvider'</code>
  2473. </RedundantCondition>
  2474. <TypeDoesNotContainType>
  2475. <code>get_class($provider) === 'OCA\Files_Sharing\MountProvider'</code>
  2476. </TypeDoesNotContainType>
  2477. </file>
  2478. <file src="lib/private/Files/Config/UserMountCache.php">
  2479. <InvalidReturnType>
  2480. <code>remoteStorageMounts</code>
  2481. <code>removeUserStorageMount</code>
  2482. </InvalidReturnType>
  2483. <LessSpecificImplementedReturnType>
  2484. <code>array</code>
  2485. </LessSpecificImplementedReturnType>
  2486. <LessSpecificReturnStatement>
  2487. <code><![CDATA[$this->cacheInfoCache[$fileId]]]></code>
  2488. </LessSpecificReturnStatement>
  2489. <MoreSpecificReturnType>
  2490. <code>array{int, string, int}</code>
  2491. </MoreSpecificReturnType>
  2492. </file>
  2493. <file src="lib/private/Files/FileInfo.php">
  2494. <MissingTemplateParam>
  2495. <code>\ArrayAccess</code>
  2496. </MissingTemplateParam>
  2497. </file>
  2498. <file src="lib/private/Files/Filesystem.php">
  2499. <LessSpecificReturnStatement>
  2500. <code><![CDATA[$mount->getStorage()]]></code>
  2501. <code><![CDATA[self::getMountManager()->findByNumericId($id)]]></code>
  2502. <code><![CDATA[self::getMountManager()->findByStorageId($id)]]></code>
  2503. </LessSpecificReturnStatement>
  2504. <MoreSpecificReturnType>
  2505. <code>Mount\MountPoint[]</code>
  2506. <code>Mount\MountPoint[]</code>
  2507. <code>\OC\Files\Storage\Storage|null</code>
  2508. </MoreSpecificReturnType>
  2509. <TooManyArguments>
  2510. <code>addStorageWrapper</code>
  2511. </TooManyArguments>
  2512. </file>
  2513. <file src="lib/private/Files/Mount/MountPoint.php">
  2514. <UndefinedInterfaceMethod>
  2515. <code>wrap</code>
  2516. </UndefinedInterfaceMethod>
  2517. </file>
  2518. <file src="lib/private/Files/Mount/ObjectHomeMountProvider.php">
  2519. <InvalidNullableReturnType>
  2520. <code>\OCP\Files\Mount\IMountPoint</code>
  2521. </InvalidNullableReturnType>
  2522. <NullableReturnStatement>
  2523. <code>null</code>
  2524. </NullableReturnStatement>
  2525. </file>
  2526. <file src="lib/private/Files/Node/File.php">
  2527. <InvalidReturnStatement>
  2528. <code><![CDATA[$this->view->hash($type, $this->path, $raw)]]></code>
  2529. </InvalidReturnStatement>
  2530. <InvalidReturnType>
  2531. <code>string</code>
  2532. </InvalidReturnType>
  2533. </file>
  2534. <file src="lib/private/Files/Node/Folder.php">
  2535. <LessSpecificReturnStatement>
  2536. <code><![CDATA[$this->root->get($this->getFullPath($path))]]></code>
  2537. <code><![CDATA[$this->root->getByIdInPath((int)$id, $this->getPath())]]></code>
  2538. <code><![CDATA[array_map(function (FileInfo $file) {
  2539. return $this->createNode($file->getPath(), $file);
  2540. }, $files)]]></code>
  2541. </LessSpecificReturnStatement>
  2542. <MoreSpecificImplementedParamType>
  2543. <code>$node</code>
  2544. </MoreSpecificImplementedParamType>
  2545. <MoreSpecificReturnType>
  2546. <code>\OC\Files\Node\Node</code>
  2547. <code>\OC\Files\Node\Node[]</code>
  2548. <code>\OC\Files\Node\Node[]</code>
  2549. </MoreSpecificReturnType>
  2550. </file>
  2551. <file src="lib/private/Files/Node/HookConnector.php">
  2552. <UndefinedInterfaceMethod>
  2553. <code>emit</code>
  2554. <code>emit</code>
  2555. <code>emit</code>
  2556. <code>emit</code>
  2557. <code>emit</code>
  2558. <code>emit</code>
  2559. <code>emit</code>
  2560. <code>emit</code>
  2561. <code>emit</code>
  2562. <code>emit</code>
  2563. <code>emit</code>
  2564. <code>emit</code>
  2565. <code>emit</code>
  2566. </UndefinedInterfaceMethod>
  2567. </file>
  2568. <file src="lib/private/Files/Node/LazyFolder.php">
  2569. <InvalidReturnStatement>
  2570. <code><![CDATA[$this->__call(__FUNCTION__, func_get_args())]]></code>
  2571. </InvalidReturnStatement>
  2572. </file>
  2573. <file src="lib/private/Files/Node/LazyUserFolder.php">
  2574. <LessSpecificReturnStatement>
  2575. <code>$node</code>
  2576. </LessSpecificReturnStatement>
  2577. <MoreSpecificReturnType>
  2578. <code>Folder</code>
  2579. </MoreSpecificReturnType>
  2580. </file>
  2581. <file src="lib/private/Files/Node/Node.php">
  2582. <InvalidNullableReturnType>
  2583. <code>FileInfo</code>
  2584. </InvalidNullableReturnType>
  2585. <InvalidReturnType>
  2586. <code>getChecksum</code>
  2587. </InvalidReturnType>
  2588. <LessSpecificReturnStatement>
  2589. <code><![CDATA[$this->parent]]></code>
  2590. </LessSpecificReturnStatement>
  2591. <MoreSpecificReturnType>
  2592. <code>INode|IRootFolder</code>
  2593. </MoreSpecificReturnType>
  2594. <NullableReturnStatement>
  2595. <code><![CDATA[$this->fileInfo]]></code>
  2596. </NullableReturnStatement>
  2597. <ParamNameMismatch>
  2598. <code>$type</code>
  2599. </ParamNameMismatch>
  2600. <UndefinedInterfaceMethod>
  2601. <code><![CDATA[$this->fileInfo]]></code>
  2602. <code><![CDATA[$this->fileInfo]]></code>
  2603. </UndefinedInterfaceMethod>
  2604. </file>
  2605. <file src="lib/private/Files/Node/Root.php">
  2606. <LessSpecificReturnStatement>
  2607. <code>$folders</code>
  2608. <code><![CDATA[$this->createNode($fullPath, $fileInfo, false)]]></code>
  2609. <code><![CDATA[$this->mountManager->findByNumericId($numericId)]]></code>
  2610. <code><![CDATA[$this->mountManager->findByStorageId($storageId)]]></code>
  2611. <code><![CDATA[$this->mountManager->findIn($mountPoint)]]></code>
  2612. <code><![CDATA[$this->user]]></code>
  2613. </LessSpecificReturnStatement>
  2614. <MoreSpecificReturnType>
  2615. <code>MountPoint[]</code>
  2616. <code>Node</code>
  2617. <code>\OC\Files\Mount\MountPoint[]</code>
  2618. <code>\OC\Files\Mount\MountPoint[]</code>
  2619. <code>\OC\User\User</code>
  2620. </MoreSpecificReturnType>
  2621. <NullableReturnStatement>
  2622. <code><![CDATA[$this->user]]></code>
  2623. </NullableReturnStatement>
  2624. <UndefinedMethod>
  2625. <code>remove</code>
  2626. </UndefinedMethod>
  2627. </file>
  2628. <file src="lib/private/Files/ObjectStore/HomeObjectStoreStorage.php">
  2629. <ImplementedReturnTypeMismatch>
  2630. <code>false|string</code>
  2631. </ImplementedReturnTypeMismatch>
  2632. </file>
  2633. <file src="lib/private/Files/ObjectStore/ObjectStoreStorage.php">
  2634. <InvalidScalarArgument>
  2635. <code>$source</code>
  2636. </InvalidScalarArgument>
  2637. </file>
  2638. <file src="lib/private/Files/ObjectStore/S3ConnectionTrait.php">
  2639. <InternalClass>
  2640. <code>ClientResolver::_default_signature_provider()</code>
  2641. <code>ClientResolver::_default_signature_provider()</code>
  2642. </InternalClass>
  2643. <InternalMethod>
  2644. <code>ClientResolver::_default_signature_provider()</code>
  2645. </InternalMethod>
  2646. <UndefinedFunction>
  2647. <code>Promise\promise_for(
  2648. new Credentials($key, $secret)
  2649. )</code>
  2650. <code>\Aws\or_chain([self::class, 'legacySignatureProvider'], ClientResolver::_default_signature_provider())</code>
  2651. </UndefinedFunction>
  2652. </file>
  2653. <file src="lib/private/Files/ObjectStore/S3ObjectTrait.php">
  2654. <InternalMethod>
  2655. <code>upload</code>
  2656. </InternalMethod>
  2657. <UndefinedFunction>
  2658. <code>\Aws\serialize($command)</code>
  2659. </UndefinedFunction>
  2660. </file>
  2661. <file src="lib/private/Files/ObjectStore/S3Signature.php">
  2662. <NullArgument>
  2663. <code>null</code>
  2664. </NullArgument>
  2665. </file>
  2666. <file src="lib/private/Files/ObjectStore/StorageObjectStore.php">
  2667. <InvalidReturnType>
  2668. <code>string</code>
  2669. </InvalidReturnType>
  2670. </file>
  2671. <file src="lib/private/Files/Storage/Common.php">
  2672. <ImplementedReturnTypeMismatch>
  2673. <code>string|false</code>
  2674. </ImplementedReturnTypeMismatch>
  2675. <InvalidOperand>
  2676. <code>!$permissions</code>
  2677. <code><![CDATA[$this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file)]]></code>
  2678. </InvalidOperand>
  2679. <NoInterfaceProperties>
  2680. <code><![CDATA[$storage->cache]]></code>
  2681. <code><![CDATA[$storage->cache]]></code>
  2682. <code><![CDATA[$storage->propagator]]></code>
  2683. <code><![CDATA[$storage->propagator]]></code>
  2684. <code><![CDATA[$storage->scanner]]></code>
  2685. <code><![CDATA[$storage->scanner]]></code>
  2686. <code><![CDATA[$storage->updater]]></code>
  2687. <code><![CDATA[$storage->updater]]></code>
  2688. </NoInterfaceProperties>
  2689. </file>
  2690. <file src="lib/private/Files/Storage/DAV.php">
  2691. <InvalidClass>
  2692. <code>ArrayCache</code>
  2693. <code>ArrayCache</code>
  2694. </InvalidClass>
  2695. <InvalidReturnStatement>
  2696. <code><![CDATA[$response->getBody()]]></code>
  2697. </InvalidReturnStatement>
  2698. <InvalidReturnType>
  2699. <code>fopen</code>
  2700. </InvalidReturnType>
  2701. <NullableReturnStatement>
  2702. <code>null</code>
  2703. </NullableReturnStatement>
  2704. </file>
  2705. <file src="lib/private/Files/Storage/FailedStorage.php">
  2706. <InvalidReturnStatement>
  2707. <code>new FailedCache()</code>
  2708. <code>true</code>
  2709. </InvalidReturnStatement>
  2710. <InvalidReturnType>
  2711. <code>getCache</code>
  2712. <code>verifyPath</code>
  2713. </InvalidReturnType>
  2714. </file>
  2715. <file src="lib/private/Files/Storage/Local.php">
  2716. <ImplicitToStringCast>
  2717. <code>$file</code>
  2718. </ImplicitToStringCast>
  2719. <TypeDoesNotContainNull>
  2720. <code>$space === false || is_null($space)</code>
  2721. <code>is_null($space)</code>
  2722. </TypeDoesNotContainNull>
  2723. <TypeDoesNotContainType>
  2724. <code>$stat === false</code>
  2725. </TypeDoesNotContainType>
  2726. </file>
  2727. <file src="lib/private/Files/Storage/LocalRootStorage.php">
  2728. <NoInterfaceProperties>
  2729. <code><![CDATA[$storage->scanner]]></code>
  2730. <code><![CDATA[$storage->scanner]]></code>
  2731. </NoInterfaceProperties>
  2732. </file>
  2733. <file src="lib/private/Files/Storage/Wrapper/Encoding.php">
  2734. <InvalidArgument>
  2735. <code>\Normalizer::FORM_C</code>
  2736. <code>\Normalizer::FORM_C</code>
  2737. <code>\Normalizer::FORM_D</code>
  2738. </InvalidArgument>
  2739. <UndefinedInterfaceMethod>
  2740. <code><![CDATA[$this->namesCache]]></code>
  2741. <code><![CDATA[$this->namesCache]]></code>
  2742. <code><![CDATA[$this->namesCache]]></code>
  2743. <code><![CDATA[$this->namesCache]]></code>
  2744. <code><![CDATA[$this->namesCache]]></code>
  2745. <code><![CDATA[$this->namesCache]]></code>
  2746. <code><![CDATA[$this->namesCache]]></code>
  2747. <code><![CDATA[$this->namesCache]]></code>
  2748. <code><![CDATA[$this->namesCache]]></code>
  2749. <code><![CDATA[$this->namesCache]]></code>
  2750. <code><![CDATA[$this->namesCache]]></code>
  2751. <code><![CDATA[$this->namesCache]]></code>
  2752. <code><![CDATA[$this->namesCache]]></code>
  2753. <code><![CDATA[$this->namesCache]]></code>
  2754. <code><![CDATA[$this->namesCache]]></code>
  2755. <code><![CDATA[$this->namesCache]]></code>
  2756. <code><![CDATA[$this->namesCache]]></code>
  2757. </UndefinedInterfaceMethod>
  2758. </file>
  2759. <file src="lib/private/Files/Storage/Wrapper/Encryption.php">
  2760. <InvalidOperand>
  2761. <code>$result</code>
  2762. <code>$result</code>
  2763. <code><![CDATA[$this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file, false, $isRename)]]></code>
  2764. </InvalidOperand>
  2765. <InvalidReturnStatement>
  2766. <code>$newUnencryptedSize</code>
  2767. <code>$result</code>
  2768. </InvalidReturnStatement>
  2769. <InvalidReturnType>
  2770. <code>bool</code>
  2771. <code>int</code>
  2772. </InvalidReturnType>
  2773. <InvalidScalarArgument>
  2774. <code>$lastChunkPos</code>
  2775. <code>$size</code>
  2776. </InvalidScalarArgument>
  2777. </file>
  2778. <file src="lib/private/Files/Storage/Wrapper/Jail.php">
  2779. <InvalidReturnStatement>
  2780. <code><![CDATA[$this->getWrapperStorage()->filetype($this->getUnjailedPath($path))]]></code>
  2781. </InvalidReturnStatement>
  2782. <InvalidReturnType>
  2783. <code>bool</code>
  2784. </InvalidReturnType>
  2785. </file>
  2786. <file src="lib/private/Files/Storage/Wrapper/Wrapper.php">
  2787. <InvalidReturnStatement>
  2788. <code><![CDATA[$this->getWrapperStorage()->test()]]></code>
  2789. </InvalidReturnStatement>
  2790. <InvalidReturnType>
  2791. <code>true</code>
  2792. </InvalidReturnType>
  2793. </file>
  2794. <file src="lib/private/Files/Stream/SeekableHttpStream.php">
  2795. <InvalidReturnType>
  2796. <code>stream_close</code>
  2797. <code>stream_flush</code>
  2798. </InvalidReturnType>
  2799. </file>
  2800. <file src="lib/private/Files/Template/TemplateManager.php">
  2801. <RedundantCondition>
  2802. <code>!$isDefaultTemplates</code>
  2803. </RedundantCondition>
  2804. </file>
  2805. <file src="lib/private/Files/Type/Detection.php">
  2806. <ParamNameMismatch>
  2807. <code>$mimetype</code>
  2808. </ParamNameMismatch>
  2809. </file>
  2810. <file src="lib/private/Files/Type/Loader.php">
  2811. <InvalidReturnStatement>
  2812. <code><![CDATA[$update->execute()]]></code>
  2813. </InvalidReturnStatement>
  2814. <InvalidReturnType>
  2815. <code>int</code>
  2816. </InvalidReturnType>
  2817. </file>
  2818. <file src="lib/private/Files/Utils/Scanner.php">
  2819. <LessSpecificReturnStatement>
  2820. <code>$mounts</code>
  2821. </LessSpecificReturnStatement>
  2822. <MoreSpecificReturnType>
  2823. <code>\OC\Files\Mount\MountPoint[]</code>
  2824. </MoreSpecificReturnType>
  2825. </file>
  2826. <file src="lib/private/Files/View.php">
  2827. <InvalidScalarArgument>
  2828. <code>$mtime</code>
  2829. </InvalidScalarArgument>
  2830. <UndefinedInterfaceMethod>
  2831. <code>acquireLock</code>
  2832. <code>changeLock</code>
  2833. <code>releaseLock</code>
  2834. </UndefinedInterfaceMethod>
  2835. </file>
  2836. <file src="lib/private/FullTextSearch/Model/IndexDocument.php">
  2837. <TypeDoesNotContainNull>
  2838. <code><![CDATA[is_null($this->getContent())]]></code>
  2839. </TypeDoesNotContainNull>
  2840. </file>
  2841. <file src="lib/private/Group/DisplayNameCache.php">
  2842. <MissingTemplateParam>
  2843. <code>IEventListener</code>
  2844. </MissingTemplateParam>
  2845. </file>
  2846. <file src="lib/private/Group/Group.php">
  2847. <InvalidArgument>
  2848. <code>bool</code>
  2849. </InvalidArgument>
  2850. <InvalidOperand>
  2851. <code>$hide</code>
  2852. </InvalidOperand>
  2853. <LessSpecificReturnStatement>
  2854. <code>$users</code>
  2855. </LessSpecificReturnStatement>
  2856. <MoreSpecificImplementedParamType>
  2857. <code>$user</code>
  2858. </MoreSpecificImplementedParamType>
  2859. <MoreSpecificReturnType>
  2860. <code>\OC\User\User[]</code>
  2861. </MoreSpecificReturnType>
  2862. <RedundantCondition>
  2863. <code><![CDATA[$this->emitter]]></code>
  2864. <code><![CDATA[$this->emitter]]></code>
  2865. <code><![CDATA[$this->emitter]]></code>
  2866. </RedundantCondition>
  2867. <UndefinedMethod>
  2868. <code>addToGroup</code>
  2869. <code>countUsersInGroup</code>
  2870. <code>deleteGroup</code>
  2871. <code>removeFromGroup</code>
  2872. </UndefinedMethod>
  2873. </file>
  2874. <file src="lib/private/Group/Manager.php">
  2875. <LessSpecificReturnStatement>
  2876. <code>$groups</code>
  2877. <code>array_values($groups)</code>
  2878. <code>array_values($groups)</code>
  2879. </LessSpecificReturnStatement>
  2880. <MoreSpecificReturnType>
  2881. <code>\OC\Group\Group[]</code>
  2882. <code>\OC\Group\Group[]</code>
  2883. </MoreSpecificReturnType>
  2884. <UndefinedInterfaceMethod>
  2885. <code>createGroup</code>
  2886. <code>getGroupDetails</code>
  2887. <code>isAdmin</code>
  2888. </UndefinedInterfaceMethod>
  2889. </file>
  2890. <file src="lib/private/Http/Client/Response.php">
  2891. <InvalidNullableReturnType>
  2892. <code>string|resource</code>
  2893. </InvalidNullableReturnType>
  2894. <NullableReturnStatement>
  2895. <code><![CDATA[$this->stream ?
  2896. $this->response->getBody()->detach():
  2897. $this->response->getBody()->getContents()]]></code>
  2898. </NullableReturnStatement>
  2899. </file>
  2900. <file src="lib/private/Installer.php">
  2901. <FalsableReturnStatement>
  2902. <code>false</code>
  2903. </FalsableReturnStatement>
  2904. <InvalidArgument>
  2905. <code>false</code>
  2906. <code>false</code>
  2907. </InvalidArgument>
  2908. <InvalidArrayOffset>
  2909. <code>$app['path']</code>
  2910. <code>$app['path']</code>
  2911. </InvalidArrayOffset>
  2912. <NullArgument>
  2913. <code>null</code>
  2914. </NullArgument>
  2915. </file>
  2916. <file src="lib/private/IntegrityCheck/Checker.php">
  2917. <InvalidArrayAccess>
  2918. <code><![CDATA[$x509->getDN(X509::DN_OPENSSL)['CN']]]></code>
  2919. <code><![CDATA[$x509->getDN(X509::DN_OPENSSL)['CN']]]></code>
  2920. <code><![CDATA[$x509->getDN(true)['CN']]]></code>
  2921. </InvalidArrayAccess>
  2922. <UndefinedInterfaceMethod>
  2923. <code>getOnlyDefaultAliases</code>
  2924. </UndefinedInterfaceMethod>
  2925. </file>
  2926. <file src="lib/private/IntegrityCheck/Iterator/ExcludeFileByNameFilterIterator.php">
  2927. <MissingTemplateParam>
  2928. <code>ExcludeFileByNameFilterIterator</code>
  2929. </MissingTemplateParam>
  2930. </file>
  2931. <file src="lib/private/IntegrityCheck/Iterator/ExcludeFoldersByPathFilterIterator.php">
  2932. <MissingTemplateParam>
  2933. <code>ExcludeFoldersByPathFilterIterator</code>
  2934. </MissingTemplateParam>
  2935. </file>
  2936. <file src="lib/private/L10N/Factory.php">
  2937. <ImplementedReturnTypeMismatch>
  2938. <code>null|string</code>
  2939. </ImplementedReturnTypeMismatch>
  2940. <LessSpecificImplementedReturnType>
  2941. <code>array|mixed</code>
  2942. </LessSpecificImplementedReturnType>
  2943. </file>
  2944. <file src="lib/private/LargeFileHelper.php">
  2945. <InvalidOperand>
  2946. <code>$matches[1]</code>
  2947. </InvalidOperand>
  2948. </file>
  2949. <file src="lib/private/Lockdown/Filesystem/NullCache.php">
  2950. <InvalidNullableReturnType>
  2951. <code>get</code>
  2952. </InvalidNullableReturnType>
  2953. <InvalidReturnStatement>
  2954. <code>[]</code>
  2955. </InvalidReturnStatement>
  2956. <InvalidReturnType>
  2957. <code>getIncomplete</code>
  2958. </InvalidReturnType>
  2959. <NullableReturnStatement>
  2960. <code><![CDATA[$file !== '' ? null :
  2961. new CacheEntry([
  2962. 'fileid' => -1,
  2963. 'parent' => -1,
  2964. 'name' => '',
  2965. 'path' => '',
  2966. 'size' => '0',
  2967. 'mtime' => time(),
  2968. 'storage_mtime' => time(),
  2969. 'etag' => '',
  2970. 'mimetype' => FileInfo::MIMETYPE_FOLDER,
  2971. 'mimepart' => 'httpd',
  2972. 'permissions' => Constants::PERMISSION_READ
  2973. ])]]></code>
  2974. </NullableReturnStatement>
  2975. </file>
  2976. <file src="lib/private/Lockdown/Filesystem/NullStorage.php">
  2977. <InvalidNullableReturnType>
  2978. <code>getOwner</code>
  2979. <code>getPermissions</code>
  2980. </InvalidNullableReturnType>
  2981. <InvalidReturnStatement>
  2982. <code>new IteratorDirectory([])</code>
  2983. <code>new NullCache()</code>
  2984. </InvalidReturnStatement>
  2985. <InvalidReturnType>
  2986. <code>getCache</code>
  2987. <code>opendir</code>
  2988. </InvalidReturnType>
  2989. <NullableReturnStatement>
  2990. <code>null</code>
  2991. <code>null</code>
  2992. </NullableReturnStatement>
  2993. <TooManyArguments>
  2994. <code>new IteratorDirectory([])</code>
  2995. </TooManyArguments>
  2996. </file>
  2997. <file src="lib/private/Lockdown/LockdownManager.php">
  2998. <InvalidFunctionCall>
  2999. <code>$callback()</code>
  3000. </InvalidFunctionCall>
  3001. <InvalidPropertyAssignmentValue>
  3002. <code>$sessionCallback</code>
  3003. </InvalidPropertyAssignmentValue>
  3004. </file>
  3005. <file src="lib/private/Log.php">
  3006. <RedundantCondition>
  3007. <code>$request</code>
  3008. </RedundantCondition>
  3009. </file>
  3010. <file src="lib/private/Log/File.php">
  3011. <TypeDoesNotContainNull>
  3012. <code>$limit === null</code>
  3013. </TypeDoesNotContainNull>
  3014. </file>
  3015. <file src="lib/private/Log/LogDetails.php">
  3016. <RedundantCondition>
  3017. <code><![CDATA[is_string($request->getMethod())]]></code>
  3018. </RedundantCondition>
  3019. </file>
  3020. <file src="lib/private/Log/Rotate.php">
  3021. <ParamNameMismatch>
  3022. <code>$dummy</code>
  3023. </ParamNameMismatch>
  3024. </file>
  3025. <file src="lib/private/Log/Systemdlog.php">
  3026. <UndefinedFunction>
  3027. <code><![CDATA[sd_journal_send('PRIORITY='.$journal_level,
  3028. 'SYSLOG_IDENTIFIER='.$this->syslogId,
  3029. 'MESSAGE=' . $this->logDetailsAsJSON($app, $message, $level))]]></code>
  3030. </UndefinedFunction>
  3031. </file>
  3032. <file src="lib/private/Memcache/APCu.php">
  3033. <InvalidReturnStatement>
  3034. <code><![CDATA[apcu_add($this->getPrefix() . $key, $value, $ttl)]]></code>
  3035. </InvalidReturnStatement>
  3036. <InvalidReturnType>
  3037. <code>bool</code>
  3038. </InvalidReturnType>
  3039. </file>
  3040. <file src="lib/private/Memcache/Cache.php">
  3041. <LessSpecificImplementedReturnType>
  3042. <code>mixed</code>
  3043. <code>mixed</code>
  3044. <code>mixed</code>
  3045. <code>mixed</code>
  3046. </LessSpecificImplementedReturnType>
  3047. <MissingTemplateParam>
  3048. <code>\ArrayAccess</code>
  3049. </MissingTemplateParam>
  3050. </file>
  3051. <file src="lib/private/Memcache/ProfilerWrapperCache.php">
  3052. <MissingTemplateParam>
  3053. <code>\ArrayAccess</code>
  3054. </MissingTemplateParam>
  3055. </file>
  3056. <file src="lib/private/Preview/BackgroundCleanupJob.php">
  3057. <InvalidReturnStatement>
  3058. <code>[]</code>
  3059. </InvalidReturnStatement>
  3060. </file>
  3061. <file src="lib/private/Preview/Generator.php">
  3062. <InvalidArgument>
  3063. <code>$maxPreviewImage</code>
  3064. </InvalidArgument>
  3065. <LessSpecificReturnType>
  3066. <code>null|string</code>
  3067. </LessSpecificReturnType>
  3068. <MismatchingDocblockParamType>
  3069. <code>ISimpleFile</code>
  3070. </MismatchingDocblockParamType>
  3071. <UndefinedInterfaceMethod>
  3072. <code>height</code>
  3073. <code>height</code>
  3074. <code>preciseResizeCopy</code>
  3075. <code>resizeCopy</code>
  3076. <code>valid</code>
  3077. <code>width</code>
  3078. <code>width</code>
  3079. </UndefinedInterfaceMethod>
  3080. </file>
  3081. <file src="lib/private/Preview/ProviderV1Adapter.php">
  3082. <InvalidReturnStatement>
  3083. <code>$thumbnail === false ? null: $thumbnail</code>
  3084. </InvalidReturnStatement>
  3085. <InvalidReturnType>
  3086. <code>?IImage</code>
  3087. </InvalidReturnType>
  3088. </file>
  3089. <file src="lib/private/RedisFactory.php">
  3090. <InvalidArgument>
  3091. <code>\RedisCluster::OPT_SLAVE_FAILOVER</code>
  3092. </InvalidArgument>
  3093. </file>
  3094. <file src="lib/private/Remote/Api/OCS.php">
  3095. <ImplementedReturnTypeMismatch>
  3096. <code>array</code>
  3097. </ImplementedReturnTypeMismatch>
  3098. </file>
  3099. <file src="lib/private/Remote/Instance.php">
  3100. <InvalidReturnStatement>
  3101. <code><![CDATA[$request->getBody()]]></code>
  3102. </InvalidReturnStatement>
  3103. <InvalidReturnType>
  3104. <code>bool|string</code>
  3105. </InvalidReturnType>
  3106. <InvalidScalarArgument>
  3107. <code>$response</code>
  3108. </InvalidScalarArgument>
  3109. </file>
  3110. <file src="lib/private/Repair/Owncloud/CleanPreviews.php">
  3111. <InvalidArgument>
  3112. <code>false</code>
  3113. </InvalidArgument>
  3114. </file>
  3115. <file src="lib/private/Repair/Owncloud/CleanPreviewsBackgroundJob.php">
  3116. <ParamNameMismatch>
  3117. <code>$arguments</code>
  3118. </ParamNameMismatch>
  3119. </file>
  3120. <file src="lib/private/Repair/Owncloud/MoveAvatarsBackgroundJob.php">
  3121. <ParamNameMismatch>
  3122. <code>$arguments</code>
  3123. </ParamNameMismatch>
  3124. <TypeDoesNotContainType>
  3125. <code>$counter % 100 === 0</code>
  3126. </TypeDoesNotContainType>
  3127. </file>
  3128. <file src="lib/private/Repair/RemoveLinkShares.php">
  3129. <InvalidPropertyAssignmentValue>
  3130. <code><![CDATA[$this->userToNotify]]></code>
  3131. </InvalidPropertyAssignmentValue>
  3132. </file>
  3133. <file src="lib/private/Repair/RepairInvalidShares.php">
  3134. <ParamNameMismatch>
  3135. <code>$out</code>
  3136. </ParamNameMismatch>
  3137. </file>
  3138. <file src="lib/private/Repair/RepairMimeTypes.php">
  3139. <ParamNameMismatch>
  3140. <code>$out</code>
  3141. </ParamNameMismatch>
  3142. </file>
  3143. <file src="lib/private/Repair/SqliteAutoincrement.php">
  3144. <ParamNameMismatch>
  3145. <code>$out</code>
  3146. </ParamNameMismatch>
  3147. </file>
  3148. <file src="lib/private/Route/Router.php">
  3149. <InvalidClass>
  3150. <code>\OC_APP</code>
  3151. </InvalidClass>
  3152. <InvalidNullableReturnType>
  3153. <code>string</code>
  3154. </InvalidNullableReturnType>
  3155. <NullableReturnStatement>
  3156. <code><![CDATA[$this->collectionName]]></code>
  3157. </NullableReturnStatement>
  3158. </file>
  3159. <file src="lib/private/Search.php">
  3160. <RedundantCondition>
  3161. <code>$provider instanceof Provider</code>
  3162. </RedundantCondition>
  3163. </file>
  3164. <file src="lib/private/Search/Result/File.php">
  3165. <InvalidPropertyAssignmentValue>
  3166. <code><![CDATA[$data->getId()]]></code>
  3167. <code><![CDATA[$data->getMtime()]]></code>
  3168. <code><![CDATA[$data->getPermissions()]]></code>
  3169. <code><![CDATA[$this->hasPreview($data)]]></code>
  3170. </InvalidPropertyAssignmentValue>
  3171. </file>
  3172. <file src="lib/private/Security/Bruteforce/Throttler.php">
  3173. <NullArgument>
  3174. <code>null</code>
  3175. </NullArgument>
  3176. </file>
  3177. <file src="lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php">
  3178. <NoInterfaceProperties>
  3179. <code><![CDATA[$this->request->server]]></code>
  3180. </NoInterfaceProperties>
  3181. </file>
  3182. <file src="lib/private/Security/CSRF/CsrfToken.php">
  3183. <InvalidArgument>
  3184. <code><![CDATA[\strlen($this->value)]]></code>
  3185. </InvalidArgument>
  3186. </file>
  3187. <file src="lib/private/Security/CredentialsManager.php">
  3188. <InvalidReturnStatement>
  3189. <code><![CDATA[$qb->execute()]]></code>
  3190. <code><![CDATA[$qb->execute()]]></code>
  3191. </InvalidReturnStatement>
  3192. <InvalidReturnType>
  3193. <code>int</code>
  3194. <code>int</code>
  3195. </InvalidReturnType>
  3196. </file>
  3197. <file src="lib/private/Security/Crypto.php">
  3198. <InternalMethod>
  3199. <code>decrypt</code>
  3200. <code>encrypt</code>
  3201. <code>setIV</code>
  3202. <code>setIV</code>
  3203. <code>setPassword</code>
  3204. <code>setPassword</code>
  3205. </InternalMethod>
  3206. </file>
  3207. <file src="lib/private/Server.php">
  3208. <ImplementedReturnTypeMismatch>
  3209. <code>\OCP\Calendar\Resource\IManager</code>
  3210. <code>\OCP\Calendar\Room\IManager</code>
  3211. <code>\OCP\Files\Folder|null</code>
  3212. </ImplementedReturnTypeMismatch>
  3213. <LessSpecificReturnStatement>
  3214. <code><![CDATA[$this->get(IFile::class)]]></code>
  3215. <code><![CDATA[$this->get(IGroupManager::class)]]></code>
  3216. <code><![CDATA[$this->get(INavigationManager::class)]]></code>
  3217. <code><![CDATA[$this->get(IUserManager::class)]]></code>
  3218. <code><![CDATA[$this->get(IUserSession::class)]]></code>
  3219. <code><![CDATA[$this->get(\OCP\Encryption\IManager::class)]]></code>
  3220. </LessSpecificReturnStatement>
  3221. <MoreSpecificReturnType>
  3222. <code>\OC\Encryption\File</code>
  3223. <code>\OC\Encryption\Manager</code>
  3224. <code>\OC\Group\Manager</code>
  3225. <code>\OC\NavigationManager</code>
  3226. <code>\OC\User\Manager</code>
  3227. <code>\OC\User\Session</code>
  3228. </MoreSpecificReturnType>
  3229. <UndefinedDocblockClass>
  3230. <code>\OC\OCSClient</code>
  3231. </UndefinedDocblockClass>
  3232. </file>
  3233. <file src="lib/private/ServerContainer.php">
  3234. <InvalidPropertyAssignmentValue>
  3235. <code><![CDATA[$this->hasNoAppContainer]]></code>
  3236. </InvalidPropertyAssignmentValue>
  3237. <NoValue>
  3238. <code><![CDATA[return $this->appContainers[$namespace];]]></code>
  3239. </NoValue>
  3240. </file>
  3241. <file src="lib/private/Session/CryptoSessionData.php">
  3242. <MissingTemplateParam>
  3243. <code>\ArrayAccess</code>
  3244. </MissingTemplateParam>
  3245. </file>
  3246. <file src="lib/private/Session/Internal.php">
  3247. <MoreSpecificImplementedParamType>
  3248. <code>$value</code>
  3249. </MoreSpecificImplementedParamType>
  3250. </file>
  3251. <file src="lib/private/Session/Memory.php">
  3252. <MoreSpecificImplementedParamType>
  3253. <code>$value</code>
  3254. </MoreSpecificImplementedParamType>
  3255. </file>
  3256. <file src="lib/private/Session/Session.php">
  3257. <MissingTemplateParam>
  3258. <code>\ArrayAccess</code>
  3259. </MissingTemplateParam>
  3260. </file>
  3261. <file src="lib/private/Setup.php">
  3262. <RedundantCondition>
  3263. <code>$content !== ''</code>
  3264. <code>$type === 'pdo'</code>
  3265. </RedundantCondition>
  3266. <UndefinedVariable>
  3267. <code>$vendor</code>
  3268. </UndefinedVariable>
  3269. </file>
  3270. <file src="lib/private/Setup/AbstractDatabase.php">
  3271. <TypeDoesNotContainType>
  3272. <code><![CDATA[ctype_digit($this->dbPort)]]></code>
  3273. </TypeDoesNotContainType>
  3274. <UndefinedThisPropertyFetch>
  3275. <code><![CDATA[$this->dbprettyname]]></code>
  3276. <code><![CDATA[$this->dbprettyname]]></code>
  3277. <code><![CDATA[$this->dbprettyname]]></code>
  3278. <code><![CDATA[$this->dbprettyname]]></code>
  3279. </UndefinedThisPropertyFetch>
  3280. </file>
  3281. <file src="lib/private/Share/Share.php">
  3282. <InvalidOperand>
  3283. <code>!self::isResharingAllowed()</code>
  3284. </InvalidOperand>
  3285. <UndefinedInterfaceMethod>
  3286. <code>getParents</code>
  3287. <code>getParents</code>
  3288. </UndefinedInterfaceMethod>
  3289. </file>
  3290. <file src="lib/private/Share20/DefaultShareProvider.php">
  3291. <InvalidArgument>
  3292. <code><![CDATA[$share->getId()]]></code>
  3293. <code><![CDATA[$share->getId()]]></code>
  3294. <code>(int)$data['id']</code>
  3295. </InvalidArgument>
  3296. <TooManyArguments>
  3297. <code>set</code>
  3298. </TooManyArguments>
  3299. <UndefinedInterfaceMethod>
  3300. <code>getParent</code>
  3301. </UndefinedInterfaceMethod>
  3302. </file>
  3303. <file src="lib/private/Share20/Manager.php">
  3304. <InvalidArgument>
  3305. <code>$id</code>
  3306. </InvalidArgument>
  3307. <TooManyArguments>
  3308. <code>update</code>
  3309. </TooManyArguments>
  3310. <UndefinedClass>
  3311. <code>\OCA\Circles\Api\v1\Circles</code>
  3312. </UndefinedClass>
  3313. <UndefinedInterfaceMethod>
  3314. <code>getChildren</code>
  3315. </UndefinedInterfaceMethod>
  3316. </file>
  3317. <file src="lib/private/Share20/ProviderFactory.php">
  3318. <InvalidNullableReturnType>
  3319. <code>FederatedShareProvider</code>
  3320. <code>ShareByMailProvider</code>
  3321. </InvalidNullableReturnType>
  3322. <InvalidReturnStatement>
  3323. <code>$provider</code>
  3324. <code>$provider</code>
  3325. <code><![CDATA[$this->shareByCircleProvider]]></code>
  3326. </InvalidReturnStatement>
  3327. <InvalidReturnType>
  3328. <code>getProviderForType</code>
  3329. </InvalidReturnType>
  3330. <NullableReturnStatement>
  3331. <code>null</code>
  3332. <code>null</code>
  3333. <code>null</code>
  3334. <code>null</code>
  3335. <code>null</code>
  3336. <code>null</code>
  3337. </NullableReturnStatement>
  3338. <ParamNameMismatch>
  3339. <code>$shareProviderClass</code>
  3340. </ParamNameMismatch>
  3341. <UndefinedClass>
  3342. <code>\OCA\Circles\ShareByCircleProvider</code>
  3343. </UndefinedClass>
  3344. <UndefinedDocblockClass>
  3345. <code>RoomShareProvider</code>
  3346. <code>\OCA\Circles\ShareByCircleProvider</code>
  3347. <code>\OCA\Talk\Share\RoomShareProvider</code>
  3348. <code>private $roomShareProvider = null;</code>
  3349. <code>private $shareByCircleProvider = null;</code>
  3350. </UndefinedDocblockClass>
  3351. <UndefinedInterfaceMethod>
  3352. <code>getLazyRootFolder</code>
  3353. <code>getLazyRootFolder</code>
  3354. <code>getLazyRootFolder</code>
  3355. <code>getLazyRootFolder</code>
  3356. </UndefinedInterfaceMethod>
  3357. </file>
  3358. <file src="lib/private/Share20/Share.php">
  3359. <LessSpecificReturnStatement>
  3360. <code><![CDATA[$this->node]]></code>
  3361. </LessSpecificReturnStatement>
  3362. <MoreSpecificReturnType>
  3363. <code>getNode</code>
  3364. </MoreSpecificReturnType>
  3365. </file>
  3366. <file src="lib/private/Streamer.php">
  3367. <InvalidArgument>
  3368. <code>$stream</code>
  3369. </InvalidArgument>
  3370. <UndefinedInterfaceMethod>
  3371. <code>get</code>
  3372. </UndefinedInterfaceMethod>
  3373. </file>
  3374. <file src="lib/private/SubAdmin.php">
  3375. <UndefinedInterfaceMethod>
  3376. <code>listen</code>
  3377. <code>listen</code>
  3378. </UndefinedInterfaceMethod>
  3379. </file>
  3380. <file src="lib/private/Support/Subscription/Registry.php">
  3381. <UndefinedInterfaceMethod>
  3382. <code>getSupportedApps</code>
  3383. </UndefinedInterfaceMethod>
  3384. </file>
  3385. <file src="lib/private/TagManager.php">
  3386. <InvalidNullableReturnType>
  3387. <code>\OCP\ITags</code>
  3388. </InvalidNullableReturnType>
  3389. <NullableReturnStatement>
  3390. <code>null</code>
  3391. </NullableReturnStatement>
  3392. </file>
  3393. <file src="lib/private/Tags.php">
  3394. <InvalidScalarArgument>
  3395. <code>$from</code>
  3396. <code>$names</code>
  3397. </InvalidScalarArgument>
  3398. <MoreSpecificImplementedParamType>
  3399. <code>$tag</code>
  3400. </MoreSpecificImplementedParamType>
  3401. </file>
  3402. <file src="lib/private/TempManager.php">
  3403. <FalsableReturnStatement>
  3404. <code>false</code>
  3405. <code>false</code>
  3406. </FalsableReturnStatement>
  3407. </file>
  3408. <file src="lib/private/Template/CSSResourceLocator.php">
  3409. <ParamNameMismatch>
  3410. <code>$style</code>
  3411. <code>$style</code>
  3412. </ParamNameMismatch>
  3413. </file>
  3414. <file src="lib/private/Template/JSConfigHelper.php">
  3415. <NullArgument>
  3416. <code>null</code>
  3417. <code>null</code>
  3418. </NullArgument>
  3419. </file>
  3420. <file src="lib/private/Template/JSResourceLocator.php">
  3421. <InvalidArgument>
  3422. <code>false</code>
  3423. </InvalidArgument>
  3424. <ParamNameMismatch>
  3425. <code>$script</code>
  3426. <code>$script</code>
  3427. </ParamNameMismatch>
  3428. </file>
  3429. <file src="lib/private/TemplateLayout.php">
  3430. <InvalidParamDefault>
  3431. <code>string</code>
  3432. <code>string</code>
  3433. </InvalidParamDefault>
  3434. <InvalidScalarArgument>
  3435. <code>$appName</code>
  3436. <code>$appName</code>
  3437. </InvalidScalarArgument>
  3438. <UndefinedInterfaceMethod>
  3439. <code>getInitialStates</code>
  3440. </UndefinedInterfaceMethod>
  3441. </file>
  3442. <file src="lib/private/URLGenerator.php">
  3443. <InvalidReturnStatement>
  3444. <code>$path</code>
  3445. </InvalidReturnStatement>
  3446. </file>
  3447. <file src="lib/private/User/Database.php">
  3448. <FalsableReturnStatement>
  3449. <code>false</code>
  3450. </FalsableReturnStatement>
  3451. </file>
  3452. <file src="lib/private/User/DisplayNameCache.php">
  3453. <MissingTemplateParam>
  3454. <code>IEventListener</code>
  3455. </MissingTemplateParam>
  3456. </file>
  3457. <file src="lib/private/User/Manager.php">
  3458. <ImplementedReturnTypeMismatch>
  3459. <code>IUser|false</code>
  3460. </ImplementedReturnTypeMismatch>
  3461. <InvalidArgument>
  3462. <code>$backend</code>
  3463. </InvalidArgument>
  3464. <UndefinedInterfaceMethod>
  3465. <code>createUser</code>
  3466. <code>getUsersForUserValueCaseInsensitive</code>
  3467. </UndefinedInterfaceMethod>
  3468. </file>
  3469. <file src="lib/private/User/Session.php">
  3470. <ImplementedReturnTypeMismatch>
  3471. <code>boolean|null</code>
  3472. </ImplementedReturnTypeMismatch>
  3473. <NoInterfaceProperties>
  3474. <code><![CDATA[$request->server]]></code>
  3475. <code><![CDATA[$request->server]]></code>
  3476. </NoInterfaceProperties>
  3477. </file>
  3478. <file src="lib/private/User/User.php">
  3479. <UndefinedInterfaceMethod>
  3480. <code>emit</code>
  3481. <code>emit</code>
  3482. <code>emit</code>
  3483. <code>emit</code>
  3484. <code>emit</code>
  3485. </UndefinedInterfaceMethod>
  3486. </file>
  3487. <file src="lib/private/legacy/OC_API.php">
  3488. <InvalidNullableReturnType>
  3489. <code>int</code>
  3490. </InvalidNullableReturnType>
  3491. <NullableReturnStatement>
  3492. <code>null</code>
  3493. </NullableReturnStatement>
  3494. </file>
  3495. <file src="lib/private/legacy/OC_App.php">
  3496. <InvalidArgument>
  3497. <code>$groupsList</code>
  3498. </InvalidArgument>
  3499. <InvalidArrayOffset>
  3500. <code>$dir['path']</code>
  3501. <code>$dir['url']</code>
  3502. </InvalidArrayOffset>
  3503. <NullArgument>
  3504. <code>null</code>
  3505. </NullArgument>
  3506. <NullableReturnStatement>
  3507. <code>null</code>
  3508. </NullableReturnStatement>
  3509. <TypeDoesNotContainNull>
  3510. <code>$appId === null</code>
  3511. <code>$appId === null</code>
  3512. </TypeDoesNotContainNull>
  3513. </file>
  3514. <file src="lib/private/legacy/OC_FileChunking.php">
  3515. <UndefinedDocblockClass>
  3516. <code>\OC\InsufficientStorageException</code>
  3517. </UndefinedDocblockClass>
  3518. </file>
  3519. <file src="lib/private/legacy/OC_Files.php">
  3520. <RedundantCondition>
  3521. <code>$getType === self::ZIP_DIR</code>
  3522. <code>$getType === self::ZIP_DIR</code>
  3523. </RedundantCondition>
  3524. <UndefinedInterfaceMethod>
  3525. <code>get</code>
  3526. <code>get</code>
  3527. </UndefinedInterfaceMethod>
  3528. </file>
  3529. <file src="lib/private/legacy/OC_Helper.php">
  3530. <InvalidArrayOffset>
  3531. <code>$matches[0][$last_match]</code>
  3532. <code>$matches[1][$last_match]</code>
  3533. </InvalidArrayOffset>
  3534. <InvalidScalarArgument>
  3535. <code>$path</code>
  3536. </InvalidScalarArgument>
  3537. <UndefinedInterfaceMethod>
  3538. <code>getQuota</code>
  3539. </UndefinedInterfaceMethod>
  3540. </file>
  3541. <file src="lib/private/legacy/OC_Template.php">
  3542. <InvalidReturnType>
  3543. <code>bool|string</code>
  3544. </InvalidReturnType>
  3545. </file>
  3546. <file src="lib/private/legacy/OC_User.php">
  3547. <UndefinedClass>
  3548. <code>\Test\Util\User\Dummy</code>
  3549. </UndefinedClass>
  3550. </file>
  3551. <file src="lib/private/legacy/OC_Util.php">
  3552. <InvalidReturnType>
  3553. <code>void</code>
  3554. </InvalidReturnType>
  3555. </file>
  3556. <file src="lib/public/AppFramework/ApiController.php">
  3557. <NoInterfaceProperties>
  3558. <code><![CDATA[$this->request->server]]></code>
  3559. </NoInterfaceProperties>
  3560. </file>
  3561. <file src="lib/public/AppFramework/App.php">
  3562. <InternalMethod>
  3563. <code><![CDATA[new RouteConfig($this->container, $router, $routes)]]></code>
  3564. </InternalMethod>
  3565. </file>
  3566. <file src="lib/public/AppFramework/Db/Entity.php">
  3567. <InvalidNullableReturnType>
  3568. <code>string</code>
  3569. </InvalidNullableReturnType>
  3570. <NullableReturnStatement>
  3571. <code>$column</code>
  3572. </NullableReturnStatement>
  3573. </file>
  3574. <file src="lib/public/AppFramework/Http/Response.php">
  3575. <LessSpecificReturnStatement>
  3576. <code><![CDATA[array_merge($mergeWith, $this->headers)]]></code>
  3577. </LessSpecificReturnStatement>
  3578. <MoreSpecificReturnType>
  3579. <code>array{X-Request-Id: string, Cache-Control: string, Content-Security-Policy: string, Feature-Policy: string, X-Robots-Tag: string, Last-Modified?: string, ETag?: string, ...H}</code>
  3580. </MoreSpecificReturnType>
  3581. </file>
  3582. <file src="lib/public/Cache/CappedMemoryCache.php">
  3583. <MissingTemplateParam>
  3584. <code>\ArrayAccess</code>
  3585. </MissingTemplateParam>
  3586. </file>
  3587. <file src="lib/public/Color.php">
  3588. <LessSpecificReturnStatement>
  3589. <code>$step</code>
  3590. </LessSpecificReturnStatement>
  3591. <MoreSpecificReturnType>
  3592. <code>array{0: int, 1: int, 2: int}</code>
  3593. </MoreSpecificReturnType>
  3594. </file>
  3595. <file src="lib/public/Diagnostics/IQueryLogger.php">
  3596. <LessSpecificImplementedReturnType>
  3597. <code>mixed</code>
  3598. </LessSpecificImplementedReturnType>
  3599. </file>
  3600. <file src="lib/public/EventDispatcher/GenericEvent.php">
  3601. <MissingTemplateParam>
  3602. <code>ArrayAccess</code>
  3603. <code>IteratorAggregate</code>
  3604. </MissingTemplateParam>
  3605. </file>
  3606. <file src="lib/public/Files.php">
  3607. <FalsableReturnStatement>
  3608. <code>\OC_App::getStorage($app)</code>
  3609. </FalsableReturnStatement>
  3610. </file>
  3611. <file src="lib/public/Files/Cache/ICacheEntry.php">
  3612. <MissingTemplateParam>
  3613. <code>ArrayAccess</code>
  3614. </MissingTemplateParam>
  3615. </file>
  3616. <file src="lib/public/Files/Storage.php">
  3617. <InvalidParamDefault>
  3618. <code>array</code>
  3619. </InvalidParamDefault>
  3620. </file>
  3621. <file src="lib/public/L10N/ILanguageIterator.php">
  3622. <MissingTemplateParam>
  3623. <code>\Iterator</code>
  3624. </MissingTemplateParam>
  3625. </file>
  3626. <file src="lib/public/Preview/BeforePreviewFetchedEvent.php">
  3627. <LessSpecificReturnStatement>
  3628. <code><![CDATA[$this->mode]]></code>
  3629. </LessSpecificReturnStatement>
  3630. <MoreSpecificReturnType>
  3631. <code>null|IPreview::MODE_FILL|IPreview::MODE_COVER</code>
  3632. </MoreSpecificReturnType>
  3633. </file>
  3634. </files>