psu-ng: Move analyze for PSUManager to cpp file

The analyze member function of the PSUManager class is a bit lengthy,
and will have more code added in later commits. Moving it from the
header file to the source file.

Also making the namespace a one liner, since multi-line naming not
really needed (at this time).

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: Ieb8c3343837ae6b5a633dcdb827f3c180156e4f1
diff --git a/phosphor-power-supply/psu_manager.hpp b/phosphor-power-supply/psu_manager.hpp
index 13b581e..ca8fd05 100644
--- a/phosphor-power-supply/psu_manager.hpp
+++ b/phosphor-power-supply/psu_manager.hpp
@@ -18,11 +18,7 @@
 using namespace phosphor::power::psu;
 using namespace phosphor::logging;
 
-namespace phosphor
-{
-namespace power
-{
-namespace manager
+namespace phosphor::power::manager
 {
 
 /**
@@ -145,35 +141,7 @@
     /**
      * Analyze the status of each of the power supplies.
      */
-    void analyze()
-    {
-        for (auto& psu : psus)
-        {
-            psu->analyze();
-        }
-
-        for (auto& psu : psus)
-        {
-            // TODO: Fault priorities #918
-            if (!faultLogged && psu->isFaulted())
-            {
-                if (psu->hasInputFault())
-                {
-                    // TODO: Create error log
-                }
-
-                if (psu->hasMFRFault())
-                {
-                    // TODO: Create error log
-                }
-
-                if (psu->hasVINUVFault())
-                {
-                    // TODO: Create error log
-                }
-            }
-        }
-    }
+    void analyze();
 
     /** @brief True if the power is on. */
     bool powerOn = false;
@@ -229,6 +197,4 @@
     std::vector<std::unique_ptr<PowerSupply>> psus;
 };
 
-} // namespace manager
-} // namespace power
-} // namespace phosphor
+} // namespace phosphor::power::manager