 
     contents =
       case File.read(file) do
-        {:ok, bin} -> bin
-        {:error, _} -> """
-          import Config
-
-          if config_env() == :prod do
-          end
-        """
+        {:ok, bin} ->
+          bin
+
+        {:error, _} ->
+          """
+            import Config
+
+            if config_env() == :prod do
+            end
+          """
       end
 
     case split_with_self(contents, "if config_env() == :prod do") do


  def copy_from(%Project{} = project, mod, name) when is_atom(name) do
    mapping = mod.template_files(name)
    for {format, source, project_location, target_path} <- mapping do
      target = Project.join_path(project, project_location, target_path)

      case format do
        :keep ->
          File.mkdir_p!(target)
        :text ->
          create_file(target, mod.render(name, source, project.binding))
        :config ->
          contents = mod.render(name, source, project.binding)
          config_inject(Path.dirname(target), Path.basename(target), contents)
        :prod_config ->
          contents = mod.render(name, source, project.binding)
          prod_only_config_inject(Path.dirname(target), Path.basename(target), contents)
        :eex  ->
          contents = mod.render(name, source, project.binding)
          create_file(target, contents)
      end

  def inject_umbrella_config_defaults(project) do
    unless File.exists?(Project.join_path(project, :project, "config/dev.exs")) do
      path = Project.join_path(project, :project, "config/config.exs")

      extra =
        Phx.New.Umbrella.render(:new, "phx_umbrella/config/extra_config.exs", project.binding)

      File.write(path, [File.read!(path), extra])
    end
  end
