Completed
Push — master ( af1c3e...968ba1 )
by Martijn van
02:36
created
code/model/IpAccess.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function matchRange()
79 79
     {
80
-        if ($ranges = array_filter($this->allowedIps, function ($ip) {
80
+        if ($ranges = array_filter($this->allowedIps, function($ip) {
81 81
             return strstr($ip, '-');
82 82
         })
83 83
         ) {
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function matchCIDR()
102 102
     {
103
-        if ($ranges = array_filter($this->allowedIps, function ($ip) {
103
+        if ($ranges = array_filter($this->allowedIps, function($ip) {
104 104
             return strstr($ip, '/');
105 105
         })
106 106
         ) {
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public function matchWildCard()
122 122
     {
123
-        if ($ranges = array_filter($this->allowedIps, function ($ip) {
123
+        if ($ranges = array_filter($this->allowedIps, function($ip) {
124 124
             return substr($ip, -1) === '*';
125 125
         })
126 126
         ) {
Please login to merge, or discard this patch.
code/AdminSecurity.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -91,6 +91,8 @@
 block discarded – undo
91 91
     /**
92 92
      * @see Security::getPasswordResetLink()
93 93
      * We overload this, so we can add the BackURL to the password resetlink
94
+     * @param Member $member
95
+     * @param string $autologinToken
94 96
      */
95 97
     public static function getPasswordResetLink($member, $autologinToken)
96 98
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     public static function getBackUrl()
76 76
     {
77 77
         $request = Controller::curr()->getRequest();
78
-        if($url = $request->requestVar('BackURL')) {
78
+        if ($url = $request->requestVar('BackURL')) {
79 79
             return $url;
80 80
         }
81 81
         return '';
Please login to merge, or discard this patch.