Skip to content

Commit

Permalink
Рефакторинг. Реализация класса StyleViewProcessor. Исправление
Browse files Browse the repository at this point in the history
  • Loading branch information
petrgrishin committed Sep 4, 2014
1 parent b5b94cb commit 6b890a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ViewProcessor/StyleViewProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public function getDependents(View $view) {
foreach (array_reverse($view->getWidgets()) as $widgetClass => $widgets) {
/** @var Widget $widget */
foreach ($widgets as $widget) {
$widgetsStyles[] = $this->resolveStyleFile($widget->getView());
$styleFile = $this->resolveStyleFile($widget->getView());
$styleFile && ($widgetsStyles[] = $styleFile);
$widgetsStyles = array_merge($widgetsStyles, $this->getDependents($widget->getView()));
}
}
Expand Down

0 comments on commit 6b890a8

Please sign in to comment.