Completed
Push — master ( d1368e...75b7f1 )
by Sathish
02:12
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/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.
src/Extension/UserManagementConfigExtension.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             'Root.UserManagement',
57 57
             DropdownField::create(
58 58
                 'CustomerGroupID',
59
-                _t(__CLASS__ . '.CustomerGroup', 'Group to add new customers to'),
59
+                _t(__CLASS__.'.CustomerGroup', 'Group to add new customers to'),
60 60
                 Group::get()->map('ID', 'Title')
61 61
             )
62 62
         );
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             'Root.UserManagement',
65 65
             TreeDropdownField::create(
66 66
                 'LoginUrlID',
67
-                _t(__CLASS__ . '.LoginUrl', 'Login Url'),
67
+                _t(__CLASS__.'.LoginUrl', 'Login Url'),
68 68
                 SiteTree::class
69 69
             )
70 70
         );
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             'Root.UserManagement',
73 73
             TreeDropdownField::create(
74 74
                 'LoginCallBackUrlID',
75
-                _t(__CLASS__ . '.LoginCallBackUrl', 'Login Call Back Url'),
75
+                _t(__CLASS__.'.LoginCallBackUrl', 'Login Call Back Url'),
76 76
                 SiteTree::class
77 77
             )
78 78
         );
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             'Root.UserManagement',
81 81
             TreeDropdownField::create(
82 82
                 'LostPasswordUrlID',
83
-                _t(__CLASS__ . '.LostPasswordUrl', 'Lost Password Url'),
83
+                _t(__CLASS__.'.LostPasswordUrl', 'Lost Password Url'),
84 84
                 SiteTree::class
85 85
             )
86 86
         );
@@ -88,21 +88,21 @@  discard block
 block discarded – undo
88 88
             'Root.UserManagement',
89 89
             TextareaField::create(
90 90
                 'ProfileUpdateSuccess',
91
-                _t(__CLASS__ . '.ProfileUpdateSuccess', 'Profile update Success Message')
91
+                _t(__CLASS__.'.ProfileUpdateSuccess', 'Profile update Success Message')
92 92
             )
93 93
         );
94 94
         $fields->addFieldToTab(
95 95
             'Root.UserManagement',
96 96
             TextareaField::create(
97 97
                 'ProfileUpdatError',
98
-                _t(__CLASS__ . '.ProfileUpdatError', 'Profile update Error Message')
98
+                _t(__CLASS__.'.ProfileUpdatError', 'Profile update Error Message')
99 99
             )
100 100
         );
101 101
         $fields->addFieldToTab(
102 102
             'Root.UserManagement',
103 103
             CheckboxField::create(
104 104
                 'EnableSpamProtection',
105
-                _t(__CLASS__ . '.EnableSpamProtection', 'Enable Spam Protection')
105
+                _t(__CLASS__.'.EnableSpamProtection', 'Enable Spam Protection')
106 106
             )
107 107
         );
108 108
         
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
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         if ($allGroups->count() == 0) {
29 29
             $authorGroup = new Group();
30 30
             $authorGroup->Code = 'general';
31
-            $authorGroup->Title = _t(__CLASS__ . '.DefaultGroupTitleGeneral', 'General');
31
+            $authorGroup->Title = _t(__CLASS__.'.DefaultGroupTitleGeneral', 'General');
32 32
             $authorGroup->Sort = 1;
33 33
             $authorGroup->write();
34 34
         }
Please login to merge, or discard this patch.