File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed
src/PatternLab/PatternEngine/Twig Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change 18
18
19
19
class TwigUtil {
20
20
21
- /**
22
- * Write a warning if a dir doesn't exist
23
- * @param {String} the dir that doesn't exist
24
- * @param {String} the type of dir
25
- */
26
- protected static function dirNotExist ($ dir , $ type ) {
27
- $ dirHR = Console::getHumanReadablePath ($ dir );
28
- Console::writeWarning ("the path <path> " .$ dirHR ."</path> doesn't exist so " .$ type ." won't be loaded... " );
29
- }
30
-
31
21
/**
32
22
* Load custom date formats for Twig
33
23
* @param {Instance} an instance of the twig engine
@@ -100,10 +90,6 @@ public static function loadFilters($instance) {
100
90
101
91
}
102
92
103
- } else {
104
-
105
- self ::dirNotExist ($ filterDir ,"filters " );
106
-
107
93
}
108
94
109
95
return $ instance ;
@@ -147,10 +133,6 @@ public static function loadFunctions($instance) {
147
133
148
134
}
149
135
150
- } else {
151
-
152
- self ::dirNotExist ($ functionDir ,"functions " );
153
-
154
136
}
155
137
156
138
return $ instance ;
@@ -189,10 +171,6 @@ public static function loadMacros($instance) {
189
171
190
172
}
191
173
192
- } else {
193
-
194
- self ::dirNotExist ($ macroDir ,"macros " );
195
-
196
174
}
197
175
198
176
return $ instance ;
@@ -234,10 +212,6 @@ public static function loadTags($instance) {
234
212
235
213
}
236
214
237
- } else {
238
-
239
- self ::dirNotExist ($ tagDir ,"tags " );
240
-
241
215
}
242
216
243
217
return $ instance ;
@@ -281,10 +255,6 @@ public static function loadTests($instance) {
281
255
282
256
}
283
257
284
- } else {
285
-
286
- self ::dirNotExist ($ testDir ,"tests " );
287
-
288
258
}
289
259
290
260
return $ instance ;
You can’t perform that action at this time.
0 commit comments