src/ComponentFinder.php
public function get()
    {
        return $this->findAndLoadClasses()
            ->map(function ($class) {
                return new ReflectionClass($class);
            })
            ->reject(function ($class) {
                return $this->rejectionStrategy->shouldClassBeRejected($class);
            })
            ->reject(function ($class) {
                foreach (config('stats.ignored_namespaces', []) as $namespace) {
                    if (Str::startsWith($class->getNamespaceName(), $namespace)) {
                        return true;
                    }
                }

                return false;
            })
            ->groupBy(function ($class) {
                return (new Classifier)->classify($class);
            });
    }
public function get()
    {
        return $this->findAndLoadClasses()
            ->map(function ($class) {
                return new ReflectionClass($class);
            })
            ->reject(function ($class) {
                return $this->rejectionStrategy->shouldClassBeRejected($class);
            })
            ->reject(function ($class) {
                foreach (config('stats.ignored_namespaces', []) as $namespace) {
                    if (Str::startsWith($class->getNamespaceName(), $namespace)) {
                        return true;
                    }
                }

                return false;
            })
            ->groupBy(function ($class) {
                return (new Classifier)->classify($class);
            });
    }
public function get ( ) { return $ this -> findAndLoadClasses ( ) -> map ( function ( $ class ) { return new ReflectionClass ( $ class ) ; } ) -> reject ( function ( $ class ) { return $ this -> rejectionStrategy -> shouldClassBeRejected ( $ class ) ; } ) -> reject ( function ( $ class ) { foreach ( config ( 'stats.ignored_namespaces' , [ ] ) as $ namespace ) { if ( Str :: startsWith ( $ class -> getNamespaceName ( ) , $ namespace ) ) { return true ; } } return false ; } ) -> groupBy ( function ( $ class ) { return ( new Classifier ) -> classify ( $ class ) ; } ) ; }
Scan the Project for PHP Classes, turn them into ReflectionClasses,
reject unwanted Classes and sort them into Components.

@return Collection
Scan the Project for PHP Classes turn them into ReflectionClasses reject unwanted Classes and sort them into Components .