original_string: protected function processFileSpecification($artifact, $fileSpecification) {
          $collaboration = fphp\Collaboration\Collaboration::findByArtifact($this->collaborations, $artifact);
          if (!$collaboration)
              $this->collaborations[] = $collaboration = new fphp\Collaboration\Collaboration($artifact);
          $collaboration->addRoleFromFileSpecification($fileSpecification);
          $this->tracingLinks[] = new fphp\Artifact\TracingLink(
              "role", $artifact, $fileSpecification->getSourcePlace(), $fileSpecification->getTargetPlace());
          $this->logFile->log($artifact, "using role at \"{$fileSpecification->getTarget()}\"");
      }
code: protected function processFileSpecification($artifact, $fileSpecification) {
          $collaboration = fphp\Collaboration\Collaboration::findByArtifact($this->collaborations, $artifact);
          if (!$collaboration)
              $this->collaborations[] = $collaboration = new fphp\Collaboration\Collaboration($artifact);
          $collaboration->addRoleFromFileSpecification($fileSpecification);
          $this->tracingLinks[] = new fphp\Artifact\TracingLink(
              "role", $artifact, $fileSpecification->getSourcePlace(), $fileSpecification->getTargetPlace());
          $this->logFile->log($artifact, "using role at \"{$fileSpecification->getTarget()}\"");
      }
code_tokens: protected function processFileSpecification ( $ artifact , $ fileSpecification ) { $ collaboration = fphp \ Collaboration \ Collaboration :: findByArtifact ( $ this -> collaborations , $ artifact ) ; if ( ! $ collaboration ) $ this -> collaborations [ ] = $ collaboration = new fphp \ Collaboration \ Collaboration ( $ artifact ) ; $ collaboration -> addRoleFromFileSpecification ( $ fileSpecification ) ; $ this -> tracingLinks [ ] = new fphp \ Artifact \ TracingLink ( "role" , $ artifact , $ fileSpecification -> getSourcePlace ( ) , $ fileSpecification -> getTargetPlace ( ) ) ; $ this -> logFile -> log ( $ artifact , "using role at \"{$fileSpecification->getTarget()}\"" ) ; }
docstring: Adds a role from a file to a collaboration.
  @param \FeaturePhp\Artifact\Artifact $artifact
  @param \FeaturePhp\Specification\FileSpecification $fileSpecification
docstring_tokens: Adds a role from a file to a collaboration .