Completed
Push — master ( bbf0d0...c07ec6 )
by Sathish
150:54 queued 135:56
created
src/Extension/ViewableuserInfoExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     {
26 26
         if (Security::getCurrentUser()) {
27 27
             $html = DBHTMLText::create();
28
-            $html->setValue("<a href='" . Security::logout_url() . "&BackURL=/'>Logout</a>");
28
+            $html->setValue("<a href='".Security::logout_url()."&BackURL=/'>Logout</a>");
29 29
             return $html;
30 30
         }
31 31
         return false;
Please login to merge, or discard this patch.
src/Extension/GroupExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         if (!$allGroups->count()) {
21 21
             $authorGroup = new Group();
22 22
             $authorGroup->Code = 'general';
23
-            $authorGroup->Title = _t(__CLASS__ . '.DefaultGroupTitleGeneral', 'General');
23
+            $authorGroup->Title = _t(__CLASS__.'.DefaultGroupTitleGeneral', 'General');
24 24
             $authorGroup->Sort = 1;
25 25
             $authorGroup->write();
26 26
         }
Please login to merge, or discard this patch.
src/Page/UserProfilePage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         if ($page = DataObject::get_one(self::class)) {
43 43
             return $page;
44 44
         }
45
-        user_error(_t(__CLASS__ . '.NoPage', 'No UserProfilePage was found. 
45
+        user_error(_t(__CLASS__.'.NoPage', 'No UserProfilePage was found. 
46 46
             Please create one in the CMS!'), E_USER_ERROR);
47 47
         return null;
48 48
     }
Please login to merge, or discard this patch.
src/Page/LostPasswordPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         if ($page = DataObject::get_one(self::class)) {
43 43
             return $page;
44 44
         }
45
-        user_error(_t(__CLASS__ . '.NoPage', 'No LostPasswordPage was found.
45
+        user_error(_t(__CLASS__.'.NoPage', 'No LostPasswordPage was found.
46 46
             Please create one in the CMS!'), E_USER_ERROR);
47 47
         return null;
48 48
     }
Please login to merge, or discard this patch.
src/Page/UserLoginPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         if ($page = DataObject::get_one(self::class)) {
42 42
             return $page;
43 43
         }
44
-        user_error(_t(__CLASS__ . '.NoPage', 'No CustomerLoginPage was found. 
44
+        user_error(_t(__CLASS__.'.NoPage', 'No CustomerLoginPage was found. 
45 45
             Please create one in the CMS!'), E_USER_ERROR);
46 46
         return null; // just to keep static analysis happy
47 47
     }
Please login to merge, or discard this patch.
src/Page/UserRegistrationPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         if ($page = DataObject::get_one(self::class)) {
42 42
             return $page;
43 43
         }
44
-        user_error(_t(__CLASS__ . '.NoPage', 'No UserRegistrationPage was found. 
44
+        user_error(_t(__CLASS__.'.NoPage', 'No UserRegistrationPage was found. 
45 45
             Please create one in the CMS!'), E_USER_ERROR);
46 46
         return null; // just to keep static analysis happy
47 47
     }
Please login to merge, or discard this patch.
src/Reports/UserReport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
     public function FilterByName($filter, $firstName)
121 121
     {
122 122
         if ($firstName) {
123
-            $filter = ($filter) ? $filter . " AND FirstName Like '%$firstName%'" : "FirstName Like '%$firstName%'";
123
+            $filter = ($filter) ? $filter." AND FirstName Like '%$firstName%'" : "FirstName Like '%$firstName%'";
124 124
         }
125 125
         return $filter;
126 126
     }
Please login to merge, or discard this patch.
tests/Extension/UserManagementConfigExtensionTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     public function testgetCustomerGroupID()
60 60
     {
61 61
        
62
-       // $customergroupid = $this->siteconfig->getCustomerGroupID();
62
+        // $customergroupid = $this->siteconfig->getCustomerGroupID();
63 63
         //$this->assertNotNull($customergroupid, "lost password url exists");
64 64
     }
65 65
 
Please login to merge, or discard this patch.
src/Extension/UserManagementConfigExtension.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             'Root.UserManagement',
56 56
             TreeDropdownField::create(
57 57
                 'CustomerGroupID',
58
-                _t(__CLASS__ . '.CustomerGroup', 'Group to add new customers to'),
58
+                _t(__CLASS__.'.CustomerGroup', 'Group to add new customers to'),
59 59
                 Group::get()->map('ID', 'Title')
60 60
             )
61 61
         );
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             'Root.UserManagement',
64 64
             TreeDropdownField::create(
65 65
                 'LoginUrlID',
66
-                _t(__CLASS__ . '.LoginUrl', 'Login Url'),
66
+                _t(__CLASS__.'.LoginUrl', 'Login Url'),
67 67
                 SiteTree::class
68 68
             )
69 69
         );
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             'Root.UserManagement',
72 72
             TreeDropdownField::create(
73 73
                 'LoginCallBackUrlID',
74
-                _t(__CLASS__ . '.LoginCallBackUrl', 'Login Call Back Url'),
74
+                _t(__CLASS__.'.LoginCallBackUrl', 'Login Call Back Url'),
75 75
                 SiteTree::class
76 76
             )
77 77
         );
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             'Root.UserManagement',
80 80
             TreeDropdownField::create(
81 81
                 'LostPasswordUrlID',
82
-                _t(__CLASS__ . '.LostPasswordUrl', 'Lost Password Url'),
82
+                _t(__CLASS__.'.LostPasswordUrl', 'Lost Password Url'),
83 83
                 SiteTree::class
84 84
             )
85 85
         );
@@ -87,21 +87,21 @@  discard block
 block discarded – undo
87 87
             'Root.UserManagement',
88 88
             TextareaField::create(
89 89
                 'ProfileUpdateSuccess',
90
-                _t(__CLASS__ . '.ProfileUpdateSuccess', 'Profile update Success Message')
90
+                _t(__CLASS__.'.ProfileUpdateSuccess', 'Profile update Success Message')
91 91
             )
92 92
         );
93 93
         $fields->addFieldToTab(
94 94
             'Root.UserManagement',
95 95
             TextareaField::create(
96 96
                 'ProfileUpdatError',
97
-                _t(__CLASS__ . '.ProfileUpdatError', 'Profile update Error Message')
97
+                _t(__CLASS__.'.ProfileUpdatError', 'Profile update Error Message')
98 98
             )
99 99
         );
100 100
         $fields->addFieldToTab(
101 101
             'Root.UserManagement',
102 102
             CheckboxField::create(
103 103
                 'EnableSpamProtection',
104
-                _t(__CLASS__ . '.EnableSpamProtection', 'Enable Spam Protection')
104
+                _t(__CLASS__.'.EnableSpamProtection', 'Enable Spam Protection')
105 105
             )
106 106
         );
107 107
         
Please login to merge, or discard this patch.