Passed
Branch 1.0.0-dev (c78053)
by nguereza
04:10 queued 15s
created
core/lang/en/lang_form_validation.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,24 +1,24 @@
 block discarded – undo
1 1
 <?php 
2
-    defined('ROOT_PATH') || exit('Access denied');
2
+	defined('ROOT_PATH') || exit('Access denied');
3 3
  	/**
4 4
  	 * Form validation language message (English) 
5 5
  	 */
6 6
  	$lang['fv_required']     		= 'Field %1 is required.';
7
-    $lang['fv_min_length']   		= 'Field %1 must contain at least %2 characters.';
8
-    $lang['fv_max_length']   		= 'Field %1 must contain at most %2 characters.';
9
-    $lang['fv_exact_length'] 		= 'Field %1 must contain exactly %2 characters.';
10
-    $lang['fv_less_than'] 		    = 'Field %1 must less than %2.';
11
-    $lang['fv_greater_than'] 		= 'Field %1 must greater than %2.';
12
-    $lang['fv_matches']      		= 'Field %1 must be identical to field %2.';
13
-    $lang['fv_valid_email']  		= 'Field %1 must contain a valid E-mail address.';
14
-    $lang['fv_not_equal_post_key']  = 'Field %1 must not be the same as field %2.';
15
-    $lang['fv_not_equal_string']    = 'Field %1 must not contain the value %2.';
16
-    $lang['fv_depends']      		= 'Field %1 depends on field %2 which is not valid.';
7
+	$lang['fv_min_length']   		= 'Field %1 must contain at least %2 characters.';
8
+	$lang['fv_max_length']   		= 'Field %1 must contain at most %2 characters.';
9
+	$lang['fv_exact_length'] 		= 'Field %1 must contain exactly %2 characters.';
10
+	$lang['fv_less_than'] 		    = 'Field %1 must less than %2.';
11
+	$lang['fv_greater_than'] 		= 'Field %1 must greater than %2.';
12
+	$lang['fv_matches']      		= 'Field %1 must be identical to field %2.';
13
+	$lang['fv_valid_email']  		= 'Field %1 must contain a valid E-mail address.';
14
+	$lang['fv_not_equal_post_key']  = 'Field %1 must not be the same as field %2.';
15
+	$lang['fv_not_equal_string']    = 'Field %1 must not contain the value %2.';
16
+	$lang['fv_depends']      		= 'Field %1 depends on field %2 which is not valid.';
17 17
 	$lang['fv_is_unique']	   		= 'The value of field %1 already exists.';
18 18
 	$lang['fv_is_unique_update']	= 'The value of field %1 already exists for another record.';
19
-    $lang['fv_exists']	   			= 'The value of the field %1 does not exist.';
20
-    $lang['fv_regex']	   			= 'The value of the field %1 does not use the correct format.';
21
-    $lang['fv_in_list']	   			= 'The value of field %1 must be one of the list (%2).';
22
-    $lang['fv_numeric']	   			= 'The value of field %1 must be a number.';
23
-    $lang['fv_callback']	   		= 'The value of field %1 is not valid.';
19
+	$lang['fv_exists']	   			= 'The value of the field %1 does not exist.';
20
+	$lang['fv_regex']	   			= 'The value of the field %1 does not use the correct format.';
21
+	$lang['fv_in_list']	   			= 'The value of field %1 must be one of the list (%2).';
22
+	$lang['fv_numeric']	   			= 'The value of field %1 must be a number.';
23
+	$lang['fv_callback']	   		= 'The value of field %1 is not valid.';
24 24
  	
Please login to merge, or discard this patch.
core/lang/en/lang_file_upload.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
1 1
 <?php 
2
-    defined('ROOT_PATH') || exit('Access denied');
2
+	defined('ROOT_PATH') || exit('Access denied');
3 3
  	/**
4 4
  	 * File upload language messages (English) 
5 5
  	 */
6 6
  	$lang['fu_upload_err_ini_size']     = 'The uploaded file exceeds the upload_max_filesize directive in php.ini.';
7
-    $lang['fu_upload_err_form_size']   	= 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.';
8
-    $lang['fu_upload_err_partial']   	= 'The uploaded file was only partially uploaded.';
9
-    $lang['fu_upload_err_no_file'] 		= 'No file was choosed. Please select one.';
10
-    $lang['fu_upload_err_no_tmp_dir']   = 'Missing a temporary folder.';
11
-    $lang['fu_upload_err_cant_write'] 	= 'Failed to write file to disk.';
12
-    $lang['fu_upload_err_extension']    = 'A PHP extension stopped the file upload.';
13
-    $lang['fu_accept_file_types']  		= 'Filetype not allowed';
14
-    $lang['fu_file_uploads_disabled']   = 'File uploading option is disabled in php.ini';
15
-    $lang['fu_max_file_size']           = 'The uploaded file size is too big max size is %s';
16
-    $lang['fu_overwritten_not_allowed'] = 'You don\'t allow overwriting existing file';
7
+	$lang['fu_upload_err_form_size']   	= 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.';
8
+	$lang['fu_upload_err_partial']   	= 'The uploaded file was only partially uploaded.';
9
+	$lang['fu_upload_err_no_file'] 		= 'No file was choosed. Please select one.';
10
+	$lang['fu_upload_err_no_tmp_dir']   = 'Missing a temporary folder.';
11
+	$lang['fu_upload_err_cant_write'] 	= 'Failed to write file to disk.';
12
+	$lang['fu_upload_err_extension']    = 'A PHP extension stopped the file upload.';
13
+	$lang['fu_accept_file_types']  		= 'Filetype not allowed';
14
+	$lang['fu_file_uploads_disabled']   = 'File uploading option is disabled in php.ini';
15
+	$lang['fu_max_file_size']           = 'The uploaded file size is too big max size is %s';
16
+	$lang['fu_overwritten_not_allowed'] = 'You don\'t allow overwriting existing file';
17 17
 	
Please login to merge, or discard this patch.
core/constants.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 	 * You should have received a copy of the GNU General Public License
23 23
 	 * along with this program; if not, write to the Free Software
24 24
 	 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25
-	*/
25
+	 */
26 26
 
27 27
 	/**
28 28
 	 *  @file constants.php
Please login to merge, or discard this patch.
tests/include/common.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 	 * You should have received a copy of the GNU General Public License
23 23
 	 * along with this program; if not, write to the Free Software
24 24
 	 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25
-	*/
25
+	 */
26 26
 
27 27
 
28 28
 	function & class_loader($class, $dir = 'libraries', $params = null){
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
 	}
93 93
 
94 94
 	/**
95
-	*  @test
96
-	*/
95
+	 *  @test
96
+	 */
97 97
 	function get_config($key, $default = null){
98 98
 		static $cfg;
99 99
 		if(empty($cfg)){
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
 	}
122 122
 	
123 123
 	/**
124
-	*  @test
125
-	*/
124
+	 *  @test
125
+	 */
126 126
 	function is_url($url){
127 127
 		return preg_match('/^(http|https|ftp):\/\/(.*)/', $url);
128 128
 	}
@@ -142,8 +142,8 @@  discard block
 block discarded – undo
142 142
 
143 143
 
144 144
 	/**
145
-	*  @test
146
-	*/
145
+	 *  @test
146
+	 */
147 147
 	function attributes_to_string(array $attributes){
148 148
 		$str = ' ';
149 149
 		//we check that the array passed as an argument is not empty.
@@ -173,8 +173,8 @@  discard block
 block discarded – undo
173 173
 	}
174 174
 
175 175
 	/**
176
-	*  @test
177
-	*/
176
+	 *  @test
177
+	 */
178 178
 	function clean_input($str){
179 179
 		if(is_array($str)){
180 180
 			$str = array_map('clean_input', $str);
@@ -193,8 +193,8 @@  discard block
 block discarded – undo
193 193
 	}
194 194
 	
195 195
 	/**
196
-	*  @test
197
-	*/
196
+	 *  @test
197
+	 */
198 198
 	function string_hidden($str, $startCount = 0, $endCount = 0, $hiddenChar = '*'){
199 199
 		//get the string length
200 200
 		$len = strlen($str);
Please login to merge, or discard this patch.
tests/include/testsUtil.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 	/**
4
-	* Function to test private & protected method
5
-	*/
4
+	 * Function to test private & protected method
5
+	 */
6 6
 	function runPrivateOrProtectedMethod($object, $method, array $args = array()){
7 7
 		$r = new ReflectionClass(get_class($object));
8 8
 		$m = $r->getMethod($method);
Please login to merge, or discard this patch.
tests/tnhfw/libraries/FormValidationTest.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -3,66 +3,66 @@  discard block
 block discarded – undo
3 3
 class FormValidationTest extends TestCase
4 4
 {   
5 5
 	public static function setUpBeforeClass()
6
-    {
6
+	{
7 7
     
8
-    }
8
+	}
9 9
 	
10 10
 	public static function tearDownAfterClass()
11
-    {
11
+	{
12 12
         
13
-    }
13
+	}
14 14
 	
15
-    protected function setUp()
16
-    {
15
+	protected function setUp()
16
+	{
17 17
 		
18
-    }
18
+	}
19 19
 
20
-    protected function tearDown()
21
-    {
20
+	protected function tearDown()
21
+	{
22 22
 		
23
-    }
23
+	}
24 24
 	
25 25
 	
26 26
 
27
-    // tests
28
-    public function testValidationDataIsEmpty()
29
-    {
27
+	// tests
28
+	public function testValidationDataIsEmpty()
29
+	{
30 30
 		$fv = new FormValidation();
31 31
 		$this->assertEmpty($fv->getData());
32
-    }
32
+	}
33 33
 	
34 34
 	public function testValidationDataIsNotEmpty()
35
-    {
35
+	{
36 36
 		$fv = new FormValidation();
37 37
 		$fv->setData(array('name' => 'mike'));
38 38
 		$this->assertNotEmpty($fv->getData());
39 39
 		$this->assertArrayHasKey('name', $fv->getData());
40
-    }
40
+	}
41 41
 	
42 42
 	public function testCannotDoValidation()
43
-    {
43
+	{
44 44
 		$fv = new FormValidation();
45 45
 		$this->assertFalse($fv->canDoValidation());
46
-    }
46
+	}
47 47
 
48 48
 	public function testSettingErrorDelimiter()
49
-    {
49
+	{
50 50
 		$fv = new FormValidation();
51 51
 		$fv->setErrorDelimiter('<a>', '</b>');
52 52
 		$this->assertContains('<a>', $fv->getErrorDelimiter());
53 53
 		$this->assertContains('</b>', $fv->getErrorDelimiter());
54
-    }
54
+	}
55 55
 	
56 56
 	public function testSettingErrorsDelimiter()
57
-    {
57
+	{
58 58
 		$fv = new FormValidation();
59 59
 		$fv->setErrorsDelimiter('<foo>', '</bar>');
60 60
 		$this->assertContains('<foo>', $fv->getErrorsDelimiter());
61 61
 		$this->assertContains('</bar>', $fv->getErrorsDelimiter());
62
-    }
62
+	}
63 63
 	
64 64
 	public function testSettingErrorMessageOverride()
65
-    {
65
+	{
66 66
 		
67 67
 		//field specific message for the rule
68 68
 		$fv = new FormValidation();
@@ -82,10 +82,10 @@  discard block
 block discarded – undo
82 82
 
83 83
 		$this->assertFalse($fv->run());
84 84
 		$this->assertContains('global required message error', $fv->returnErrors());
85
-    }
85
+	}
86 86
 	
87 87
 	public function testSettingCustomErrorMessage()
88
-    {
88
+	{
89 89
 		
90 90
 		$fv = new FormValidation();
91 91
 		$fv->setData(array('foo' => ''));
@@ -103,20 +103,20 @@  discard block
 block discarded – undo
103 103
 		
104 104
 		$this->assertFalse($fv->run());
105 105
 		$this->assertContains('custom "bar" message error', $fv->returnErrors());	
106
-    }
106
+	}
107 107
 	
108 108
 	public function testReturnErrorsArray()
109
-    {
109
+	{
110 110
 		$fv = new FormValidation();
111 111
 		$fv->setRule('name', 'name', 'required');
112 112
 		$fv->setData(array('name' => ''));
113 113
 		$this->assertFalse($fv->run());
114 114
 		$this->assertNotEmpty($fv->returnErrors());
115
-    }
115
+	}
116 116
 	
117 117
 	
118 118
 	public function testRequiredRule()
119
-    {
119
+	{
120 120
 		$fv = new FormValidation();
121 121
 		$fv->setRule('name', 'name', 'required');
122 122
 		$fv->setData(array('name' => ''));
@@ -131,5 +131,5 @@  discard block
 block discarded – undo
131 131
 		$fv->setRule('name', 'name', 'required');
132 132
 		$fv->setData(array('name' => 'tony'));
133 133
 		$this->assertTrue($fv->run());
134
-    }
134
+	}
135 135
 }
136 136
\ No newline at end of file
Please login to merge, or discard this patch.
core/common.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 	 * You should have received a copy of the GNU General Public License
23 23
 	 * along with this program; if not, write to the Free Software
24 24
 	 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25
-	*/
25
+	 */
26 26
 
27 27
 	/**
28 28
 	 *  @file common.php
@@ -438,13 +438,13 @@  discard block
 block discarded – undo
438 438
 
439 439
 
440 440
 	/**
441
-	* Function to stringfy PHP variable, useful in debug situation
442
-	*
443
-	* @param mixed $var the variable to stringfy
444
-	* @codeCoverageIgnore
445
-	*
446
-	* @return string the stringfy value
447
-	*/
441
+	 * Function to stringfy PHP variable, useful in debug situation
442
+	 *
443
+	 * @param mixed $var the variable to stringfy
444
+	 * @codeCoverageIgnore
445
+	 *
446
+	 * @return string the stringfy value
447
+	 */
448 448
 	function stringfy_vars($var){
449 449
 		return print_r($var, true);
450 450
 	}
@@ -586,15 +586,15 @@  discard block
 block discarded – undo
586 586
 	}
587 587
 	
588 588
 	/**
589
-	* This function is very useful, it allows to recover the instance of the global controller.
590
-	* Note this function always returns the address of the super instance.
591
-	* For example :
592
-	* $obj = & get_instance();
593
-	* 
594
-	* @codeCoverageIgnore
595
-	*  
596
-	* @return object the instance of the "Controller" class
597
-	*/
589
+	 * This function is very useful, it allows to recover the instance of the global controller.
590
+	 * Note this function always returns the address of the super instance.
591
+	 * For example :
592
+	 * $obj = & get_instance();
593
+	 * 
594
+	 * @codeCoverageIgnore
595
+	 *  
596
+	 * @return object the instance of the "Controller" class
597
+	 */
598 598
 	function & get_instance(){
599 599
 		return Controller::get_instance();
600 600
 	}
Please login to merge, or discard this patch.
core/classes/Lang.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 	 * You should have received a copy of the GNU General Public License
23 23
 	 * along with this program; if not, write to the Free Software
24 24
 	 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25
-	*/
25
+	 */
26 26
 
27 27
 	/**
28 28
 	 * For application languages management
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
 		 * Construct new Lang instance
69 69
 		 */
70 70
 		public function __construct(){
71
-	        $this->logger =& class_loader('Log', 'classes');
72
-	        $this->logger->setLogger('Library::Lang');
71
+			$this->logger =& class_loader('Log', 'classes');
72
+			$this->logger->setLogger('Library::Lang');
73 73
 
74 74
 			$this->default = get_config('default_language', 'en');
75 75
 			$this->logger->debug('Setting the supported languages');
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Indentation   +126 added lines, -126 removed lines patch added patch discarded remove patch
@@ -21,21 +21,21 @@  discard block
 block discarded – undo
21 21
 	 * You should have received a copy of the GNU General Public License
22 22
 	 * along with this program; if not, write to the Free Software
23 23
 	 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24
-	*/
24
+	 */
25 25
 	
26 26
 	error_reporting(E_ALL | E_STRICT);
27 27
 	ini_set('display_errors', 1);
28 28
 
29 29
 	/**
30
-	* the directory separator, under windows it is \ and unix, linux /
31
-	*/
30
+	 * the directory separator, under windows it is \ and unix, linux /
31
+	 */
32 32
 	define('DS', DIRECTORY_SEPARATOR);
33 33
 
34 34
 	/**
35
-	* The root directory of the application.
36
-	*
37
-	* you can place this directory outside of your web directory, for example "/home/your_app", etc.
38
-	*/
35
+	 * The root directory of the application.
36
+	 *
37
+	 * you can place this directory outside of your web directory, for example "/home/your_app", etc.
38
+	 */
39 39
 	define('ROOT_PATH', dirname(realpath(__FILE__)) . DS . '..' . DS);
40 40
 	
41 41
 	//tests dir path
@@ -43,176 +43,176 @@  discard block
 block discarded – undo
43 43
 
44 44
 
45 45
 	/**
46
-	* The path to the directory.
47
-	*
48
-	* That contains your static files (javascript, css, images, etc.)
49
-	* Note: the path must be relative to the file index.php (the front-end controller).
50
-	*/
46
+	 * The path to the directory.
47
+	 *
48
+	 * That contains your static files (javascript, css, images, etc.)
49
+	 * Note: the path must be relative to the file index.php (the front-end controller).
50
+	 */
51 51
 	define('ASSETS_PATH', 'assets/');
52 52
 
53 53
 	/**
54
-	* The path to the directory of your cache files.
55
-	*
56
-	* This feature is available currently for database and views.
57
-	*/
54
+	 * The path to the directory of your cache files.
55
+	 *
56
+	 * This feature is available currently for database and views.
57
+	 */
58 58
 	define('CACHE_PATH', ROOT_PATH . 'cache' . DS);
59 59
 
60 60
 	/**
61
-	* Custom application path for tests 
62
-	*/
61
+	 * Custom application path for tests 
62
+	 */
63 63
 	define('APPS_PATH', TESTS_PATH .'hmvc' . DS);
64 64
 
65 65
 	/**
66
-	* The path to the controller directory of your application.
67
-	*
68
-	* If you already know the MVC architecture you know what a controller means; 
69
-	* it is he who makes the business logic of your application in general.
70
-	*/
66
+	 * The path to the controller directory of your application.
67
+	 *
68
+	 * If you already know the MVC architecture you know what a controller means; 
69
+	 * it is he who makes the business logic of your application in general.
70
+	 */
71 71
 	define('APPS_CONTROLLER_PATH', APPS_PATH . 'controllers' . DS);
72 72
 
73 73
 	/**
74
-	* The path to the directory of your model classes of your application. 
75
-	*
76
-	* If you already know the MVC architecture you know what a model means; 
77
-	* it's the one who interacts with the database, in one word persistent data from your application.
78
-	*/
74
+	 * The path to the directory of your model classes of your application. 
75
+	 *
76
+	 * If you already know the MVC architecture you know what a model means; 
77
+	 * it's the one who interacts with the database, in one word persistent data from your application.
78
+	 */
79 79
 	define('APPS_MODEL_PATH', APPS_PATH . 'models' . DS);
80 80
 
81 81
 	/**
82
-	* The path to the directory of your views.
83
-	*
84
-	* If you already know the MVC architecture you know what a view means, 
85
-	* a view is just a user interface (html page, form, etc.) that is to say 
86
-	* everything displayed in the browser interface, etc.
87
-	*/
82
+	 * The path to the directory of your views.
83
+	 *
84
+	 * If you already know the MVC architecture you know what a view means, 
85
+	 * a view is just a user interface (html page, form, etc.) that is to say 
86
+	 * everything displayed in the browser interface, etc.
87
+	 */
88 88
 	define('APPS_VIEWS_PATH', APPS_PATH . 'views' . DS);
89 89
 
90 90
 	/**
91
-	* The path to the configuration directory.
92
-	*
93
-	* That contains most of the configuration files for your 
94
-	* application (database, class loading file, functions, etc.)
95
-	*/
91
+	 * The path to the configuration directory.
92
+	 *
93
+	 * That contains most of the configuration files for your 
94
+	 * application (database, class loading file, functions, etc.)
95
+	 */
96 96
 	define('CONFIG_PATH', ROOT_PATH . 'config' . DS);
97 97
 
98 98
 	/** 
99
-	* The core directory
100
-	*
101
-	* It is recommended to put this folder out of the web directory of your server and 
102
-	* you should not change its content because in case of update you could lose the modified files.
103
-	*/
99
+	 * The core directory
100
+	 *
101
+	 * It is recommended to put this folder out of the web directory of your server and 
102
+	 * you should not change its content because in case of update you could lose the modified files.
103
+	 */
104 104
 	define('CORE_PATH', ROOT_PATH . 'core' . DS);
105 105
 	
106 106
 	/**
107
-	* The path to the directory of core classes that used by the system.
108
-	*
109
-	* It contains PHP classes that are used by the framework internally.
110
-	*/
107
+	 * The path to the directory of core classes that used by the system.
108
+	 *
109
+	 * It contains PHP classes that are used by the framework internally.
110
+	 */
111 111
 	define('CORE_CLASSES_PATH', CORE_PATH . 'classes' . DS);
112 112
 	
113 113
 	/**
114
-	* The path to the directory of core classes for the cache used by the system.
115
-	*
116
-	* It contains PHP classes for the cache drivers.
117
-	*/
114
+	 * The path to the directory of core classes for the cache used by the system.
115
+	 *
116
+	 * It contains PHP classes for the cache drivers.
117
+	 */
118 118
 	define('CORE_CLASSES_CACHE_PATH', CORE_CLASSES_PATH . 'cache' . DS);
119 119
 	
120 120
 	/**
121
-	* The path to the directory of core classes for the model used by the system.
122
-	*
123
-	* It contains PHP classes for the models.
124
-	*/
121
+	 * The path to the directory of core classes for the model used by the system.
122
+	 *
123
+	 * It contains PHP classes for the models.
124
+	 */
125 125
 	define('CORE_CLASSES_MODEL_PATH', CORE_CLASSES_PATH . 'model' . DS);
126 126
 
127 127
 	/**
128
-	* The path to the directory of functions or helper systems.
129
-	*
130
-	* It contains PHP functions that perform a particular task: character string processing, URL, etc.
131
-	*/
128
+	 * The path to the directory of functions or helper systems.
129
+	 *
130
+	 * It contains PHP functions that perform a particular task: character string processing, URL, etc.
131
+	 */
132 132
 	define('CORE_FUNCTIONS_PATH', CORE_PATH . 'functions' . DS);
133 133
 
134 134
 	/**
135
-	* The path to the core directory of languages files. 
136
-	*
137
-	*/
135
+	 * The path to the core directory of languages files. 
136
+	 *
137
+	 */
138 138
 	define('CORE_LANG_PATH', CORE_PATH . 'lang' . DS);
139 139
 
140 140
 	/**
141
-	* The path to the system library directory.
142
-	*
143
-	* Which contains the libraries most often used in your web application, as for the 
144
-	* core directory it is advisable to put it out of the root directory of your application.
145
-	*/
141
+	 * The path to the system library directory.
142
+	 *
143
+	 * Which contains the libraries most often used in your web application, as for the 
144
+	 * core directory it is advisable to put it out of the root directory of your application.
145
+	 */
146 146
 	define('CORE_LIBRARY_PATH', CORE_PATH . 'libraries' . DS);
147 147
 
148 148
 	/**
149
-	* The path to the system view directory.
150
-	*
151
-	* That contains the views used for the system, such as error messages, and so on.
152
-	*/
149
+	 * The path to the system view directory.
150
+	 *
151
+	 * That contains the views used for the system, such as error messages, and so on.
152
+	 */
153 153
 	define('CORE_VIEWS_PATH', CORE_PATH . 'views' . DS);
154 154
 	
155 155
 	/**
156
-	* The path to the directory of your PHP personal functions or helper.
157
-	*
158
-	* It contains your PHP functions that perform a particular task: utilities, etc.
159
-	* Note: Do not put your personal functions or helpers in the system functions directory, 
160
-	* because if you update the system you may lose them.
161
-	*/
156
+	 * The path to the directory of your PHP personal functions or helper.
157
+	 *
158
+	 * It contains your PHP functions that perform a particular task: utilities, etc.
159
+	 * Note: Do not put your personal functions or helpers in the system functions directory, 
160
+	 * because if you update the system you may lose them.
161
+	 */
162 162
 	define('FUNCTIONS_PATH', ROOT_PATH . 'functions' . DS);
163 163
 
164 164
 	/**
165
-	* The path to the app directory of personal language. 
166
-	*
167
-	* This feature is not yet available. 
168
-	* You can help us do this if you are nice or wish to see the developed framework.
169
-	*/
165
+	 * The path to the app directory of personal language. 
166
+	 *
167
+	 * This feature is not yet available. 
168
+	 * You can help us do this if you are nice or wish to see the developed framework.
169
+	 */
170 170
 	define('APP_LANG_PATH', ROOT_PATH . 'lang' . DS);
171 171
 
172 172
 	/**
173
-	* The path to the directory of your personal libraries
174
-	*
175
-	* It contains your PHP classes, package, etc.
176
-	* Note: you should not put your personal libraries in the system library directory, 
177
-	* because it is recalled in case of updating the system you might have surprises.
178
-	*/
173
+	 * The path to the directory of your personal libraries
174
+	 *
175
+	 * It contains your PHP classes, package, etc.
176
+	 * Note: you should not put your personal libraries in the system library directory, 
177
+	 * because it is recalled in case of updating the system you might have surprises.
178
+	 */
179 179
 	define('LIBRARY_PATH', ROOT_PATH . 'libraries' . DS);
180 180
 
181 181
 	/**
182
-	* The path to the directory that contains the log files.
183
-	*
184
-	* Note: This directory must be available in writing and if possible must have as owner the user who launches your web server, 
185
-	* under unix or linux most often with the apache web server it is "www-data" or "httpd" even "nobody" for more
186
-	* details see the documentation of your web server.
187
-	* Example for Unix or linux with apache web server:
188
-	* # chmod -R 700 /path/to/your/logs/directory/
189
-	* # chown -R www-data:www-data /path/to/your/logs/directory/
190
-	*/
182
+	 * The path to the directory that contains the log files.
183
+	 *
184
+	 * Note: This directory must be available in writing and if possible must have as owner the user who launches your web server, 
185
+	 * under unix or linux most often with the apache web server it is "www-data" or "httpd" even "nobody" for more
186
+	 * details see the documentation of your web server.
187
+	 * Example for Unix or linux with apache web server:
188
+	 * # chmod -R 700 /path/to/your/logs/directory/
189
+	 * # chown -R www-data:www-data /path/to/your/logs/directory/
190
+	 */
191 191
 	define('LOGS_PATH', ROOT_PATH . 'logs' . DS);
192 192
 
193 193
 	/**
194
-	* The path to the modules directory. 
195
-	*
196
-	* It contains your modules used files (config, controllers, libraries, etc.) that is to say which contains your files of the modules, 
197
-	* in HMVC architecture (hierichical, controllers, models, views).
198
-	*/
194
+	 * The path to the modules directory. 
195
+	 *
196
+	 * It contains your modules used files (config, controllers, libraries, etc.) that is to say which contains your files of the modules, 
197
+	 * in HMVC architecture (hierichical, controllers, models, views).
198
+	 */
199 199
 	define('MODULE_PATH', dirname(realpath(__FILE__)) . DS .'hmvc' . DS . 'modules' . DS);
200 200
 
201 201
 	/**
202
-	* The path to the directory of sources external to your application.
203
-	*
204
-	* If you have already used "composer" you know what that means.
205
-	*/
202
+	 * The path to the directory of sources external to your application.
203
+	 *
204
+	 * If you have already used "composer" you know what that means.
205
+	 */
206 206
 	define('VENDOR_PATH', ROOT_PATH . 'vendor' . DS);
207 207
 
208 208
 	/**
209
-	* The front controller of your application.
210
-	*
211
-	* "index.php" it is through this file that all the requests come, there is a possibility to hidden it in the url of 
212
-	* your application by using the rewrite module URL of your web server .
213
-	* For example, under apache web server, there is a configuration example file that is located at the root 
214
-	* of your framework folder : "htaccess.txt" rename it to ".htaccess".
215
-	*/
209
+	 * The front controller of your application.
210
+	 *
211
+	 * "index.php" it is through this file that all the requests come, there is a possibility to hidden it in the url of 
212
+	 * your application by using the rewrite module URL of your web server .
213
+	 * For example, under apache web server, there is a configuration example file that is located at the root 
214
+	 * of your framework folder : "htaccess.txt" rename it to ".htaccess".
215
+	 */
216 216
 	define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
217 217
 	
218 218
 	/**
@@ -221,14 +221,14 @@  discard block
 block discarded – undo
221 221
 	define('IS_CLI', stripos('cli', php_sapi_name()) !== false);
222 222
 
223 223
 	/**
224
-	* The environment of your application (production, test, development). 
225
-	*
226
-	* if your application is still in development you use the value "development" 
227
-	* so you will have the display of the error messages, etc. 
228
-	* Once you finish the development of your application that is to put it online 
229
-	* you change this value to "production" or "testing", in this case there will be deactivation of error messages, 
230
-	* the loading of the system, will be fast.
231
-	*/
224
+	 * The environment of your application (production, test, development). 
225
+	 *
226
+	 * if your application is still in development you use the value "development" 
227
+	 * so you will have the display of the error messages, etc. 
228
+	 * Once you finish the development of your application that is to put it online 
229
+	 * you change this value to "production" or "testing", in this case there will be deactivation of error messages, 
230
+	 * the loading of the system, will be fast.
231
+	 */
232 232
 	define('ENVIRONMENT', 'testing');
233 233
 	
234 234
 	
@@ -259,13 +259,13 @@  discard block
 block discarded – undo
259 259
 	require_once  'include/testsUtil.php';
260 260
 	
261 261
 	/**
262
-	* Setting of the PHP error message handling function
263
-	*/
262
+	 * Setting of the PHP error message handling function
263
+	 */
264 264
 	set_error_handler('php_error_handler');
265 265
 
266 266
 	/**
267
-	* Setting of the PHP error exception handling function
268
-	*/
267
+	 * Setting of the PHP error exception handling function
268
+	 */
269 269
 	set_exception_handler('php_exception_handler');
270 270
 
271 271
 	/**
Please login to merge, or discard this patch.