@@ -412,20 +412,20 @@ public function process(AnalyserResult $analyserResult, ResultCache $resultCache
412
412
}
413
413
$ doSave = function (array $ errorsByFile , $ locallyIgnoredErrorsByFile , $ linesToIgnore , $ unmatchedLineIgnores , $ collectedDataByFile , ?array $ dependencies , array $ exportedNodes , array $ projectExtensionFiles ) use ($ internalErrors , $ resultCache , $ output , $ onlyFiles , $ meta ): bool {
414
414
if ($ onlyFiles ) {
415
- if ($ output ->isDebug ()) {
415
+ if ($ output ->isVerbose ()) {
416
416
$ output ->writeLineFormatted ('Result cache was not saved because only files were passed as analysed paths. ' );
417
417
}
418
418
return false ;
419
419
}
420
420
if ($ dependencies === null ) {
421
- if ($ output ->isDebug ()) {
421
+ if ($ output ->isVerbose ()) {
422
422
$ output ->writeLineFormatted ('Result cache was not saved because of error in dependencies. ' );
423
423
}
424
424
return false ;
425
425
}
426
426
427
427
if (count ($ internalErrors ) > 0 ) {
428
- if ($ output ->isDebug ()) {
428
+ if ($ output ->isVerbose ()) {
429
429
$ output ->writeLineFormatted ('Result cache was not saved because of internal errors. ' );
430
430
}
431
431
return false ;
@@ -437,7 +437,7 @@ public function process(AnalyserResult $analyserResult, ResultCache $resultCache
437
437
continue ;
438
438
}
439
439
440
- if ($ output ->isDebug ()) {
440
+ if ($ output ->isVerbose ()) {
441
441
$ output ->writeLineFormatted (sprintf ('Result cache was not saved because of non-ignorable exception: %s ' , $ error ->getMessage ()));
442
442
}
443
443
@@ -447,7 +447,7 @@ public function process(AnalyserResult $analyserResult, ResultCache $resultCache
447
447
448
448
$ this ->save ($ resultCache ->getLastFullAnalysisTime (), $ errorsByFile , $ locallyIgnoredErrorsByFile , $ linesToIgnore , $ unmatchedLineIgnores , $ collectedDataByFile , $ dependencies , $ exportedNodes , $ projectExtensionFiles , $ meta );
449
449
450
- if ($ output ->isDebug ()) {
450
+ if ($ output ->isVerbose ()) {
451
451
$ output ->writeLineFormatted ('Result cache is saved. ' );
452
452
}
453
453
@@ -463,7 +463,7 @@ public function process(AnalyserResult $analyserResult, ResultCache $resultCache
463
463
}
464
464
$ saved = $ doSave ($ freshErrorsByFile , $ freshLocallyIgnoredErrorsByFile , $ analyserResult ->getLinesToIgnore (), $ analyserResult ->getUnmatchedLineIgnores (), $ freshCollectedDataByFile , $ analyserResult ->getDependencies (), $ analyserResult ->getExportedNodes (), $ projectExtensionFiles );
465
465
} else {
466
- if ($ output ->isDebug ()) {
466
+ if ($ output ->isVerbose ()) {
467
467
$ output ->writeLineFormatted ('Result cache was not saved because it was not requested. ' );
468
468
}
469
469
}
0 commit comments