psalm-baseline.xml 118 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662
  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/Blurhash/Listener/GenerateBlurhashMetadata.php">
  2139. <InvalidArgument>
  2140. <code>$image</code>
  2141. <code>$image</code>
  2142. <code>$image</code>
  2143. <code>$image</code>
  2144. </InvalidArgument>
  2145. <InvalidReturnStatement>
  2146. <code>$image</code>
  2147. </InvalidReturnStatement>
  2148. <InvalidReturnType>
  2149. <code>GdImage|false</code>
  2150. </InvalidReturnType>
  2151. </file>
  2152. <file src="lib/private/Cache/CappedMemoryCache.php">
  2153. <MissingTemplateParam>
  2154. <code>\ArrayAccess</code>
  2155. </MissingTemplateParam>
  2156. </file>
  2157. <file src="lib/private/Cache/File.php">
  2158. <LessSpecificImplementedReturnType>
  2159. <code>bool|mixed</code>
  2160. <code>bool|mixed</code>
  2161. </LessSpecificImplementedReturnType>
  2162. </file>
  2163. <file src="lib/private/Calendar/Manager.php">
  2164. <LessSpecificReturnStatement>
  2165. <code><![CDATA[array_merge(
  2166. ...array_map(function ($registration) use ($principalUri, $calendarUris) {
  2167. try {
  2168. /** @var ICalendarProvider $provider */
  2169. $provider = $this->container->get($registration->getService());
  2170. } catch (Throwable $e) {
  2171. $this->logger->error('Could not load calendar provider ' . $registration->getService() . ': ' . $e->getMessage(), [
  2172. 'exception' => $e,
  2173. ]);
  2174. return [];
  2175. }
  2176. return $provider->getCalendars($principalUri, $calendarUris);
  2177. }, $context->getCalendarProviders())
  2178. )]]></code>
  2179. </LessSpecificReturnStatement>
  2180. <MoreSpecificReturnType>
  2181. <code>ICreateFromString[]</code>
  2182. </MoreSpecificReturnType>
  2183. <NamedArgumentNotAllowed>
  2184. <code><![CDATA[array_map(function ($registration) use ($principalUri, $calendarUris) {
  2185. try {
  2186. /** @var ICalendarProvider $provider */
  2187. $provider = $this->container->get($registration->getService());
  2188. } catch (Throwable $e) {
  2189. $this->logger->error('Could not load calendar provider ' . $registration->getService() . ': ' . $e->getMessage(), [
  2190. 'exception' => $e,
  2191. ]);
  2192. return [];
  2193. }
  2194. return $provider->getCalendars($principalUri, $calendarUris);
  2195. }, $context->getCalendarProviders())]]></code>
  2196. </NamedArgumentNotAllowed>
  2197. </file>
  2198. <file src="lib/private/Command/CallableJob.php">
  2199. <ParamNameMismatch>
  2200. <code>$serializedCallable</code>
  2201. </ParamNameMismatch>
  2202. </file>
  2203. <file src="lib/private/Command/ClosureJob.php">
  2204. <InvalidArgument>
  2205. <code>[LaravelClosure::class, OpisClosure::class]</code>
  2206. </InvalidArgument>
  2207. <ParamNameMismatch>
  2208. <code>$serializedCallable</code>
  2209. </ParamNameMismatch>
  2210. </file>
  2211. <file src="lib/private/Command/CommandJob.php">
  2212. <ParamNameMismatch>
  2213. <code>$serializedCommand</code>
  2214. </ParamNameMismatch>
  2215. </file>
  2216. <file src="lib/private/Comments/Manager.php">
  2217. <RedundantCast>
  2218. <code>(string)$id</code>
  2219. </RedundantCast>
  2220. </file>
  2221. <file src="lib/private/Config.php">
  2222. <InvalidOperand>
  2223. <code><![CDATA[$this->delete($key)]]></code>
  2224. <code><![CDATA[$this->set($key, $value)]]></code>
  2225. </InvalidOperand>
  2226. <UndefinedVariable>
  2227. <code>$CONFIG</code>
  2228. <code>$CONFIG</code>
  2229. </UndefinedVariable>
  2230. </file>
  2231. <file src="lib/private/Console/Application.php">
  2232. <NoInterfaceProperties>
  2233. <code><![CDATA[$this->request->server]]></code>
  2234. </NoInterfaceProperties>
  2235. </file>
  2236. <file src="lib/private/ContactsManager.php">
  2237. <InvalidArgument>
  2238. <code>$searchOptions</code>
  2239. </InvalidArgument>
  2240. </file>
  2241. <file src="lib/private/DB/AdapterMySQL.php">
  2242. <InternalMethod>
  2243. <code>getParams</code>
  2244. </InternalMethod>
  2245. <InvalidArrayOffset>
  2246. <code>$params['collation']</code>
  2247. </InvalidArrayOffset>
  2248. </file>
  2249. <file src="lib/private/DB/Connection.php">
  2250. <InternalMethod>
  2251. <code>getParams</code>
  2252. </InternalMethod>
  2253. <InvalidArgument>
  2254. <code>$params</code>
  2255. </InvalidArgument>
  2256. <InvalidArrayOffset>
  2257. <code>$params['adapter']</code>
  2258. <code>$params['tablePrefix']</code>
  2259. </InvalidArrayOffset>
  2260. </file>
  2261. <file src="lib/private/DB/Exceptions/DbalException.php">
  2262. <RedundantCondition>
  2263. <code><![CDATA[is_int($original->getCode())]]></code>
  2264. </RedundantCondition>
  2265. <TypeDoesNotContainType>
  2266. <code>0</code>
  2267. </TypeDoesNotContainType>
  2268. </file>
  2269. <file src="lib/private/DB/MigrationService.php">
  2270. <LessSpecificReturnStatement>
  2271. <code>$s</code>
  2272. </LessSpecificReturnStatement>
  2273. <MoreSpecificReturnType>
  2274. <code>IMigrationStep</code>
  2275. </MoreSpecificReturnType>
  2276. </file>
  2277. <file src="lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php">
  2278. <ImplicitToStringCast>
  2279. <code><![CDATA[$this->functionBuilder->lower($x)]]></code>
  2280. </ImplicitToStringCast>
  2281. <InvalidArgument>
  2282. <code>$y</code>
  2283. <code>$y</code>
  2284. </InvalidArgument>
  2285. </file>
  2286. <file src="lib/private/DB/QueryBuilder/ExpressionBuilder/MySqlExpressionBuilder.php">
  2287. <InternalMethod>
  2288. <code>getParams</code>
  2289. </InternalMethod>
  2290. <InvalidArrayOffset>
  2291. <code>$params['collation']</code>
  2292. </InvalidArrayOffset>
  2293. </file>
  2294. <file src="lib/private/DB/QueryBuilder/QueryBuilder.php">
  2295. <InvalidNullableReturnType>
  2296. <code>string</code>
  2297. </InvalidNullableReturnType>
  2298. <NullableReturnStatement>
  2299. <code>$alias</code>
  2300. </NullableReturnStatement>
  2301. <ParamNameMismatch>
  2302. <code>$groupBys</code>
  2303. <code>$selects</code>
  2304. </ParamNameMismatch>
  2305. </file>
  2306. <file src="lib/private/DB/QueryBuilder/QuoteHelper.php">
  2307. <InvalidNullableReturnType>
  2308. <code>string</code>
  2309. </InvalidNullableReturnType>
  2310. <NullableReturnStatement>
  2311. <code>$string</code>
  2312. </NullableReturnStatement>
  2313. </file>
  2314. <file src="lib/private/DateTimeFormatter.php">
  2315. <FalsableReturnStatement>
  2316. <code><![CDATA[$l->l($type, $timestamp, [
  2317. 'width' => $format,
  2318. ])]]></code>
  2319. </FalsableReturnStatement>
  2320. <InvalidDocblock>
  2321. <code>public function formatDateSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null) {</code>
  2322. <code>public function formatTimeSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null) {</code>
  2323. </InvalidDocblock>
  2324. <InvalidReturnStatement>
  2325. <code><![CDATA[$l->l($type, $timestamp, [
  2326. 'width' => $format,
  2327. ])]]></code>
  2328. </InvalidReturnStatement>
  2329. <InvalidReturnType>
  2330. <code>string</code>
  2331. </InvalidReturnType>
  2332. </file>
  2333. <file src="lib/private/DateTimeZone.php">
  2334. <InvalidScalarArgument>
  2335. <code>$timestamp</code>
  2336. </InvalidScalarArgument>
  2337. </file>
  2338. <file src="lib/private/Diagnostics/Query.php">
  2339. <ImplementedReturnTypeMismatch>
  2340. <code>float</code>
  2341. </ImplementedReturnTypeMismatch>
  2342. </file>
  2343. <file src="lib/private/Diagnostics/QueryLogger.php">
  2344. <InvalidArgument>
  2345. <code>microtime(true)</code>
  2346. </InvalidArgument>
  2347. <InvalidReturnType>
  2348. <code>stopQuery</code>
  2349. </InvalidReturnType>
  2350. </file>
  2351. <file src="lib/private/DirectEditing/Manager.php">
  2352. <InvalidReturnStatement>
  2353. <code><![CDATA[$query->execute()]]></code>
  2354. </InvalidReturnStatement>
  2355. <InvalidReturnType>
  2356. <code>TemplateResponse</code>
  2357. <code>int</code>
  2358. </InvalidReturnType>
  2359. <UndefinedMethod>
  2360. <code>$template</code>
  2361. <code>$template</code>
  2362. <code>$template</code>
  2363. <code>$template</code>
  2364. </UndefinedMethod>
  2365. </file>
  2366. <file src="lib/private/DirectEditing/Token.php">
  2367. <LessSpecificReturnStatement>
  2368. <code><![CDATA[$this->manager->getFileForToken($this->data['user_id'], $this->data['file_id'], $this->data['file_path'])]]></code>
  2369. </LessSpecificReturnStatement>
  2370. <UndefinedMethod>
  2371. <code>getShareForToken</code>
  2372. </UndefinedMethod>
  2373. </file>
  2374. <file src="lib/private/Encryption/File.php">
  2375. <LessSpecificReturnStatement>
  2376. <code><![CDATA[['users' => $uniqueUserIds, 'public' => $public]]]></code>
  2377. </LessSpecificReturnStatement>
  2378. <MoreSpecificReturnType>
  2379. <code>array{users: string[], public: bool}</code>
  2380. </MoreSpecificReturnType>
  2381. </file>
  2382. <file src="lib/private/Encryption/Keys/Storage.php">
  2383. <InvalidNullableReturnType>
  2384. <code>deleteUserKey</code>
  2385. </InvalidNullableReturnType>
  2386. <NullArgument>
  2387. <code>null</code>
  2388. <code>null</code>
  2389. <code>null</code>
  2390. </NullArgument>
  2391. </file>
  2392. <file src="lib/private/Encryption/Manager.php">
  2393. <ImplementedReturnTypeMismatch>
  2394. <code>bool</code>
  2395. </ImplementedReturnTypeMismatch>
  2396. </file>
  2397. <file src="lib/private/Federation/CloudFederationProviderManager.php">
  2398. <ParamNameMismatch>
  2399. <code>$providerId</code>
  2400. </ParamNameMismatch>
  2401. </file>
  2402. <file src="lib/private/Files/AppData/AppData.php">
  2403. <LessSpecificReturnStatement>
  2404. <code><![CDATA[$this->folder]]></code>
  2405. </LessSpecificReturnStatement>
  2406. <MoreSpecificReturnType>
  2407. <code>Folder</code>
  2408. </MoreSpecificReturnType>
  2409. </file>
  2410. <file src="lib/private/Files/Cache/Cache.php">
  2411. <InvalidArgument>
  2412. <code>$parentData</code>
  2413. </InvalidArgument>
  2414. <InvalidNullableReturnType>
  2415. <code>array</code>
  2416. </InvalidNullableReturnType>
  2417. <InvalidScalarArgument>
  2418. <code>$path</code>
  2419. <code>\OC_Util::normalizeUnicode($path)</code>
  2420. </InvalidScalarArgument>
  2421. <NullableReturnStatement>
  2422. <code>null</code>
  2423. <code>null</code>
  2424. </NullableReturnStatement>
  2425. <ParamNameMismatch>
  2426. <code>$searchQuery</code>
  2427. </ParamNameMismatch>
  2428. </file>
  2429. <file src="lib/private/Files/Cache/FailedCache.php">
  2430. <InvalidReturnStatement>
  2431. <code>[]</code>
  2432. </InvalidReturnStatement>
  2433. <InvalidReturnType>
  2434. <code>getIncomplete</code>
  2435. <code>insert</code>
  2436. <code>put</code>
  2437. </InvalidReturnType>
  2438. </file>
  2439. <file src="lib/private/Files/Cache/HomeCache.php">
  2440. <FalsableReturnStatement>
  2441. <code>$data</code>
  2442. </FalsableReturnStatement>
  2443. <MoreSpecificImplementedParamType>
  2444. <code>$file</code>
  2445. <code>$file</code>
  2446. </MoreSpecificImplementedParamType>
  2447. </file>
  2448. <file src="lib/private/Files/Cache/Scanner.php">
  2449. <InvalidArgument>
  2450. <code>self::SCAN_RECURSIVE_INCOMPLETE</code>
  2451. </InvalidArgument>
  2452. <InvalidReturnStatement>
  2453. <code>$existingChildren</code>
  2454. </InvalidReturnStatement>
  2455. <InvalidReturnType>
  2456. <code>array[]</code>
  2457. </InvalidReturnType>
  2458. </file>
  2459. <file src="lib/private/Files/Cache/Storage.php">
  2460. <InvalidNullableReturnType>
  2461. <code>array</code>
  2462. </InvalidNullableReturnType>
  2463. <NullableReturnStatement>
  2464. <code><![CDATA[self::getGlobalCache()->getStorageInfo($storageId)]]></code>
  2465. </NullableReturnStatement>
  2466. </file>
  2467. <file src="lib/private/Files/Cache/Updater.php">
  2468. <RedundantCondition>
  2469. <code><![CDATA[$this->cache instanceof Cache]]></code>
  2470. </RedundantCondition>
  2471. </file>
  2472. <file src="lib/private/Files/Cache/Wrapper/CacheWrapper.php">
  2473. <LessSpecificImplementedReturnType>
  2474. <code>array</code>
  2475. <code>array</code>
  2476. </LessSpecificImplementedReturnType>
  2477. <ParamNameMismatch>
  2478. <code>$searchQuery</code>
  2479. </ParamNameMismatch>
  2480. </file>
  2481. <file src="lib/private/Files/Config/MountProviderCollection.php">
  2482. <InvalidOperand>
  2483. <code>$user</code>
  2484. </InvalidOperand>
  2485. <RedundantCondition>
  2486. <code>get_class($provider) !== 'OCA\Files_Sharing\MountProvider'</code>
  2487. </RedundantCondition>
  2488. <TypeDoesNotContainType>
  2489. <code>get_class($provider) === 'OCA\Files_Sharing\MountProvider'</code>
  2490. </TypeDoesNotContainType>
  2491. </file>
  2492. <file src="lib/private/Files/Config/UserMountCache.php">
  2493. <InvalidReturnType>
  2494. <code>remoteStorageMounts</code>
  2495. <code>removeUserStorageMount</code>
  2496. </InvalidReturnType>
  2497. <LessSpecificImplementedReturnType>
  2498. <code>array</code>
  2499. </LessSpecificImplementedReturnType>
  2500. <LessSpecificReturnStatement>
  2501. <code><![CDATA[$this->cacheInfoCache[$fileId]]]></code>
  2502. </LessSpecificReturnStatement>
  2503. <MoreSpecificReturnType>
  2504. <code>array{int, string, int}</code>
  2505. </MoreSpecificReturnType>
  2506. </file>
  2507. <file src="lib/private/Files/FileInfo.php">
  2508. <MissingTemplateParam>
  2509. <code>\ArrayAccess</code>
  2510. </MissingTemplateParam>
  2511. </file>
  2512. <file src="lib/private/Files/Filesystem.php">
  2513. <LessSpecificReturnStatement>
  2514. <code><![CDATA[$mount->getStorage()]]></code>
  2515. <code><![CDATA[self::getMountManager()->findByNumericId($id)]]></code>
  2516. <code><![CDATA[self::getMountManager()->findByStorageId($id)]]></code>
  2517. </LessSpecificReturnStatement>
  2518. <MoreSpecificReturnType>
  2519. <code>Mount\MountPoint[]</code>
  2520. <code>Mount\MountPoint[]</code>
  2521. <code>\OC\Files\Storage\Storage|null</code>
  2522. </MoreSpecificReturnType>
  2523. <TooManyArguments>
  2524. <code>addStorageWrapper</code>
  2525. </TooManyArguments>
  2526. </file>
  2527. <file src="lib/private/Files/Mount/MountPoint.php">
  2528. <UndefinedInterfaceMethod>
  2529. <code>wrap</code>
  2530. </UndefinedInterfaceMethod>
  2531. </file>
  2532. <file src="lib/private/Files/Mount/ObjectHomeMountProvider.php">
  2533. <InvalidNullableReturnType>
  2534. <code>\OCP\Files\Mount\IMountPoint</code>
  2535. </InvalidNullableReturnType>
  2536. <NullableReturnStatement>
  2537. <code>null</code>
  2538. </NullableReturnStatement>
  2539. </file>
  2540. <file src="lib/private/Files/Node/File.php">
  2541. <InvalidReturnStatement>
  2542. <code><![CDATA[$this->view->hash($type, $this->path, $raw)]]></code>
  2543. </InvalidReturnStatement>
  2544. <InvalidReturnType>
  2545. <code>string</code>
  2546. </InvalidReturnType>
  2547. </file>
  2548. <file src="lib/private/Files/Node/Folder.php">
  2549. <LessSpecificReturnStatement>
  2550. <code><![CDATA[$this->root->get($this->getFullPath($path))]]></code>
  2551. <code><![CDATA[$this->root->getByIdInPath((int)$id, $this->getPath())]]></code>
  2552. <code><![CDATA[array_map(function (FileInfo $file) {
  2553. return $this->createNode($file->getPath(), $file);
  2554. }, $files)]]></code>
  2555. </LessSpecificReturnStatement>
  2556. <MoreSpecificImplementedParamType>
  2557. <code>$node</code>
  2558. </MoreSpecificImplementedParamType>
  2559. <MoreSpecificReturnType>
  2560. <code>\OC\Files\Node\Node</code>
  2561. <code>\OC\Files\Node\Node[]</code>
  2562. <code>\OC\Files\Node\Node[]</code>
  2563. </MoreSpecificReturnType>
  2564. </file>
  2565. <file src="lib/private/Files/Node/HookConnector.php">
  2566. <UndefinedInterfaceMethod>
  2567. <code>emit</code>
  2568. <code>emit</code>
  2569. <code>emit</code>
  2570. <code>emit</code>
  2571. <code>emit</code>
  2572. <code>emit</code>
  2573. <code>emit</code>
  2574. <code>emit</code>
  2575. <code>emit</code>
  2576. <code>emit</code>
  2577. <code>emit</code>
  2578. <code>emit</code>
  2579. <code>emit</code>
  2580. </UndefinedInterfaceMethod>
  2581. </file>
  2582. <file src="lib/private/Files/Node/LazyFolder.php">
  2583. <InvalidReturnStatement>
  2584. <code><![CDATA[$this->__call(__FUNCTION__, func_get_args())]]></code>
  2585. </InvalidReturnStatement>
  2586. </file>
  2587. <file src="lib/private/Files/Node/LazyUserFolder.php">
  2588. <LessSpecificReturnStatement>
  2589. <code>$node</code>
  2590. </LessSpecificReturnStatement>
  2591. <MoreSpecificReturnType>
  2592. <code>Folder</code>
  2593. </MoreSpecificReturnType>
  2594. </file>
  2595. <file src="lib/private/Files/Node/Node.php">
  2596. <InvalidNullableReturnType>
  2597. <code>FileInfo</code>
  2598. </InvalidNullableReturnType>
  2599. <InvalidReturnType>
  2600. <code>getChecksum</code>
  2601. </InvalidReturnType>
  2602. <LessSpecificReturnStatement>
  2603. <code><![CDATA[$this->parent]]></code>
  2604. </LessSpecificReturnStatement>
  2605. <MoreSpecificReturnType>
  2606. <code>INode|IRootFolder</code>
  2607. </MoreSpecificReturnType>
  2608. <NullableReturnStatement>
  2609. <code><![CDATA[$this->fileInfo]]></code>
  2610. </NullableReturnStatement>
  2611. <ParamNameMismatch>
  2612. <code>$type</code>
  2613. </ParamNameMismatch>
  2614. <UndefinedInterfaceMethod>
  2615. <code><![CDATA[$this->fileInfo]]></code>
  2616. <code><![CDATA[$this->fileInfo]]></code>
  2617. </UndefinedInterfaceMethod>
  2618. </file>
  2619. <file src="lib/private/Files/Node/Root.php">
  2620. <LessSpecificReturnStatement>
  2621. <code>$folders</code>
  2622. <code><![CDATA[$this->createNode($fullPath, $fileInfo, false)]]></code>
  2623. <code><![CDATA[$this->mountManager->findByNumericId($numericId)]]></code>
  2624. <code><![CDATA[$this->mountManager->findByStorageId($storageId)]]></code>
  2625. <code><![CDATA[$this->mountManager->findIn($mountPoint)]]></code>
  2626. <code><![CDATA[$this->user]]></code>
  2627. </LessSpecificReturnStatement>
  2628. <MoreSpecificReturnType>
  2629. <code>MountPoint[]</code>
  2630. <code>Node</code>
  2631. <code>\OC\Files\Mount\MountPoint[]</code>
  2632. <code>\OC\Files\Mount\MountPoint[]</code>
  2633. <code>\OC\User\User</code>
  2634. </MoreSpecificReturnType>
  2635. <NullableReturnStatement>
  2636. <code><![CDATA[$this->user]]></code>
  2637. </NullableReturnStatement>
  2638. <UndefinedMethod>
  2639. <code>remove</code>
  2640. </UndefinedMethod>
  2641. </file>
  2642. <file src="lib/private/Files/ObjectStore/HomeObjectStoreStorage.php">
  2643. <ImplementedReturnTypeMismatch>
  2644. <code>false|string</code>
  2645. </ImplementedReturnTypeMismatch>
  2646. </file>
  2647. <file src="lib/private/Files/ObjectStore/ObjectStoreStorage.php">
  2648. <InvalidScalarArgument>
  2649. <code>$source</code>
  2650. </InvalidScalarArgument>
  2651. </file>
  2652. <file src="lib/private/Files/ObjectStore/S3ConnectionTrait.php">
  2653. <InternalClass>
  2654. <code>ClientResolver::_default_signature_provider()</code>
  2655. <code>ClientResolver::_default_signature_provider()</code>
  2656. </InternalClass>
  2657. <InternalMethod>
  2658. <code>ClientResolver::_default_signature_provider()</code>
  2659. </InternalMethod>
  2660. <UndefinedFunction>
  2661. <code>Promise\promise_for(
  2662. new Credentials($key, $secret)
  2663. )</code>
  2664. <code>\Aws\or_chain([self::class, 'legacySignatureProvider'], ClientResolver::_default_signature_provider())</code>
  2665. </UndefinedFunction>
  2666. </file>
  2667. <file src="lib/private/Files/ObjectStore/S3ObjectTrait.php">
  2668. <InternalMethod>
  2669. <code>upload</code>
  2670. </InternalMethod>
  2671. <UndefinedFunction>
  2672. <code>\Aws\serialize($command)</code>
  2673. </UndefinedFunction>
  2674. </file>
  2675. <file src="lib/private/Files/ObjectStore/S3Signature.php">
  2676. <NullArgument>
  2677. <code>null</code>
  2678. </NullArgument>
  2679. </file>
  2680. <file src="lib/private/Files/ObjectStore/StorageObjectStore.php">
  2681. <InvalidReturnType>
  2682. <code>string</code>
  2683. </InvalidReturnType>
  2684. </file>
  2685. <file src="lib/private/Files/Storage/Common.php">
  2686. <ImplementedReturnTypeMismatch>
  2687. <code>string|false</code>
  2688. </ImplementedReturnTypeMismatch>
  2689. <InvalidOperand>
  2690. <code>!$permissions</code>
  2691. <code><![CDATA[$this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file)]]></code>
  2692. </InvalidOperand>
  2693. <NoInterfaceProperties>
  2694. <code><![CDATA[$storage->cache]]></code>
  2695. <code><![CDATA[$storage->cache]]></code>
  2696. <code><![CDATA[$storage->propagator]]></code>
  2697. <code><![CDATA[$storage->propagator]]></code>
  2698. <code><![CDATA[$storage->scanner]]></code>
  2699. <code><![CDATA[$storage->scanner]]></code>
  2700. <code><![CDATA[$storage->updater]]></code>
  2701. <code><![CDATA[$storage->updater]]></code>
  2702. </NoInterfaceProperties>
  2703. </file>
  2704. <file src="lib/private/Files/Storage/DAV.php">
  2705. <InvalidClass>
  2706. <code>ArrayCache</code>
  2707. <code>ArrayCache</code>
  2708. </InvalidClass>
  2709. <InvalidReturnStatement>
  2710. <code><![CDATA[$response->getBody()]]></code>
  2711. </InvalidReturnStatement>
  2712. <InvalidReturnType>
  2713. <code>fopen</code>
  2714. </InvalidReturnType>
  2715. <NullableReturnStatement>
  2716. <code>null</code>
  2717. </NullableReturnStatement>
  2718. </file>
  2719. <file src="lib/private/Files/Storage/FailedStorage.php">
  2720. <InvalidReturnStatement>
  2721. <code>new FailedCache()</code>
  2722. <code>true</code>
  2723. </InvalidReturnStatement>
  2724. <InvalidReturnType>
  2725. <code>getCache</code>
  2726. <code>verifyPath</code>
  2727. </InvalidReturnType>
  2728. </file>
  2729. <file src="lib/private/Files/Storage/Local.php">
  2730. <ImplicitToStringCast>
  2731. <code>$file</code>
  2732. </ImplicitToStringCast>
  2733. <TypeDoesNotContainNull>
  2734. <code>$space === false || is_null($space)</code>
  2735. <code>is_null($space)</code>
  2736. </TypeDoesNotContainNull>
  2737. <TypeDoesNotContainType>
  2738. <code>$stat === false</code>
  2739. </TypeDoesNotContainType>
  2740. </file>
  2741. <file src="lib/private/Files/Storage/LocalRootStorage.php">
  2742. <NoInterfaceProperties>
  2743. <code><![CDATA[$storage->scanner]]></code>
  2744. <code><![CDATA[$storage->scanner]]></code>
  2745. </NoInterfaceProperties>
  2746. </file>
  2747. <file src="lib/private/Files/Storage/Wrapper/Encoding.php">
  2748. <InvalidArgument>
  2749. <code>\Normalizer::FORM_C</code>
  2750. <code>\Normalizer::FORM_C</code>
  2751. <code>\Normalizer::FORM_D</code>
  2752. </InvalidArgument>
  2753. <UndefinedInterfaceMethod>
  2754. <code><![CDATA[$this->namesCache]]></code>
  2755. <code><![CDATA[$this->namesCache]]></code>
  2756. <code><![CDATA[$this->namesCache]]></code>
  2757. <code><![CDATA[$this->namesCache]]></code>
  2758. <code><![CDATA[$this->namesCache]]></code>
  2759. <code><![CDATA[$this->namesCache]]></code>
  2760. <code><![CDATA[$this->namesCache]]></code>
  2761. <code><![CDATA[$this->namesCache]]></code>
  2762. <code><![CDATA[$this->namesCache]]></code>
  2763. <code><![CDATA[$this->namesCache]]></code>
  2764. <code><![CDATA[$this->namesCache]]></code>
  2765. <code><![CDATA[$this->namesCache]]></code>
  2766. <code><![CDATA[$this->namesCache]]></code>
  2767. <code><![CDATA[$this->namesCache]]></code>
  2768. <code><![CDATA[$this->namesCache]]></code>
  2769. <code><![CDATA[$this->namesCache]]></code>
  2770. <code><![CDATA[$this->namesCache]]></code>
  2771. </UndefinedInterfaceMethod>
  2772. </file>
  2773. <file src="lib/private/Files/Storage/Wrapper/Encryption.php">
  2774. <InvalidOperand>
  2775. <code>$result</code>
  2776. <code>$result</code>
  2777. <code><![CDATA[$this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file, false, $isRename)]]></code>
  2778. </InvalidOperand>
  2779. <InvalidReturnStatement>
  2780. <code>$newUnencryptedSize</code>
  2781. <code>$result</code>
  2782. </InvalidReturnStatement>
  2783. <InvalidReturnType>
  2784. <code>bool</code>
  2785. <code>int</code>
  2786. </InvalidReturnType>
  2787. <InvalidScalarArgument>
  2788. <code>$lastChunkPos</code>
  2789. <code>$size</code>
  2790. </InvalidScalarArgument>
  2791. </file>
  2792. <file src="lib/private/Files/Storage/Wrapper/Jail.php">
  2793. <InvalidReturnStatement>
  2794. <code><![CDATA[$this->getWrapperStorage()->filetype($this->getUnjailedPath($path))]]></code>
  2795. </InvalidReturnStatement>
  2796. <InvalidReturnType>
  2797. <code>bool</code>
  2798. </InvalidReturnType>
  2799. </file>
  2800. <file src="lib/private/Files/Storage/Wrapper/Wrapper.php">
  2801. <InvalidReturnStatement>
  2802. <code><![CDATA[$this->getWrapperStorage()->test()]]></code>
  2803. </InvalidReturnStatement>
  2804. <InvalidReturnType>
  2805. <code>true</code>
  2806. </InvalidReturnType>
  2807. </file>
  2808. <file src="lib/private/Files/Stream/SeekableHttpStream.php">
  2809. <InvalidReturnType>
  2810. <code>stream_close</code>
  2811. <code>stream_flush</code>
  2812. </InvalidReturnType>
  2813. </file>
  2814. <file src="lib/private/Files/Template/TemplateManager.php">
  2815. <RedundantCondition>
  2816. <code>!$isDefaultTemplates</code>
  2817. </RedundantCondition>
  2818. </file>
  2819. <file src="lib/private/Files/Type/Detection.php">
  2820. <ParamNameMismatch>
  2821. <code>$mimetype</code>
  2822. </ParamNameMismatch>
  2823. </file>
  2824. <file src="lib/private/Files/Type/Loader.php">
  2825. <InvalidReturnStatement>
  2826. <code><![CDATA[$update->execute()]]></code>
  2827. </InvalidReturnStatement>
  2828. <InvalidReturnType>
  2829. <code>int</code>
  2830. </InvalidReturnType>
  2831. </file>
  2832. <file src="lib/private/Files/Utils/Scanner.php">
  2833. <LessSpecificReturnStatement>
  2834. <code>$mounts</code>
  2835. </LessSpecificReturnStatement>
  2836. <MoreSpecificReturnType>
  2837. <code>\OC\Files\Mount\MountPoint[]</code>
  2838. </MoreSpecificReturnType>
  2839. </file>
  2840. <file src="lib/private/Files/View.php">
  2841. <InvalidScalarArgument>
  2842. <code>$mtime</code>
  2843. </InvalidScalarArgument>
  2844. <UndefinedInterfaceMethod>
  2845. <code>acquireLock</code>
  2846. <code>changeLock</code>
  2847. <code>releaseLock</code>
  2848. </UndefinedInterfaceMethod>
  2849. </file>
  2850. <file src="lib/private/FullTextSearch/Model/IndexDocument.php">
  2851. <TypeDoesNotContainNull>
  2852. <code><![CDATA[is_null($this->getContent())]]></code>
  2853. </TypeDoesNotContainNull>
  2854. </file>
  2855. <file src="lib/private/Group/DisplayNameCache.php">
  2856. <MissingTemplateParam>
  2857. <code>IEventListener</code>
  2858. </MissingTemplateParam>
  2859. </file>
  2860. <file src="lib/private/Group/Group.php">
  2861. <InvalidArgument>
  2862. <code>bool</code>
  2863. </InvalidArgument>
  2864. <InvalidOperand>
  2865. <code>$hide</code>
  2866. </InvalidOperand>
  2867. <LessSpecificReturnStatement>
  2868. <code>$users</code>
  2869. </LessSpecificReturnStatement>
  2870. <MoreSpecificImplementedParamType>
  2871. <code>$user</code>
  2872. </MoreSpecificImplementedParamType>
  2873. <MoreSpecificReturnType>
  2874. <code>\OC\User\User[]</code>
  2875. </MoreSpecificReturnType>
  2876. <RedundantCondition>
  2877. <code><![CDATA[$this->emitter]]></code>
  2878. <code><![CDATA[$this->emitter]]></code>
  2879. <code><![CDATA[$this->emitter]]></code>
  2880. </RedundantCondition>
  2881. <UndefinedMethod>
  2882. <code>addToGroup</code>
  2883. <code>countUsersInGroup</code>
  2884. <code>deleteGroup</code>
  2885. <code>removeFromGroup</code>
  2886. </UndefinedMethod>
  2887. </file>
  2888. <file src="lib/private/Group/Manager.php">
  2889. <LessSpecificReturnStatement>
  2890. <code>$groups</code>
  2891. <code>array_values($groups)</code>
  2892. <code>array_values($groups)</code>
  2893. </LessSpecificReturnStatement>
  2894. <MoreSpecificReturnType>
  2895. <code>\OC\Group\Group[]</code>
  2896. <code>\OC\Group\Group[]</code>
  2897. </MoreSpecificReturnType>
  2898. <UndefinedInterfaceMethod>
  2899. <code>createGroup</code>
  2900. <code>getGroupDetails</code>
  2901. <code>isAdmin</code>
  2902. </UndefinedInterfaceMethod>
  2903. </file>
  2904. <file src="lib/private/Http/Client/Response.php">
  2905. <InvalidNullableReturnType>
  2906. <code>string|resource</code>
  2907. </InvalidNullableReturnType>
  2908. <NullableReturnStatement>
  2909. <code><![CDATA[$this->stream ?
  2910. $this->response->getBody()->detach():
  2911. $this->response->getBody()->getContents()]]></code>
  2912. </NullableReturnStatement>
  2913. </file>
  2914. <file src="lib/private/Installer.php">
  2915. <FalsableReturnStatement>
  2916. <code>false</code>
  2917. </FalsableReturnStatement>
  2918. <InvalidArgument>
  2919. <code>false</code>
  2920. <code>false</code>
  2921. </InvalidArgument>
  2922. <InvalidArrayOffset>
  2923. <code>$app['path']</code>
  2924. <code>$app['path']</code>
  2925. </InvalidArrayOffset>
  2926. <NullArgument>
  2927. <code>null</code>
  2928. </NullArgument>
  2929. </file>
  2930. <file src="lib/private/IntegrityCheck/Checker.php">
  2931. <InvalidArrayAccess>
  2932. <code><![CDATA[$x509->getDN(X509::DN_OPENSSL)['CN']]]></code>
  2933. <code><![CDATA[$x509->getDN(X509::DN_OPENSSL)['CN']]]></code>
  2934. <code><![CDATA[$x509->getDN(true)['CN']]]></code>
  2935. </InvalidArrayAccess>
  2936. <UndefinedInterfaceMethod>
  2937. <code>getOnlyDefaultAliases</code>
  2938. </UndefinedInterfaceMethod>
  2939. </file>
  2940. <file src="lib/private/IntegrityCheck/Iterator/ExcludeFileByNameFilterIterator.php">
  2941. <MissingTemplateParam>
  2942. <code>ExcludeFileByNameFilterIterator</code>
  2943. </MissingTemplateParam>
  2944. </file>
  2945. <file src="lib/private/IntegrityCheck/Iterator/ExcludeFoldersByPathFilterIterator.php">
  2946. <MissingTemplateParam>
  2947. <code>ExcludeFoldersByPathFilterIterator</code>
  2948. </MissingTemplateParam>
  2949. </file>
  2950. <file src="lib/private/L10N/Factory.php">
  2951. <ImplementedReturnTypeMismatch>
  2952. <code>null|string</code>
  2953. </ImplementedReturnTypeMismatch>
  2954. <LessSpecificImplementedReturnType>
  2955. <code>array|mixed</code>
  2956. </LessSpecificImplementedReturnType>
  2957. </file>
  2958. <file src="lib/private/LargeFileHelper.php">
  2959. <InvalidOperand>
  2960. <code>$matches[1]</code>
  2961. </InvalidOperand>
  2962. </file>
  2963. <file src="lib/private/Lockdown/Filesystem/NullCache.php">
  2964. <InvalidNullableReturnType>
  2965. <code>get</code>
  2966. </InvalidNullableReturnType>
  2967. <InvalidReturnStatement>
  2968. <code>[]</code>
  2969. </InvalidReturnStatement>
  2970. <InvalidReturnType>
  2971. <code>getIncomplete</code>
  2972. </InvalidReturnType>
  2973. <NullableReturnStatement>
  2974. <code><![CDATA[$file !== '' ? null :
  2975. new CacheEntry([
  2976. 'fileid' => -1,
  2977. 'parent' => -1,
  2978. 'name' => '',
  2979. 'path' => '',
  2980. 'size' => '0',
  2981. 'mtime' => time(),
  2982. 'storage_mtime' => time(),
  2983. 'etag' => '',
  2984. 'mimetype' => FileInfo::MIMETYPE_FOLDER,
  2985. 'mimepart' => 'httpd',
  2986. 'permissions' => Constants::PERMISSION_READ
  2987. ])]]></code>
  2988. </NullableReturnStatement>
  2989. </file>
  2990. <file src="lib/private/Lockdown/Filesystem/NullStorage.php">
  2991. <InvalidNullableReturnType>
  2992. <code>getOwner</code>
  2993. <code>getPermissions</code>
  2994. </InvalidNullableReturnType>
  2995. <InvalidReturnStatement>
  2996. <code>new IteratorDirectory([])</code>
  2997. <code>new NullCache()</code>
  2998. </InvalidReturnStatement>
  2999. <InvalidReturnType>
  3000. <code>getCache</code>
  3001. <code>opendir</code>
  3002. </InvalidReturnType>
  3003. <NullableReturnStatement>
  3004. <code>null</code>
  3005. <code>null</code>
  3006. </NullableReturnStatement>
  3007. <TooManyArguments>
  3008. <code>new IteratorDirectory([])</code>
  3009. </TooManyArguments>
  3010. </file>
  3011. <file src="lib/private/Lockdown/LockdownManager.php">
  3012. <InvalidFunctionCall>
  3013. <code>$callback()</code>
  3014. </InvalidFunctionCall>
  3015. <InvalidPropertyAssignmentValue>
  3016. <code>$sessionCallback</code>
  3017. </InvalidPropertyAssignmentValue>
  3018. </file>
  3019. <file src="lib/private/Log.php">
  3020. <RedundantCondition>
  3021. <code>$request</code>
  3022. </RedundantCondition>
  3023. </file>
  3024. <file src="lib/private/Log/File.php">
  3025. <TypeDoesNotContainNull>
  3026. <code>$limit === null</code>
  3027. </TypeDoesNotContainNull>
  3028. </file>
  3029. <file src="lib/private/Log/LogDetails.php">
  3030. <RedundantCondition>
  3031. <code><![CDATA[is_string($request->getMethod())]]></code>
  3032. </RedundantCondition>
  3033. </file>
  3034. <file src="lib/private/Log/Rotate.php">
  3035. <ParamNameMismatch>
  3036. <code>$dummy</code>
  3037. </ParamNameMismatch>
  3038. </file>
  3039. <file src="lib/private/Log/Systemdlog.php">
  3040. <UndefinedFunction>
  3041. <code><![CDATA[sd_journal_send('PRIORITY='.$journal_level,
  3042. 'SYSLOG_IDENTIFIER='.$this->syslogId,
  3043. 'MESSAGE=' . $this->logDetailsAsJSON($app, $message, $level))]]></code>
  3044. </UndefinedFunction>
  3045. </file>
  3046. <file src="lib/private/Memcache/APCu.php">
  3047. <InvalidReturnStatement>
  3048. <code><![CDATA[apcu_add($this->getPrefix() . $key, $value, $ttl)]]></code>
  3049. </InvalidReturnStatement>
  3050. <InvalidReturnType>
  3051. <code>bool</code>
  3052. </InvalidReturnType>
  3053. </file>
  3054. <file src="lib/private/Memcache/Cache.php">
  3055. <LessSpecificImplementedReturnType>
  3056. <code>mixed</code>
  3057. <code>mixed</code>
  3058. <code>mixed</code>
  3059. <code>mixed</code>
  3060. </LessSpecificImplementedReturnType>
  3061. <MissingTemplateParam>
  3062. <code>\ArrayAccess</code>
  3063. </MissingTemplateParam>
  3064. </file>
  3065. <file src="lib/private/Memcache/ProfilerWrapperCache.php">
  3066. <MissingTemplateParam>
  3067. <code>\ArrayAccess</code>
  3068. </MissingTemplateParam>
  3069. </file>
  3070. <file src="lib/private/Preview/BackgroundCleanupJob.php">
  3071. <InvalidReturnStatement>
  3072. <code>[]</code>
  3073. </InvalidReturnStatement>
  3074. </file>
  3075. <file src="lib/private/Preview/Generator.php">
  3076. <InvalidArgument>
  3077. <code>$maxPreviewImage</code>
  3078. </InvalidArgument>
  3079. <LessSpecificReturnType>
  3080. <code>null|string</code>
  3081. </LessSpecificReturnType>
  3082. <MismatchingDocblockParamType>
  3083. <code>ISimpleFile</code>
  3084. </MismatchingDocblockParamType>
  3085. <UndefinedInterfaceMethod>
  3086. <code>height</code>
  3087. <code>height</code>
  3088. <code>preciseResizeCopy</code>
  3089. <code>resizeCopy</code>
  3090. <code>valid</code>
  3091. <code>width</code>
  3092. <code>width</code>
  3093. </UndefinedInterfaceMethod>
  3094. </file>
  3095. <file src="lib/private/Preview/ProviderV1Adapter.php">
  3096. <InvalidReturnStatement>
  3097. <code>$thumbnail === false ? null: $thumbnail</code>
  3098. </InvalidReturnStatement>
  3099. <InvalidReturnType>
  3100. <code>?IImage</code>
  3101. </InvalidReturnType>
  3102. </file>
  3103. <file src="lib/private/RedisFactory.php">
  3104. <InvalidArgument>
  3105. <code>\RedisCluster::OPT_SLAVE_FAILOVER</code>
  3106. </InvalidArgument>
  3107. </file>
  3108. <file src="lib/private/Remote/Api/OCS.php">
  3109. <ImplementedReturnTypeMismatch>
  3110. <code>array</code>
  3111. </ImplementedReturnTypeMismatch>
  3112. </file>
  3113. <file src="lib/private/Remote/Instance.php">
  3114. <InvalidReturnStatement>
  3115. <code><![CDATA[$request->getBody()]]></code>
  3116. </InvalidReturnStatement>
  3117. <InvalidReturnType>
  3118. <code>bool|string</code>
  3119. </InvalidReturnType>
  3120. <InvalidScalarArgument>
  3121. <code>$response</code>
  3122. </InvalidScalarArgument>
  3123. </file>
  3124. <file src="lib/private/Repair/Owncloud/CleanPreviews.php">
  3125. <InvalidArgument>
  3126. <code>false</code>
  3127. </InvalidArgument>
  3128. </file>
  3129. <file src="lib/private/Repair/Owncloud/CleanPreviewsBackgroundJob.php">
  3130. <ParamNameMismatch>
  3131. <code>$arguments</code>
  3132. </ParamNameMismatch>
  3133. </file>
  3134. <file src="lib/private/Repair/Owncloud/MoveAvatarsBackgroundJob.php">
  3135. <ParamNameMismatch>
  3136. <code>$arguments</code>
  3137. </ParamNameMismatch>
  3138. <TypeDoesNotContainType>
  3139. <code>$counter % 100 === 0</code>
  3140. </TypeDoesNotContainType>
  3141. </file>
  3142. <file src="lib/private/Repair/RemoveLinkShares.php">
  3143. <InvalidPropertyAssignmentValue>
  3144. <code><![CDATA[$this->userToNotify]]></code>
  3145. </InvalidPropertyAssignmentValue>
  3146. </file>
  3147. <file src="lib/private/Repair/RepairInvalidShares.php">
  3148. <ParamNameMismatch>
  3149. <code>$out</code>
  3150. </ParamNameMismatch>
  3151. </file>
  3152. <file src="lib/private/Repair/RepairMimeTypes.php">
  3153. <ParamNameMismatch>
  3154. <code>$out</code>
  3155. </ParamNameMismatch>
  3156. </file>
  3157. <file src="lib/private/Repair/SqliteAutoincrement.php">
  3158. <ParamNameMismatch>
  3159. <code>$out</code>
  3160. </ParamNameMismatch>
  3161. </file>
  3162. <file src="lib/private/Route/Router.php">
  3163. <InvalidClass>
  3164. <code>\OC_APP</code>
  3165. </InvalidClass>
  3166. <InvalidNullableReturnType>
  3167. <code>string</code>
  3168. </InvalidNullableReturnType>
  3169. <NullableReturnStatement>
  3170. <code><![CDATA[$this->collectionName]]></code>
  3171. </NullableReturnStatement>
  3172. </file>
  3173. <file src="lib/private/Search.php">
  3174. <RedundantCondition>
  3175. <code>$provider instanceof Provider</code>
  3176. </RedundantCondition>
  3177. </file>
  3178. <file src="lib/private/Search/Result/File.php">
  3179. <InvalidPropertyAssignmentValue>
  3180. <code><![CDATA[$data->getId()]]></code>
  3181. <code><![CDATA[$data->getMtime()]]></code>
  3182. <code><![CDATA[$data->getPermissions()]]></code>
  3183. <code><![CDATA[$this->hasPreview($data)]]></code>
  3184. </InvalidPropertyAssignmentValue>
  3185. </file>
  3186. <file src="lib/private/Security/Bruteforce/Throttler.php">
  3187. <NullArgument>
  3188. <code>null</code>
  3189. </NullArgument>
  3190. </file>
  3191. <file src="lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php">
  3192. <NoInterfaceProperties>
  3193. <code><![CDATA[$this->request->server]]></code>
  3194. </NoInterfaceProperties>
  3195. </file>
  3196. <file src="lib/private/Security/CSRF/CsrfToken.php">
  3197. <InvalidArgument>
  3198. <code><![CDATA[\strlen($this->value)]]></code>
  3199. </InvalidArgument>
  3200. </file>
  3201. <file src="lib/private/Security/CredentialsManager.php">
  3202. <InvalidReturnStatement>
  3203. <code><![CDATA[$qb->execute()]]></code>
  3204. <code><![CDATA[$qb->execute()]]></code>
  3205. </InvalidReturnStatement>
  3206. <InvalidReturnType>
  3207. <code>int</code>
  3208. <code>int</code>
  3209. </InvalidReturnType>
  3210. </file>
  3211. <file src="lib/private/Security/Crypto.php">
  3212. <InternalMethod>
  3213. <code>decrypt</code>
  3214. <code>encrypt</code>
  3215. <code>setIV</code>
  3216. <code>setIV</code>
  3217. <code>setPassword</code>
  3218. <code>setPassword</code>
  3219. </InternalMethod>
  3220. </file>
  3221. <file src="lib/private/Server.php">
  3222. <ImplementedReturnTypeMismatch>
  3223. <code>\OCP\Calendar\Resource\IManager</code>
  3224. <code>\OCP\Calendar\Room\IManager</code>
  3225. <code>\OCP\Files\Folder|null</code>
  3226. </ImplementedReturnTypeMismatch>
  3227. <LessSpecificReturnStatement>
  3228. <code><![CDATA[$this->get(IFile::class)]]></code>
  3229. <code><![CDATA[$this->get(IGroupManager::class)]]></code>
  3230. <code><![CDATA[$this->get(INavigationManager::class)]]></code>
  3231. <code><![CDATA[$this->get(IUserManager::class)]]></code>
  3232. <code><![CDATA[$this->get(IUserSession::class)]]></code>
  3233. <code><![CDATA[$this->get(\OCP\Encryption\IManager::class)]]></code>
  3234. </LessSpecificReturnStatement>
  3235. <MoreSpecificReturnType>
  3236. <code>\OC\Encryption\File</code>
  3237. <code>\OC\Encryption\Manager</code>
  3238. <code>\OC\Group\Manager</code>
  3239. <code>\OC\NavigationManager</code>
  3240. <code>\OC\User\Manager</code>
  3241. <code>\OC\User\Session</code>
  3242. </MoreSpecificReturnType>
  3243. <UndefinedDocblockClass>
  3244. <code>\OC\OCSClient</code>
  3245. </UndefinedDocblockClass>
  3246. </file>
  3247. <file src="lib/private/ServerContainer.php">
  3248. <InvalidPropertyAssignmentValue>
  3249. <code><![CDATA[$this->hasNoAppContainer]]></code>
  3250. </InvalidPropertyAssignmentValue>
  3251. <NoValue>
  3252. <code><![CDATA[return $this->appContainers[$namespace];]]></code>
  3253. </NoValue>
  3254. </file>
  3255. <file src="lib/private/Session/CryptoSessionData.php">
  3256. <MissingTemplateParam>
  3257. <code>\ArrayAccess</code>
  3258. </MissingTemplateParam>
  3259. </file>
  3260. <file src="lib/private/Session/Internal.php">
  3261. <MoreSpecificImplementedParamType>
  3262. <code>$value</code>
  3263. </MoreSpecificImplementedParamType>
  3264. </file>
  3265. <file src="lib/private/Session/Memory.php">
  3266. <MoreSpecificImplementedParamType>
  3267. <code>$value</code>
  3268. </MoreSpecificImplementedParamType>
  3269. </file>
  3270. <file src="lib/private/Session/Session.php">
  3271. <MissingTemplateParam>
  3272. <code>\ArrayAccess</code>
  3273. </MissingTemplateParam>
  3274. </file>
  3275. <file src="lib/private/Setup.php">
  3276. <RedundantCondition>
  3277. <code>$content !== ''</code>
  3278. <code>$type === 'pdo'</code>
  3279. </RedundantCondition>
  3280. <UndefinedVariable>
  3281. <code>$vendor</code>
  3282. </UndefinedVariable>
  3283. </file>
  3284. <file src="lib/private/Setup/AbstractDatabase.php">
  3285. <TypeDoesNotContainType>
  3286. <code><![CDATA[ctype_digit($this->dbPort)]]></code>
  3287. </TypeDoesNotContainType>
  3288. <UndefinedThisPropertyFetch>
  3289. <code><![CDATA[$this->dbprettyname]]></code>
  3290. <code><![CDATA[$this->dbprettyname]]></code>
  3291. <code><![CDATA[$this->dbprettyname]]></code>
  3292. <code><![CDATA[$this->dbprettyname]]></code>
  3293. </UndefinedThisPropertyFetch>
  3294. </file>
  3295. <file src="lib/private/Share/Share.php">
  3296. <InvalidOperand>
  3297. <code>!self::isResharingAllowed()</code>
  3298. </InvalidOperand>
  3299. <UndefinedInterfaceMethod>
  3300. <code>getParents</code>
  3301. <code>getParents</code>
  3302. </UndefinedInterfaceMethod>
  3303. </file>
  3304. <file src="lib/private/Share20/DefaultShareProvider.php">
  3305. <InvalidArgument>
  3306. <code><![CDATA[$share->getId()]]></code>
  3307. <code><![CDATA[$share->getId()]]></code>
  3308. <code>(int)$data['id']</code>
  3309. </InvalidArgument>
  3310. <TooManyArguments>
  3311. <code>set</code>
  3312. </TooManyArguments>
  3313. <UndefinedInterfaceMethod>
  3314. <code>getParent</code>
  3315. </UndefinedInterfaceMethod>
  3316. </file>
  3317. <file src="lib/private/Share20/Manager.php">
  3318. <InvalidArgument>
  3319. <code>$id</code>
  3320. </InvalidArgument>
  3321. <TooManyArguments>
  3322. <code>update</code>
  3323. </TooManyArguments>
  3324. <UndefinedClass>
  3325. <code>\OCA\Circles\Api\v1\Circles</code>
  3326. </UndefinedClass>
  3327. <UndefinedInterfaceMethod>
  3328. <code>getChildren</code>
  3329. </UndefinedInterfaceMethod>
  3330. </file>
  3331. <file src="lib/private/Share20/ProviderFactory.php">
  3332. <InvalidNullableReturnType>
  3333. <code>FederatedShareProvider</code>
  3334. <code>ShareByMailProvider</code>
  3335. </InvalidNullableReturnType>
  3336. <InvalidReturnStatement>
  3337. <code>$provider</code>
  3338. <code>$provider</code>
  3339. <code><![CDATA[$this->shareByCircleProvider]]></code>
  3340. </InvalidReturnStatement>
  3341. <InvalidReturnType>
  3342. <code>getProviderForType</code>
  3343. </InvalidReturnType>
  3344. <NullableReturnStatement>
  3345. <code>null</code>
  3346. <code>null</code>
  3347. <code>null</code>
  3348. <code>null</code>
  3349. <code>null</code>
  3350. <code>null</code>
  3351. </NullableReturnStatement>
  3352. <ParamNameMismatch>
  3353. <code>$shareProviderClass</code>
  3354. </ParamNameMismatch>
  3355. <UndefinedClass>
  3356. <code>\OCA\Circles\ShareByCircleProvider</code>
  3357. </UndefinedClass>
  3358. <UndefinedDocblockClass>
  3359. <code>RoomShareProvider</code>
  3360. <code>\OCA\Circles\ShareByCircleProvider</code>
  3361. <code>\OCA\Talk\Share\RoomShareProvider</code>
  3362. <code>private $roomShareProvider = null;</code>
  3363. <code>private $shareByCircleProvider = null;</code>
  3364. </UndefinedDocblockClass>
  3365. <UndefinedInterfaceMethod>
  3366. <code>getLazyRootFolder</code>
  3367. <code>getLazyRootFolder</code>
  3368. <code>getLazyRootFolder</code>
  3369. <code>getLazyRootFolder</code>
  3370. </UndefinedInterfaceMethod>
  3371. </file>
  3372. <file src="lib/private/Share20/Share.php">
  3373. <LessSpecificReturnStatement>
  3374. <code><![CDATA[$this->node]]></code>
  3375. </LessSpecificReturnStatement>
  3376. <MoreSpecificReturnType>
  3377. <code>getNode</code>
  3378. </MoreSpecificReturnType>
  3379. </file>
  3380. <file src="lib/private/Streamer.php">
  3381. <InvalidArgument>
  3382. <code>$stream</code>
  3383. </InvalidArgument>
  3384. <UndefinedInterfaceMethod>
  3385. <code>get</code>
  3386. </UndefinedInterfaceMethod>
  3387. </file>
  3388. <file src="lib/private/SubAdmin.php">
  3389. <UndefinedInterfaceMethod>
  3390. <code>listen</code>
  3391. <code>listen</code>
  3392. </UndefinedInterfaceMethod>
  3393. </file>
  3394. <file src="lib/private/Support/Subscription/Registry.php">
  3395. <UndefinedInterfaceMethod>
  3396. <code>getSupportedApps</code>
  3397. </UndefinedInterfaceMethod>
  3398. </file>
  3399. <file src="lib/private/TagManager.php">
  3400. <InvalidNullableReturnType>
  3401. <code>\OCP\ITags</code>
  3402. </InvalidNullableReturnType>
  3403. <NullableReturnStatement>
  3404. <code>null</code>
  3405. </NullableReturnStatement>
  3406. </file>
  3407. <file src="lib/private/Tags.php">
  3408. <InvalidScalarArgument>
  3409. <code>$from</code>
  3410. <code>$names</code>
  3411. </InvalidScalarArgument>
  3412. <MoreSpecificImplementedParamType>
  3413. <code>$tag</code>
  3414. </MoreSpecificImplementedParamType>
  3415. </file>
  3416. <file src="lib/private/TempManager.php">
  3417. <FalsableReturnStatement>
  3418. <code>false</code>
  3419. <code>false</code>
  3420. </FalsableReturnStatement>
  3421. </file>
  3422. <file src="lib/private/Template/CSSResourceLocator.php">
  3423. <ParamNameMismatch>
  3424. <code>$style</code>
  3425. <code>$style</code>
  3426. </ParamNameMismatch>
  3427. </file>
  3428. <file src="lib/private/Template/JSConfigHelper.php">
  3429. <NullArgument>
  3430. <code>null</code>
  3431. <code>null</code>
  3432. </NullArgument>
  3433. </file>
  3434. <file src="lib/private/Template/JSResourceLocator.php">
  3435. <InvalidArgument>
  3436. <code>false</code>
  3437. </InvalidArgument>
  3438. <ParamNameMismatch>
  3439. <code>$script</code>
  3440. <code>$script</code>
  3441. </ParamNameMismatch>
  3442. </file>
  3443. <file src="lib/private/TemplateLayout.php">
  3444. <InvalidParamDefault>
  3445. <code>string</code>
  3446. <code>string</code>
  3447. </InvalidParamDefault>
  3448. <InvalidScalarArgument>
  3449. <code>$appName</code>
  3450. <code>$appName</code>
  3451. </InvalidScalarArgument>
  3452. <UndefinedInterfaceMethod>
  3453. <code>getInitialStates</code>
  3454. </UndefinedInterfaceMethod>
  3455. </file>
  3456. <file src="lib/private/URLGenerator.php">
  3457. <InvalidReturnStatement>
  3458. <code>$path</code>
  3459. </InvalidReturnStatement>
  3460. </file>
  3461. <file src="lib/private/User/Database.php">
  3462. <FalsableReturnStatement>
  3463. <code>false</code>
  3464. </FalsableReturnStatement>
  3465. </file>
  3466. <file src="lib/private/User/DisplayNameCache.php">
  3467. <MissingTemplateParam>
  3468. <code>IEventListener</code>
  3469. </MissingTemplateParam>
  3470. </file>
  3471. <file src="lib/private/User/Manager.php">
  3472. <ImplementedReturnTypeMismatch>
  3473. <code>IUser|false</code>
  3474. </ImplementedReturnTypeMismatch>
  3475. <InvalidArgument>
  3476. <code>$backend</code>
  3477. </InvalidArgument>
  3478. <UndefinedInterfaceMethod>
  3479. <code>createUser</code>
  3480. <code>getUsersForUserValueCaseInsensitive</code>
  3481. </UndefinedInterfaceMethod>
  3482. </file>
  3483. <file src="lib/private/User/Session.php">
  3484. <ImplementedReturnTypeMismatch>
  3485. <code>boolean|null</code>
  3486. </ImplementedReturnTypeMismatch>
  3487. <NoInterfaceProperties>
  3488. <code><![CDATA[$request->server]]></code>
  3489. <code><![CDATA[$request->server]]></code>
  3490. </NoInterfaceProperties>
  3491. </file>
  3492. <file src="lib/private/User/User.php">
  3493. <UndefinedInterfaceMethod>
  3494. <code>emit</code>
  3495. <code>emit</code>
  3496. <code>emit</code>
  3497. <code>emit</code>
  3498. <code>emit</code>
  3499. </UndefinedInterfaceMethod>
  3500. </file>
  3501. <file src="lib/private/legacy/OC_API.php">
  3502. <InvalidNullableReturnType>
  3503. <code>int</code>
  3504. </InvalidNullableReturnType>
  3505. <NullableReturnStatement>
  3506. <code>null</code>
  3507. </NullableReturnStatement>
  3508. </file>
  3509. <file src="lib/private/legacy/OC_App.php">
  3510. <InvalidArgument>
  3511. <code>$groupsList</code>
  3512. </InvalidArgument>
  3513. <InvalidArrayOffset>
  3514. <code>$dir['path']</code>
  3515. <code>$dir['url']</code>
  3516. </InvalidArrayOffset>
  3517. <NullArgument>
  3518. <code>null</code>
  3519. </NullArgument>
  3520. <NullableReturnStatement>
  3521. <code>null</code>
  3522. </NullableReturnStatement>
  3523. <TypeDoesNotContainNull>
  3524. <code>$appId === null</code>
  3525. <code>$appId === null</code>
  3526. </TypeDoesNotContainNull>
  3527. </file>
  3528. <file src="lib/private/legacy/OC_FileChunking.php">
  3529. <UndefinedDocblockClass>
  3530. <code>\OC\InsufficientStorageException</code>
  3531. </UndefinedDocblockClass>
  3532. </file>
  3533. <file src="lib/private/legacy/OC_Files.php">
  3534. <RedundantCondition>
  3535. <code>$getType === self::ZIP_DIR</code>
  3536. <code>$getType === self::ZIP_DIR</code>
  3537. </RedundantCondition>
  3538. <UndefinedInterfaceMethod>
  3539. <code>get</code>
  3540. <code>get</code>
  3541. </UndefinedInterfaceMethod>
  3542. </file>
  3543. <file src="lib/private/legacy/OC_Helper.php">
  3544. <InvalidArrayOffset>
  3545. <code>$matches[0][$last_match]</code>
  3546. <code>$matches[1][$last_match]</code>
  3547. </InvalidArrayOffset>
  3548. <InvalidScalarArgument>
  3549. <code>$path</code>
  3550. </InvalidScalarArgument>
  3551. <UndefinedInterfaceMethod>
  3552. <code>getQuota</code>
  3553. </UndefinedInterfaceMethod>
  3554. </file>
  3555. <file src="lib/private/legacy/OC_Template.php">
  3556. <InvalidReturnType>
  3557. <code>bool|string</code>
  3558. </InvalidReturnType>
  3559. </file>
  3560. <file src="lib/private/legacy/OC_User.php">
  3561. <UndefinedClass>
  3562. <code>\Test\Util\User\Dummy</code>
  3563. </UndefinedClass>
  3564. </file>
  3565. <file src="lib/private/legacy/OC_Util.php">
  3566. <InvalidReturnType>
  3567. <code>void</code>
  3568. </InvalidReturnType>
  3569. </file>
  3570. <file src="lib/public/AppFramework/ApiController.php">
  3571. <NoInterfaceProperties>
  3572. <code><![CDATA[$this->request->server]]></code>
  3573. </NoInterfaceProperties>
  3574. </file>
  3575. <file src="lib/public/AppFramework/App.php">
  3576. <InternalMethod>
  3577. <code><![CDATA[new RouteConfig($this->container, $router, $routes)]]></code>
  3578. </InternalMethod>
  3579. </file>
  3580. <file src="lib/public/AppFramework/Db/Entity.php">
  3581. <InvalidNullableReturnType>
  3582. <code>string</code>
  3583. </InvalidNullableReturnType>
  3584. <NullableReturnStatement>
  3585. <code>$column</code>
  3586. </NullableReturnStatement>
  3587. </file>
  3588. <file src="lib/public/AppFramework/Http/Response.php">
  3589. <LessSpecificReturnStatement>
  3590. <code><![CDATA[array_merge($mergeWith, $this->headers)]]></code>
  3591. </LessSpecificReturnStatement>
  3592. <MoreSpecificReturnType>
  3593. <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>
  3594. </MoreSpecificReturnType>
  3595. </file>
  3596. <file src="lib/public/Cache/CappedMemoryCache.php">
  3597. <MissingTemplateParam>
  3598. <code>\ArrayAccess</code>
  3599. </MissingTemplateParam>
  3600. </file>
  3601. <file src="lib/public/Color.php">
  3602. <LessSpecificReturnStatement>
  3603. <code>$step</code>
  3604. </LessSpecificReturnStatement>
  3605. <MoreSpecificReturnType>
  3606. <code>array{0: int, 1: int, 2: int}</code>
  3607. </MoreSpecificReturnType>
  3608. </file>
  3609. <file src="lib/public/Diagnostics/IQueryLogger.php">
  3610. <LessSpecificImplementedReturnType>
  3611. <code>mixed</code>
  3612. </LessSpecificImplementedReturnType>
  3613. </file>
  3614. <file src="lib/public/EventDispatcher/GenericEvent.php">
  3615. <MissingTemplateParam>
  3616. <code>ArrayAccess</code>
  3617. <code>IteratorAggregate</code>
  3618. </MissingTemplateParam>
  3619. </file>
  3620. <file src="lib/public/Files.php">
  3621. <FalsableReturnStatement>
  3622. <code>\OC_App::getStorage($app)</code>
  3623. </FalsableReturnStatement>
  3624. </file>
  3625. <file src="lib/public/Files/Cache/ICacheEntry.php">
  3626. <MissingTemplateParam>
  3627. <code>ArrayAccess</code>
  3628. </MissingTemplateParam>
  3629. </file>
  3630. <file src="lib/public/Files/Storage.php">
  3631. <InvalidParamDefault>
  3632. <code>array</code>
  3633. </InvalidParamDefault>
  3634. </file>
  3635. <file src="lib/public/L10N/ILanguageIterator.php">
  3636. <MissingTemplateParam>
  3637. <code>\Iterator</code>
  3638. </MissingTemplateParam>
  3639. </file>
  3640. <file src="lib/public/Preview/BeforePreviewFetchedEvent.php">
  3641. <LessSpecificReturnStatement>
  3642. <code><![CDATA[$this->mode]]></code>
  3643. </LessSpecificReturnStatement>
  3644. <MoreSpecificReturnType>
  3645. <code>null|IPreview::MODE_FILL|IPreview::MODE_COVER</code>
  3646. </MoreSpecificReturnType>
  3647. </file>
  3648. </files>