Completed
Push — master ( 108fcc...98b793 )
by Angus
09:31
created
application/libraries/CustomParsedown.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php declare(strict_types=1); defined('BASEPATH') or exit('No direct script access allowed');
2 2
 
3
-require_once APPPATH . '../vendor/erusev/parsedown/Parsedown.php';
3
+require_once APPPATH.'../vendor/erusev/parsedown/Parsedown.php';
4 4
 class CustomParsedown extends Parsedown {
5 5
 	public function __construct() {
6 6
 		$this->setSafeMode(TRUE);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 		$link = parent::inlineLink($excerpt);
11 11
 
12 12
 		if(!isset($link)) {
13
-			return null;
13
+			return NULL;
14 14
 		}
15 15
 
16 16
 		//Make title attribute the same as link
Please login to merge, or discard this patch.
application/libraries/MY_Form_validation.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 	 */
109 109
 	public function isRuleValid(string $ruleName) : bool {
110 110
 		$isValid = FALSE;
111
-		if(is_string($ruleName) && $this->has_rule($ruleName)){
111
+		if(is_string($ruleName) && $this->has_rule($ruleName)) {
112 112
 			$isValid = !array_key_exists($ruleName, $this->error_array());
113 113
 		}
114 114
 		return $isValid;
Please login to merge, or discard this patch.
Braces   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@  discard block
 block discarded – undo
43 43
 	public function valid_password(string $password) : bool {
44 44
 		if(!($isValid = $this->min_length($password, $this->CI->config->item('min_password_length', 'ion_auth')))) {
45 45
 			$this->set_message('valid_password', 'The password is too short!');
46
-		}
47
-		elseif(!($isValid = $this->max_length($password, $this->CI->config->item('max_password_length', 'ion_auth')))) {
46
+		} elseif(!($isValid = $this->max_length($password, $this->CI->config->item('max_password_length', 'ion_auth')))) {
48 47
 			$this->set_message('valid_password', 'The password is too long!');
49 48
 		}
50 49
 		return $isValid;
@@ -108,7 +107,7 @@  discard block
 block discarded – undo
108 107
 	 */
109 108
 	public function isRuleValid(string $ruleName) : bool {
110 109
 		$isValid = FALSE;
111
-		if(is_string($ruleName) && $this->has_rule($ruleName)){
110
+		if(is_string($ruleName) && $this->has_rule($ruleName)) {
112 111
 			$isValid = !array_key_exists($ruleName, $this->error_array());
113 112
 		}
114 113
 		return $isValid;
Please login to merge, or discard this patch.
application/config/production/database.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined('BASEPATH') OR exit('No direct script access allowed');
1
+<?php defined('BASEPATH') or exit('No direct script access allowed');
2 2
 
3 3
 include APPPATH.'config/database.php'; //CI doesn't do this by default?
4 4
 
Please login to merge, or discard this patch.
application/core/MY_Security.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined('BASEPATH') OR exit('No direct script access allowed');
1
+<?php defined('BASEPATH') or exit('No direct script access allowed');
2 2
 
3 3
 class MY_Security extends CI_Security {
4 4
 	public $verified = TRUE;
Please login to merge, or discard this patch.
application/config/development/database.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined('BASEPATH') OR exit('No direct script access allowed');
1
+<?php defined('BASEPATH') or exit('No direct script access allowed');
2 2
 
3 3
 include APPPATH.'config/database.php'; //CI doesn't do this by default?
4 4
 
Please login to merge, or discard this patch.
application/config/testing/database.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined('BASEPATH') OR exit('No direct script access allowed');
1
+<?php defined('BASEPATH') or exit('No direct script access allowed');
2 2
 
3 3
 include APPPATH.'config/database.php'; //CI doesn't do this by default?
4 4
 
Please login to merge, or discard this patch.