getBaseDir('public'); $slashes = \substr_count($pubPath, '/'); $prefix = \str_repeat('/..', $slashes) . __DIR__; $files = ["$prefix/public/css/combined.less"]; foreach ($files as $file) { self::$lessFiles[] = $file; } } }