public static function moveEscaper()
	{
		if (class_exists('\\Zend\\Escaper\\Escaper') && is_file(static::getClassFilePath('\\Zend\\Escaper\\Escaper')))
		{
			$base = basename(__DIR__) . '/' . static::$basePath . 'ZendEscaper';

			foreach ([$base, $base . '/Exception'] as $path)
			{
				if (! is_dir($path))
				{
					mkdir($path, 0755);
				}
			}

			$files = [
				static::getClassFilePath('\\Zend\\Escaper\\Exception\\ExceptionInterface')       => $base . '/Exception/ExceptionInterface.php',
				static::getClassFilePath('\\Zend\\Escaper\\Exception\\InvalidArgumentException') => $base . '/Exception/InvalidArgumentException.php',
				static::getClassFilePath('\\Zend\\Escaper\\Exception\\RuntimeException')         => $base . '/Exception/RuntimeException.php',
				static::getClassFilePath('\\Zend\\Escaper\\Escaper')                             => $base . '/Escaper.php',
			];

			foreach ($files as $source => $dest)
			{
				if (! static::moveFile($source, $dest))
				{
					die('Error moving: ' . $source);
				}
			}
		}
	}
public static function moveEscaper()
	{
		if (class_exists('\\Zend\\Escaper\\Escaper') && is_file(static::getClassFilePath('\\Zend\\Escaper\\Escaper')))
		{
			$base = basename(__DIR__) . '/' . static::$basePath . 'ZendEscaper';

			foreach ([$base, $base . '/Exception'] as $path)
			{
				if (! is_dir($path))
				{
					mkdir($path, 0755);
				}
			}

			$files = [
				static::getClassFilePath('\\Zend\\Escaper\\Exception\\ExceptionInterface')       => $base . '/Exception/ExceptionInterface.php',
				static::getClassFilePath('\\Zend\\Escaper\\Exception\\InvalidArgumentException') => $base . '/Exception/InvalidArgumentException.php',
				static::getClassFilePath('\\Zend\\Escaper\\Exception\\RuntimeException')         => $base . '/Exception/RuntimeException.php',
				static::getClassFilePath('\\Zend\\Escaper\\Escaper')                             => $base . '/Escaper.php',
			];

			foreach ($files as $source => $dest)
			{
				if (! static::moveFile($source, $dest))
				{
					die('Error moving: ' . $source);
				}
			}
		}
	}
public static function moveEscaper ( ) { if ( class_exists ( '\\Zend\\Escaper\\Escaper' ) && is_file ( static :: getClassFilePath ( '\\Zend\\Escaper\\Escaper' ) ) ) { $ base = basename ( __DIR__ ) . '/' . static :: $ basePath . 'ZendEscaper' ; foreach ( [ $ base , $ base . '/Exception' ] as $ path ) { if ( ! is_dir ( $ path ) ) { mkdir ( $ path , 0755 ) ; } } $ files = [ static :: getClassFilePath ( '\\Zend\\Escaper\\Exception\\ExceptionInterface' ) => $ base . '/Exception/ExceptionInterface.php' , static :: getClassFilePath ( '\\Zend\\Escaper\\Exception\\InvalidArgumentException' ) => $ base . '/Exception/InvalidArgumentException.php' , static :: getClassFilePath ( '\\Zend\\Escaper\\Exception\\RuntimeException' ) => $ base . '/Exception/RuntimeException.php' , static :: getClassFilePath ( '\\Zend\\Escaper\\Escaper' ) => $ base . '/Escaper.php' , ] ; foreach ( $ files as $ source => $ dest ) { if ( ! static :: moveFile ( $ source , $ dest ) ) { die ( 'Error moving: ' . $ source ) ; } } } }
Moves the Zend Escaper files into our base repo so that it's
available for packaged releases where the users don't user Composer.

@throws \ReflectionException
Moves the Zend Escaper files into our base repo so that it s available for packaged releases where the users don t user Composer .