diff --git a/Framework/API/inc/MantidAPI/MatrixWorkspace.h b/Framework/API/inc/MantidAPI/MatrixWorkspace.h
index 63ba4bfdb40d52dff09c43e62c17c8e211e38017..ef47589f53e418559ffc673ca52415c70a798886 100644
--- a/Framework/API/inc/MantidAPI/MatrixWorkspace.h
+++ b/Framework/API/inc/MantidAPI/MatrixWorkspace.h
@@ -529,7 +529,8 @@ public:
   //=====================================================================================
 
   size_t numberOfDetectorGroups() const override;
-  const std::set<detid_t> &detectorIDsInGroup(const size_t index) const override;
+  const std::set<detid_t> &
+  detectorIDsInGroup(const size_t index) const override;
 
 protected:
   /// Protected copy constructor. May be used by childs for cloning.
diff --git a/Framework/API/src/MatrixWorkspace.cpp b/Framework/API/src/MatrixWorkspace.cpp
index 266ec2921dc3a2b8b3729f1bbbd8922fd64cf71e..443955fce65308be884321f30c8f35019e209f66 100644
--- a/Framework/API/src/MatrixWorkspace.cpp
+++ b/Framework/API/src/MatrixWorkspace.cpp
@@ -1913,7 +1913,8 @@ void MatrixWorkspace::setImageE(const MantidImage &image, size_t start,
   setImage(&MatrixWorkspace::dataE, image, start, parallelExecution);
 }
 
-/// Returns the number of detector groups. This is equal to the number of spectra.
+/// Returns the number of detector groups. This is equal to the number of
+/// spectra.
 size_t MatrixWorkspace::numberOfDetectorGroups() const {
   return getNumberHistograms();
 }