public function in($path)
    {
        $finder = $this->getSymfonyFinder()
            ->in($path)
            ->files()
            ->name('ruleset.xml')
            ->sortByName();
        $paths = iterator_to_array($finder, false);
        $paths = array_map(
            function (\SplFileInfo $file) {
                return $file->getPath();
            },
            $paths
        );

        return $this->createStandardsFromPaths($paths);
    }
public function in($path)
    {
        $finder = $this->getSymfonyFinder()
            ->in($path)
            ->files()
            ->name('ruleset.xml')
            ->sortByName();
        $paths = iterator_to_array($finder, false);
        $paths = array_map(
            function (\SplFileInfo $file) {
                return $file->getPath();
            },
            $paths
        );

        return $this->createStandardsFromPaths($paths);
    }
public function in ( $ path ) { $ finder = $ this -> getSymfonyFinder ( ) -> in ( $ path ) -> files ( ) -> name ( 'ruleset.xml' ) -> sortByName ( ) ; $ paths = iterator_to_array ( $ finder , false ) ; $ paths = array_map ( function ( \ SplFileInfo $ file ) { return $ file -> getPath ( ) ; } , $ paths ) ; return $ this -> createStandardsFromPaths ( $ paths ) ; }
Find and return PHPCodeSniffer standards.

@param string $path

@return Standards

@SuppressWarnings(PHPMD.ShortMethodName)
Find and return PHPCodeSniffer standards .