original_string: private function getExtendableFile($specification) {
          $target = $specification->getTarget();
          if (!array_key_exists($target, $this->extendableFiles)) {
              if (!$specification->mayCreate())
                  return null;
              $this->extendableFiles[$target] = $this->getExtendableFileFromSpecification($specification);
              $this->logFile->log(null, "added file \"{$specification->getTarget()}\"");
          }
          return $this->extendableFiles[$target];
      }
code: private function getExtendableFile($specification) {
          $target = $specification->getTarget();
          if (!array_key_exists($target, $this->extendableFiles)) {
              if (!$specification->mayCreate())
                  return null;
              $this->extendableFiles[$target] = $this->getExtendableFileFromSpecification($specification);
              $this->logFile->log(null, "added file \"{$specification->getTarget()}\"");
          }
          return $this->extendableFiles[$target];
      }
code_tokens: private function getExtendableFile ( $ specification ) { $ target = $ specification -> getTarget ( ) ; if ( ! array_key_exists ( $ target , $ this -> extendableFiles ) ) { if ( ! $ specification -> mayCreate ( ) ) return null ; $ this -> extendableFiles [ $ target ] = $ this -> getExtendableFileFromSpecification ( $ specification ) ; $ this -> logFile -> log ( null , "added file \"{$specification->getTarget()}\"" ) ; } return $ this -> extendableFiles [ $ target ] ; }
docstring: Creates an extendable file from a specification.
  If the extendable file was already created, returns the cached extendable file.
  If the extendable file does not yet exist, create it if it may be created from
  this specification.
  @param \FeaturePhp\Specification\Specification $specification
  @return \FeaturePhp\File\ExtendableFile
docstring_tokens: Creates an extendable file from a specification . If the extendable file was already created returns the cached extendable file . If the extendable file does not yet exist create it if it may be created from this specification .