@@ -21,10 +21,11 @@ class TwigUtil {
2121 /**
2222 * Write a warning if a dir doesn't exist
2323 * @param {String} the dir that doesn't exist
24+ * @param {String} the type of dir
2425 */
25- protected static function dirNotExist ($ dir ) {
26+ protected static function dirNotExist ($ dir, $ type ) {
2627 $ dirHR = Console::getHumanReadablePath ($ dir );
27- Console::writeWarning ("the path <path> " .$ dirHR ."</path> doesn't exist so filters won't be loaded... " );
28+ Console::writeWarning ("the path <path> " .$ dirHR ."</path> doesn't exist so " . $ type . " won't be loaded... " );
2829 }
2930
3031 /**
@@ -101,7 +102,7 @@ public static function loadFilters($instance) {
101102
102103 } else {
103104
104- self ::dirNotExist ($ filterDir );
105+ self ::dirNotExist ($ filterDir, " filters " );
105106
106107 }
107108
@@ -148,7 +149,7 @@ public static function loadFunctions($instance) {
148149
149150 } else {
150151
151- self ::dirNotExist ($ functionDir );
152+ self ::dirNotExist ($ functionDir, " functions " );
152153
153154 }
154155
@@ -190,7 +191,7 @@ public static function loadMacros($instance) {
190191
191192 } else {
192193
193- self ::dirNotExist ($ macroDir );
194+ self ::dirNotExist ($ macroDir, " macros " );
194195
195196 }
196197
@@ -235,7 +236,7 @@ public static function loadTags($instance) {
235236
236237 } else {
237238
238- self ::dirNotExist ($ tagDir );
239+ self ::dirNotExist ($ tagDir, " tags " );
239240
240241 }
241242
@@ -282,7 +283,7 @@ public static function loadTests($instance) {
282283
283284 } else {
284285
285- self ::dirNotExist ($ testDir );
286+ self ::dirNotExist ($ testDir, " tests " );
286287
287288 }
288289
0 commit comments