     #
     # Mix should not depend directly on Logger so check that it's loaded.
     logger = Process.whereis(Logger)
+
     if logger do
-      Logger.App.stop
+      Logger.App.stop()
     end
 
     if "--no-start" in args do
       # Start Logger again if the application won't be starting it
       if logger do
-        :ok = Logger.App.start
+        :ok = Logger.App.start()
       end
     else
-      start(Mix.Project.config, opts)
+      start(Mix.Project.config(), opts)
     end
 
     :ok

    apps =
      cond do
        Mix.Project.umbrella?(config) ->
          for %Mix.Dep{app: app} <- Mix.Dep.Umbrella.cached, do: app
        app = config[:app] ->
          [app]
        true ->
          []
      end

    type = type(config, opts)
    Enum.each apps, &ensure_all_started(&1, type)

    # If there is a build path, we will let the application
    # that owns the build path do the actual check


  defp ensure_all_started(app, type) do
    case Application.ensure_all_started(app, type) do
      {:ok, _} ->
        :ok

      {:error, {app, reason}} ->
        Mix.raise("Could not start application #{app}: " <> Application.format_error(reason))
    end
  end

