@@ -21,10 +21,11 @@ class TwigUtil {
21
21
/**
22
22
* Write a warning if a dir doesn't exist
23
23
* @param {String} the dir that doesn't exist
24
+ * @param {String} the type of dir
24
25
*/
25
- protected static function dirNotExist ($ dir ) {
26
+ protected static function dirNotExist ($ dir, $ type ) {
26
27
$ 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... " );
28
29
}
29
30
30
31
/**
@@ -101,7 +102,7 @@ public static function loadFilters($instance) {
101
102
102
103
} else {
103
104
104
- self ::dirNotExist ($ filterDir );
105
+ self ::dirNotExist ($ filterDir, " filters " );
105
106
106
107
}
107
108
@@ -148,7 +149,7 @@ public static function loadFunctions($instance) {
148
149
149
150
} else {
150
151
151
- self ::dirNotExist ($ functionDir );
152
+ self ::dirNotExist ($ functionDir, " functions " );
152
153
153
154
}
154
155
@@ -190,7 +191,7 @@ public static function loadMacros($instance) {
190
191
191
192
} else {
192
193
193
- self ::dirNotExist ($ macroDir );
194
+ self ::dirNotExist ($ macroDir, " macros " );
194
195
195
196
}
196
197
@@ -235,7 +236,7 @@ public static function loadTags($instance) {
235
236
236
237
} else {
237
238
238
- self ::dirNotExist ($ tagDir );
239
+ self ::dirNotExist ($ tagDir, " tags " );
239
240
240
241
}
241
242
@@ -282,7 +283,7 @@ public static function loadTests($instance) {
282
283
283
284
} else {
284
285
285
- self ::dirNotExist ($ testDir );
286
+ self ::dirNotExist ($ testDir, " tests " );
286
287
287
288
}
288
289
0 commit comments