@@ 188-198 (lines=11) @@ | ||
185 | * |
|
186 | * @return null|string |
|
187 | */ |
|
188 | protected function findImport($url) |
|
189 | { |
|
190 | foreach ($this->importDirs as $dir) { |
|
191 | $full = $dir . (mb_substr($dir, -1) !== '/' ? '/' : '') . $url; |
|
192 | if ($this->fileExists($file = $full . '.less') || $this->fileExists($file = $full)) { |
|
193 | return $file; |
|
194 | } |
|
195 | } |
|
196 | ||
197 | return null; |
|
198 | } |
|
199 | ||
200 | /** |
|
201 | * @param string $name |
@@ 741-751 (lines=11) @@ | ||
738 | * |
|
739 | * @return null|string |
|
740 | */ |
|
741 | public function findImport($url) |
|
742 | { |
|
743 | foreach ($this->compiler->getImportDirs() as $dir) { |
|
744 | $full = $dir . (substr($dir, -1) !== '/' ? '/' : '') . $url; |
|
745 | if ($this->fileExists($file = $full . '.less') || $this->fileExists($file = $full)) { |
|
746 | return $file; |
|
747 | } |
|
748 | } |
|
749 | ||
750 | return null; |
|
751 | } |
|
752 | ||
753 | /** |
|
754 | * @param string $name |