Completed
Branch master (80cabb)
by Sathish
01:51
created
tests/Pages/SignUpFormTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         $this->get("user-registration/");
24 24
 
25 25
         $this->submitForm("SignUpForm", "action_doSubmit", array("FirstName" => "John",
26
-         "Password[_Password]" => "admin",
26
+            "Password[_Password]" => "admin",
27 27
             "Password[_ConfirmPassword]" => "admin", "Email" => "[email protected]"));
28 28
 
29 29
         $this->assertEquals(
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
         $this->assertEquals(
30 30
             1,
31
-            Member::get()->filter("Email", "[email protected]")->count()>0 ? 1 : 0,
31
+            Member::get()->filter("Email", "[email protected]")->count() > 0 ? 1 : 0,
32 32
             'testMyForm() returns the user email'
33 33
         );
34 34
     }
Please login to merge, or discard this patch.
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/UserProfilePageController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 
38 38
     public function ProfileForm()
39 39
     {
40
-        $form =  new ProfileForm($this, 'ProfileForm');
40
+        $form = new ProfileForm($this, 'ProfileForm');
41 41
         if ($this->member) {
42 42
             $form->loadDataFrom($this->member);
43 43
         }
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 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 {
30 30
     protected $periodfield = '"Member"."Created"';
31 31
 
32
-     // the name of the report
32
+        // the name of the report
33 33
     public function title()
34 34
     {
35 35
         return 'Customer List';
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
             $filter = "Member.Created <= '$end'";
100 100
         }
101 101
         if ($firstName) {
102
-            $filter = ($filter)? $filter . " AND FirstName Like '%$firstName%'" : "FirstName Like '%$firstName%'";
102
+            $filter = ($filter) ? $filter." AND FirstName Like '%$firstName%'" : "FirstName Like '%$firstName%'";
103 103
         }
104 104
 
105 105
         return $filter;
Please login to merge, or discard this patch.