<NME> FileGeneratorRegistry.php
<BEF> <?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Zend\Code\Generator;

use Zend\Code\Generator\Exception\RuntimeException;

use function str_replace;
class FileGeneratorRegistry
{
    /**
     * @var array[string]\Zend\Code\Generator\FileGenerator $_fileCodeGenerators registry for Zend\Code\Generator\FileGenerator
     */
    private static $_fileCodeGenerators = array();

    /**
     * Registry for the Zend_Code package. Zend_Tool uses this
     * Registry for the Zend\Code package.
     *
     * @param  FileGenerator $fileCodeGenerator
     * @param  string $fileName
     * @throws RuntimeException
     */
    public static function registerFileCodeGenerator(FileGenerator $fileCodeGenerator, $fileName = null)
    {
        if ($fileName === null) {
            $fileName = $fileCodeGenerator->getFilename();
        }

        if ($fileName == '') {
            throw new RuntimeException('FileName does not exist.');
        }

        // in the same DIRECTORY_SEPARATOR that realpath would use:
        $fileName = str_replace(array('\\', '/'), DIRECTORY_SEPARATOR, $fileName);

        self::$_fileCodeGenerators[$fileName] = $fileCodeGenerator;

    }
}

<MSG> Merge branch 'cs/part2-variable-renaming' of https://github.com/arse/zf2

<DFF> @@ -15,9 +15,9 @@ use Zend\Code\Generator\Exception\RuntimeException;
 class FileGeneratorRegistry
 {
     /**
-     * @var array[string]\Zend\Code\Generator\FileGenerator $_fileCodeGenerators registry for Zend\Code\Generator\FileGenerator
+     * @var array[string]\Zend\Code\Generator\FileGenerator $fileCodeGenerators registry for Zend\Code\Generator\FileGenerator
      */
-    private static $_fileCodeGenerators = array();
+    private static $fileCodeGenerators = array();
 
     /**
      * Registry for the Zend_Code package. Zend_Tool uses this
@@ -40,7 +40,7 @@ class FileGeneratorRegistry
         // in the same DIRECTORY_SEPARATOR that realpath would use:
         $fileName = str_replace(array('\\', '/'), DIRECTORY_SEPARATOR, $fileName);
 
-        self::$_fileCodeGenerators[$fileName] = $fileCodeGenerator;
+        self::$fileCodeGenerators[$fileName] = $fileCodeGenerator;
 
     }
 }

Merge branch 'cs/part2-variable-renaming' of https://github.com/arse/zf2