original_string: protected function replaceScope(string &$stub, string $scope)
      {
  
          if (strlen($scope) > 0)
              $stub = str_replace("'public'", "'$scope'", $stub);
  
          return $this;
      }
code: protected function replaceScope(string &$stub, string $scope)
      {
  
          if (strlen($scope) > 0)
              $stub = str_replace("'public'", "'$scope'", $stub);
  
          return $this;
      }
code_tokens: protected function replaceScope ( string & $ stub , string $ scope ) { if ( strlen ( $ scope ) > 0 ) $ stub = str_replace ( "'public'" , "'$scope'" , $ stub ) ; return $ this ; }
docstring: Replace the scope for the given stub.
  
  @param string $stub
  @param string $scope
  
  @return $this
docstring_tokens: Replace the scope for the given stub .