@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -defined('BASEPATH') OR exit('No direct script access allowed'); |
|
| 2 | +defined('BASEPATH') or exit('No direct script access allowed'); |
|
| 3 | 3 | |
| 4 | 4 | $_doctypes = array( |
| 5 | 5 | 'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">', |
@@ -17,48 +17,48 @@ |
||
| 17 | 17 | |
| 18 | 18 | // smiley image name width height alt |
| 19 | 19 | |
| 20 | - ':-)' => array('grin.gif', '19', '19', 'grin'), |
|
| 21 | - ':lol:' => array('lol.gif', '19', '19', 'LOL'), |
|
| 22 | - ':cheese:' => array('cheese.gif', '19', '19', 'cheese'), |
|
| 23 | - ':)' => array('smile.gif', '19', '19', 'smile'), |
|
| 24 | - ';-)' => array('wink.gif', '19', '19', 'wink'), |
|
| 25 | - ';)' => array('wink.gif', '19', '19', 'wink'), |
|
| 26 | - ':smirk:' => array('smirk.gif', '19', '19', 'smirk'), |
|
| 27 | - ':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'), |
|
| 28 | - ':-S' => array('confused.gif', '19', '19', 'confused'), |
|
| 29 | - ':wow:' => array('surprise.gif', '19', '19', 'surprised'), |
|
| 30 | - ':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'), |
|
| 31 | - ':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'), |
|
| 32 | - '%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'), |
|
| 33 | - ';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'), |
|
| 34 | - ':P' => array('raspberry.gif', '19', '19', 'raspberry'), |
|
| 35 | - ':blank:' => array('blank.gif', '19', '19', 'blank stare'), |
|
| 36 | - ':long:' => array('longface.gif', '19', '19', 'long face'), |
|
| 37 | - ':ohh:' => array('ohh.gif', '19', '19', 'ohh'), |
|
| 38 | - ':grrr:' => array('grrr.gif', '19', '19', 'grrr'), |
|
| 39 | - ':gulp:' => array('gulp.gif', '19', '19', 'gulp'), |
|
| 40 | - '8-/' => array('ohoh.gif', '19', '19', 'oh oh'), |
|
| 41 | - ':down:' => array('downer.gif', '19', '19', 'downer'), |
|
| 42 | - ':red:' => array('embarrassed.gif', '19', '19', 'red face'), |
|
| 43 | - ':sick:' => array('sick.gif', '19', '19', 'sick'), |
|
| 44 | - ':shut:' => array('shuteye.gif', '19', '19', 'shut eye'), |
|
| 45 | - ':-/' => array('hmm.gif', '19', '19', 'hmmm'), |
|
| 46 | - '>:(' => array('mad.gif', '19', '19', 'mad'), |
|
| 47 | - ':mad:' => array('mad.gif', '19', '19', 'mad'), |
|
| 48 | - '>:-(' => array('angry.gif', '19', '19', 'angry'), |
|
| 49 | - ':angry:' => array('angry.gif', '19', '19', 'angry'), |
|
| 50 | - ':zip:' => array('zip.gif', '19', '19', 'zipper'), |
|
| 51 | - ':kiss:' => array('kiss.gif', '19', '19', 'kiss'), |
|
| 52 | - ':ahhh:' => array('shock.gif', '19', '19', 'shock'), |
|
| 53 | - ':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'), |
|
| 54 | - ':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'), |
|
| 55 | - ':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'), |
|
| 56 | - ':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'), |
|
| 57 | - ':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'), |
|
| 58 | - ':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'), |
|
| 59 | - ':vampire:' => array('vampire.gif', '19', '19', 'vampire'), |
|
| 60 | - ':snake:' => array('snake.gif', '19', '19', 'snake'), |
|
| 61 | - ':exclaim:' => array('exclaim.gif', '19', '19', 'exclaim'), |
|
| 62 | - ':question:' => array('question.gif', '19', '19', 'question') |
|
| 20 | + ':-)' => array('grin.gif', '19', '19', 'grin'), |
|
| 21 | + ':lol:' => array('lol.gif', '19', '19', 'LOL'), |
|
| 22 | + ':cheese:' => array('cheese.gif', '19', '19', 'cheese'), |
|
| 23 | + ':)' => array('smile.gif', '19', '19', 'smile'), |
|
| 24 | + ';-)' => array('wink.gif', '19', '19', 'wink'), |
|
| 25 | + ';)' => array('wink.gif', '19', '19', 'wink'), |
|
| 26 | + ':smirk:' => array('smirk.gif', '19', '19', 'smirk'), |
|
| 27 | + ':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'), |
|
| 28 | + ':-S' => array('confused.gif', '19', '19', 'confused'), |
|
| 29 | + ':wow:' => array('surprise.gif', '19', '19', 'surprised'), |
|
| 30 | + ':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'), |
|
| 31 | + ':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'), |
|
| 32 | + '%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'), |
|
| 33 | + ';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'), |
|
| 34 | + ':P' => array('raspberry.gif', '19', '19', 'raspberry'), |
|
| 35 | + ':blank:' => array('blank.gif', '19', '19', 'blank stare'), |
|
| 36 | + ':long:' => array('longface.gif', '19', '19', 'long face'), |
|
| 37 | + ':ohh:' => array('ohh.gif', '19', '19', 'ohh'), |
|
| 38 | + ':grrr:' => array('grrr.gif', '19', '19', 'grrr'), |
|
| 39 | + ':gulp:' => array('gulp.gif', '19', '19', 'gulp'), |
|
| 40 | + '8-/' => array('ohoh.gif', '19', '19', 'oh oh'), |
|
| 41 | + ':down:' => array('downer.gif', '19', '19', 'downer'), |
|
| 42 | + ':red:' => array('embarrassed.gif', '19', '19', 'red face'), |
|
| 43 | + ':sick:' => array('sick.gif', '19', '19', 'sick'), |
|
| 44 | + ':shut:' => array('shuteye.gif', '19', '19', 'shut eye'), |
|
| 45 | + ':-/' => array('hmm.gif', '19', '19', 'hmmm'), |
|
| 46 | + '>:(' => array('mad.gif', '19', '19', 'mad'), |
|
| 47 | + ':mad:' => array('mad.gif', '19', '19', 'mad'), |
|
| 48 | + '>:-(' => array('angry.gif', '19', '19', 'angry'), |
|
| 49 | + ':angry:' => array('angry.gif', '19', '19', 'angry'), |
|
| 50 | + ':zip:' => array('zip.gif', '19', '19', 'zipper'), |
|
| 51 | + ':kiss:' => array('kiss.gif', '19', '19', 'kiss'), |
|
| 52 | + ':ahhh:' => array('shock.gif', '19', '19', 'shock'), |
|
| 53 | + ':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'), |
|
| 54 | + ':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'), |
|
| 55 | + ':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'), |
|
| 56 | + ':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'), |
|
| 57 | + ':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'), |
|
| 58 | + ':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'), |
|
| 59 | + ':vampire:' => array('vampire.gif', '19', '19', 'vampire'), |
|
| 60 | + ':snake:' => array('snake.gif', '19', '19', 'snake'), |
|
| 61 | + ':exclaim:' => array('exclaim.gif', '19', '19', 'exclaim'), |
|
| 62 | + ':question:' => array('question.gif', '19', '19', 'question') |
|
| 63 | 63 | |
| 64 | 64 | ); |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -defined('BASEPATH') OR exit('No direct script access allowed'); |
|
| 2 | +defined('BASEPATH') or exit('No direct script access allowed'); |
|
| 3 | 3 | |
| 4 | 4 | /* |
| 5 | 5 | | ------------------------------------------------------------------- |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | class UnitTester extends \Codeception\Actor |
| 20 | 20 | { |
| 21 | - use _generated\UnitTesterActions; |
|
| 21 | + use _generated\UnitTesterActions; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Define custom actions here |
@@ -16,8 +16,7 @@ |
||
| 16 | 16 | * |
| 17 | 17 | * @SuppressWarnings(PHPMD) |
| 18 | 18 | */ |
| 19 | -class UnitTester extends \Codeception\Actor |
|
| 20 | -{ |
|
| 19 | +class UnitTester extends \Codeception\Actor { |
|
| 21 | 20 | use _generated\UnitTesterActions; |
| 22 | 21 | |
| 23 | 22 | /** |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | // here you can define custom actions |
| 5 | 5 | // all public methods declared in helper class will be available in $I |
| 6 | 6 | |
| 7 | -class Functional extends \Codeception\Module |
|
| 8 | -{ |
|
| 7 | +class Functional extends \Codeception\Module { |
|
| 9 | 8 | |
| 10 | 9 | } |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | // here you can define custom actions |
| 5 | 5 | // all public methods declared in helper class will be available in $I |
| 6 | 6 | |
| 7 | -class Unit extends \Codeception\Module |
|
| 8 | -{ |
|
| 7 | +class Unit extends \Codeception\Module { |
|
| 9 | 8 | |
| 10 | 9 | } |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | // here you can define custom actions |
| 5 | 5 | // all public methods declared in helper class will be available in $I |
| 6 | 6 | |
| 7 | -class Acceptance extends \Codeception\Module |
|
| 8 | -{ |
|
| 7 | +class Acceptance extends \Codeception\Module { |
|
| 9 | 8 | |
| 10 | 9 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | class AcceptanceTester extends \Codeception\Actor |
| 20 | 20 | { |
| 21 | - use _generated\AcceptanceTesterActions; |
|
| 21 | + use _generated\AcceptanceTesterActions; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Define custom actions here |
@@ -16,8 +16,7 @@ |
||
| 16 | 16 | * |
| 17 | 17 | * @SuppressWarnings(PHPMD) |
| 18 | 18 | */ |
| 19 | -class AcceptanceTester extends \Codeception\Actor |
|
| 20 | -{ |
|
| 19 | +class AcceptanceTester extends \Codeception\Actor { |
|
| 21 | 20 | use _generated\AcceptanceTesterActions; |
| 22 | 21 | |
| 23 | 22 | /** |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | class FunctionalTester extends \Codeception\Actor |
| 20 | 20 | { |
| 21 | - use _generated\FunctionalTesterActions; |
|
| 21 | + use _generated\FunctionalTesterActions; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Define custom actions here |
@@ -16,8 +16,7 @@ |
||
| 16 | 16 | * |
| 17 | 17 | * @SuppressWarnings(PHPMD) |
| 18 | 18 | */ |
| 19 | -class FunctionalTester extends \Codeception\Actor |
|
| 20 | -{ |
|
| 19 | +class FunctionalTester extends \Codeception\Actor { |
|
| 21 | 20 | use _generated\FunctionalTesterActions; |
| 22 | 21 | |
| 23 | 22 | /** |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); defined('BASEPATH') or exit('No direct script access allowed'); |
|
| 1 | +<?php declare(strict_types = 1); defined('BASEPATH') or exit('No direct script access allowed'); |
|
| 2 | 2 | |
| 3 | 3 | class MY_Form_validation extends CI_Form_validation { |
| 4 | 4 | private $user_tables; |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | parent::__construct(); |
| 8 | 8 | log_message('debug', "MY_Form_validation Class Initialized"); |
| 9 | 9 | |
| 10 | - $this->CI =& get_instance(); |
|
| 10 | + $this->CI = & get_instance(); |
|
| 11 | 11 | $this->CI->config->load('ion_auth', TRUE); |
| 12 | 12 | $this->user_tables = $this->CI->config->item('tables', 'ion_auth'); |
| 13 | 13 | } |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | public function isRuleValid(string $ruleName) : bool { |
| 93 | 93 | $isValid = FALSE; |
| 94 | - if(is_string($ruleName) && $this->has_rule($ruleName)){ |
|
| 94 | + if(is_string($ruleName) && $this->has_rule($ruleName)) { |
|
| 95 | 95 | $isValid = !in_array($ruleName, array_keys($this->error_array()), TRUE); |
| 96 | 96 | } |
| 97 | 97 | return $isValid; |
@@ -30,8 +30,7 @@ discard block |
||
| 30 | 30 | public function valid_password(string $password) : bool { |
| 31 | 31 | if(!($isValid = $this->min_length($password, $this->CI->config->item('min_password_length', 'ion_auth')))) { |
| 32 | 32 | $this->set_message('valid_password', 'The password is too short!'); |
| 33 | - } |
|
| 34 | - elseif(!($isValid = $this->max_length($password, $this->CI->config->item('max_password_length', 'ion_auth')))) { |
|
| 33 | + } elseif(!($isValid = $this->max_length($password, $this->CI->config->item('max_password_length', 'ion_auth')))) { |
|
| 35 | 34 | $this->set_message('valid_password', 'The password is too long!'); |
| 36 | 35 | } |
| 37 | 36 | return $isValid; |
@@ -91,7 +90,7 @@ discard block |
||
| 91 | 90 | */ |
| 92 | 91 | public function isRuleValid(string $ruleName) : bool { |
| 93 | 92 | $isValid = FALSE; |
| 94 | - if(is_string($ruleName) && $this->has_rule($ruleName)){ |
|
| 93 | + if(is_string($ruleName) && $this->has_rule($ruleName)) { |
|
| 95 | 94 | $isValid = !in_array($ruleName, array_keys($this->error_array()), TRUE); |
| 96 | 95 | } |
| 97 | 96 | return $isValid; |