src/Compiler.php
protected function findScopeSelectors($scope, $depth)
    {
        if ($scope->depth === $depth && $scope->selectors) {
            return $scope->selectors;
        }

        if ($scope->children) {
            foreach (array_reverse($scope->children) as $c) {
                if ($s = $this->findScopeSelectors($c, $depth)) {
                    return $s;
                }
            }
        }

        return [];
    }
protected function findScopeSelectors($scope, $depth)
    {
        if ($scope->depth === $depth && $scope->selectors) {
            return $scope->selectors;
        }

        if ($scope->children) {
            foreach (array_reverse($scope->children) as $c) {
                if ($s = $this->findScopeSelectors($c, $depth)) {
                    return $s;
                }
            }
        }

        return [];
    }
protected function findScopeSelectors ( $ scope , $ depth ) { if ( $ scope -> depth === $ depth && $ scope -> selectors ) { return $ scope -> selectors ; } if ( $ scope -> children ) { foreach ( array_reverse ( $ scope -> children ) as $ c ) { if ( $ s = $ this -> findScopeSelectors ( $ c , $ depth ) ) { return $ s ; } } } return [ ] ; }
Find a selector by the depth node in the scope

@param \Leafo\ScssPhp\Formatter\OutputBlock $scope
@param integer                              $depth

@return array
Find a selector by the depth node in the scope