@@ -210,7 +210,7 @@ public function scanFile($file, $reuseExisting = 0, $parentId = -1, $cacheData =
210210 * @var \OC\Files\Cache\CacheEntry $cacheData
211211 */
212212 $ newData = $ this ->array_diff_assoc_multi ($ data , $ cacheData ->getData ());
213-
213+
214214 // make it known to the caller that etag has been changed and needs propagation
215215 if (isset ($ newData ['etag ' ])) {
216216 $ data ['etag_changed ' ] = true ;
@@ -228,7 +228,6 @@ public function scanFile($file, $reuseExisting = 0, $parentId = -1, $cacheData =
228228 }
229229
230230 if ($ cacheData !== false ) {
231- $ data ['oldSize ' ] = $ cacheData ['size ' ] ?? 0 ;
232231 $ data ['encrypted ' ] = $ cacheData ['encrypted ' ] ?? false ;
233232 }
234233
@@ -351,23 +350,23 @@ public function scan($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $loc
351350 *
352351 */
353352 protected function array_diff_assoc_multi (array $ array1 , array $ array2 ) {
354-
353+
355354 $ result = [];
356355
357356 foreach ($ array1 as $ key => $ value ) {
358-
357+
359358 // if $array2 doesn't have the same key, that's a result
360359 if (!array_key_exists ($ key , $ array2 )) {
361360 $ result [$ key ] = $ value ;
362361 continue ;
363362 }
364-
363+
365364 // if $array2's value for the same key is different, that's a result
366365 if ($ array2 [$ key ] !== $ value && !is_array ($ value )) {
367366 $ result [$ key ] = $ value ;
368367 continue ;
369368 }
370-
369+
371370 if (is_array ($ value )) {
372371 $ nestedDiff = $ this ->array_diff_assoc_multi ($ value , $ array2 [$ key ]);
373372 if (!empty ($ nestedDiff )) {
0 commit comments