public function get_scss_property() {
        if ($this->scsscache === null) {
            $configs = [$this] + $this->parent_configs;
            $scss = null;

            foreach ($configs as $config) {
                $path = "{$config->dir}/scss";

                // We collect the SCSS property until we've found one.
                if (empty($scss) && !empty($config->scss)) {
                    $candidate = is_string($config->scss) ? "{$path}/{$config->scss}.scss" : $config->scss;
                    if ($candidate instanceof Closure) {
                        $scss = $candidate;
                    } else if (is_string($candidate) && is_readable($candidate)) {
                        $scss = $candidate;
                    }
                }

                // We collect the import paths once we've found a SCSS property.
                if ($scss && is_dir($path)) {
                    $paths[] = $path;
                }

            }

            $this->scsscache = $scss !== null ? [$paths, $scss] : false;
        }

        return $this->scsscache;
    }
public function get_scss_property() {
        if ($this->scsscache === null) {
            $configs = [$this] + $this->parent_configs;
            $scss = null;

            foreach ($configs as $config) {
                $path = "{$config->dir}/scss";

                // We collect the SCSS property until we've found one.
                if (empty($scss) && !empty($config->scss)) {
                    $candidate = is_string($config->scss) ? "{$path}/{$config->scss}.scss" : $config->scss;
                    if ($candidate instanceof Closure) {
                        $scss = $candidate;
                    } else if (is_string($candidate) && is_readable($candidate)) {
                        $scss = $candidate;
                    }
                }

                // We collect the import paths once we've found a SCSS property.
                if ($scss && is_dir($path)) {
                    $paths[] = $path;
                }

            }

            $this->scsscache = $scss !== null ? [$paths, $scss] : false;
        }

        return $this->scsscache;
    }
public function get_scss_property ( ) { if ( $ this -> scsscache === null ) { $ configs = [ $ this ] + $ this -> parent_configs ; $ scss = null ; foreach ( $ configs as $ config ) { $ path = "{$config->dir}/scss" ; // We collect the SCSS property until we've found one. if ( empty ( $ scss ) && ! empty ( $ config -> scss ) ) { $ candidate = is_string ( $ config -> scss ) ? "{$path}/{$config->scss}.scss" : $ config -> scss ; if ( $ candidate instanceof Closure ) { $ scss = $ candidate ; } else if ( is_string ( $ candidate ) && is_readable ( $ candidate ) ) { $ scss = $ candidate ; } } // We collect the import paths once we've found a SCSS property. if ( $ scss && is_dir ( $ path ) ) { $ paths [ ] = $ path ; } } $ this -> scsscache = $ scss !== null ? [ $ paths , $ scss ] : false ; } return $ this -> scsscache ; }
Get the SCSS property.

This resolves whether a SCSS file (or content) has to be used when generating
the stylesheet for the theme. It will look at parents themes and check the
SCSS properties there.

@return False when SCSS is not used.
An array with the import paths, and the path to the SCSS file or Closure as second.
Get the SCSS property .