psalm-baseline.xml 116 KB

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