From 6cb75dff015282cbaf90f552fd5c5af3658451be Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be>
Date: Wed, 25 Jan 2017 17:22:44 +0100
Subject: [PATCH] Removed unused var spotted by sonar

---
 include/class_tests.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/class_tests.inc b/include/class_tests.inc
index f8414a913..5cbfc410b 100644
--- a/include/class_tests.inc
+++ b/include/class_tests.inc
@@ -38,8 +38,8 @@
  * The functions need to be handled with care, because they are not as strict
  * as one might expect.
  */
-class tests {
-
+class tests
+{
   /*!
    * \brief Test if the given string is a phone number
    *
@@ -292,7 +292,7 @@ class tests {
   {
     global $config;
     $reservedNames = array();
-    foreach ($config->data['OBJECTS'] as $type => $infos) {
+    foreach ($config->data['OBJECTS'] as $infos) {
       if (isset($infos['ou'])) {
         if ($infos['ou'] != '') {
           if (preg_match('/ou=([^,]+),$/', $infos['ou'], $m)) {
-- 
GitLab