src/App.php
protected static function isWordPressThemeDirectory( $directory ) {
		$composer = Composer::getComposerJson( $directory );

		if ( ! $composer ) {
			return false;
		}

		if ( $composer['type'] !== 'wordpress-theme' ) {
			return false;
		}

		return true;
	}
protected static function isWordPressThemeDirectory( $directory ) {
		$composer = Composer::getComposerJson( $directory );

		if ( ! $composer ) {
			return false;
		}

		if ( $composer['type'] !== 'wordpress-theme' ) {
			return false;
		}

		return true;
	}
protected static function isWordPressThemeDirectory ( $ directory ) { $ composer = Composer :: getComposerJson ( $ directory ) ; if ( ! $ composer ) { return false ; } if ( $ composer [ 'type' ] !== 'wordpress-theme' ) { return false ; } return true ; }
Check if a directory is a WordPress theme root.

@param  string  $directory
@return boolean
Check if a directory is a WordPress theme root .