@@ -121,7 +121,7 @@ |
||
121 | 121 | if ((double) $responseTime >= 1.000000) { |
122 | 122 | $this->logger->warning( |
123 | 123 | 'High response time while processing database query [' . $this->query . '].' |
124 | - . 'The response time is [' .$responseTime . '] sec.' |
|
124 | + . 'The response time is [' . $responseTime . '] sec.' |
|
125 | 125 | ); |
126 | 126 | } |
127 | 127 |
@@ -30,10 +30,10 @@ |
||
30 | 30 | |
31 | 31 | class DatabaseQueryRunner extends BaseClass { |
32 | 32 | |
33 | - /** |
|
34 | - * The DatabaseConnection instance |
|
35 | - * @var object |
|
36 | - */ |
|
33 | + /** |
|
34 | + * The DatabaseConnection instance |
|
35 | + * @var object |
|
36 | + */ |
|
37 | 37 | private $connection = null; |
38 | 38 | |
39 | 39 | /** |
@@ -234,10 +234,10 @@ discard block |
||
234 | 234 | return $this->removeVars($_ENV, $key); |
235 | 235 | } |
236 | 236 | |
237 | - /** |
|
238 | - * Get the value from $GLOBALS for given key. if the key is empty will return all values |
|
239 | - * @see GlobalVar::getVars |
|
240 | - */ |
|
237 | + /** |
|
238 | + * Get the value from $GLOBALS for given key. if the key is empty will return all values |
|
239 | + * @see GlobalVar::getVars |
|
240 | + */ |
|
241 | 241 | public function globals($key = null, $xss = true) { |
242 | 242 | return $this->getVars($GLOBALS, $key, $xss); |
243 | 243 | } |
@@ -259,16 +259,16 @@ discard block |
||
259 | 259 | } |
260 | 260 | |
261 | 261 | |
262 | - /** |
|
263 | - * Set the value for $_GET, $_POST, $_SERVER etc. if the key is an array will |
|
264 | - * set the current super variable value by this. |
|
265 | - * @param array $var the super global variable to use, can be "$_POST", "$_GET", etc. |
|
266 | - * @param string|array $key the item key to be set or array if need set the current global variable |
|
267 | - * by this value |
|
268 | - * @param mixed $value the value to set if $key is not an array |
|
269 | - * |
|
270 | - * @return object the current instance |
|
271 | - */ |
|
262 | + /** |
|
263 | + * Set the value for $_GET, $_POST, $_SERVER etc. if the key is an array will |
|
264 | + * set the current super variable value by this. |
|
265 | + * @param array $var the super global variable to use, can be "$_POST", "$_GET", etc. |
|
266 | + * @param string|array $key the item key to be set or array if need set the current global variable |
|
267 | + * by this value |
|
268 | + * @param mixed $value the value to set if $key is not an array |
|
269 | + * |
|
270 | + * @return object the current instance |
|
271 | + */ |
|
272 | 272 | protected function setVars(&$var, $key, $value = null) { |
273 | 273 | if (is_array($key)) { |
274 | 274 | //set all |
@@ -207,10 +207,10 @@ |
||
207 | 207 | return $this; |
208 | 208 | } |
209 | 209 | |
210 | - /** |
|
211 | - * Return the instance of session. |
|
212 | - * @return object the session instance |
|
213 | - */ |
|
210 | + /** |
|
211 | + * Return the instance of session. |
|
212 | + * @return object the session instance |
|
213 | + */ |
|
214 | 214 | public function getSession() { |
215 | 215 | return $this->session; |
216 | 216 | } |
@@ -61,7 +61,7 @@ |
||
61 | 61 | */ |
62 | 62 | public function add($name) { |
63 | 63 | if (in_array($name, $this->list)) { |
64 | - $this->logger->info('The module [' .$name. '] already added skipping.'); |
|
64 | + $this->logger->info('The module [' . $name . '] already added skipping.'); |
|
65 | 65 | return $this; |
66 | 66 | } |
67 | 67 | $this->list[] = $name; |
@@ -58,8 +58,8 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function add($name) { |
60 | 60 | if (in_array($name, $this->list)) { |
61 | - $this->logger->info('The module [' .$name. '] already added skipping.'); |
|
62 | - return $this; |
|
61 | + $this->logger->info('The module [' .$name. '] already added skipping.'); |
|
62 | + return $this; |
|
63 | 63 | } |
64 | 64 | $this->list[] = $name; |
65 | 65 | return $this; |
@@ -90,10 +90,10 @@ discard block |
||
90 | 90 | $this->list = array(); |
91 | 91 | } |
92 | 92 | |
93 | - /** |
|
94 | - * Get the list of module loaded |
|
95 | - * @return array the module list |
|
96 | - */ |
|
93 | + /** |
|
94 | + * Get the list of module loaded |
|
95 | + * @return array the module list |
|
96 | + */ |
|
97 | 97 | public function getModuleList() { |
98 | 98 | return $this->list; |
99 | 99 | } |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | $this->logger->debug('Check if the application contains the modules ...'); |
241 | 241 | $dirList = glob(MODULE_PATH . '*', GLOB_ONLYDIR); |
242 | 242 | if ($dirList !== false) { |
243 | - $this->list = array_map('basename', $dirList); |
|
243 | + $this->list = array_map('basename', $dirList); |
|
244 | 244 | } |
245 | 245 | if (!empty($this->list)) { |
246 | 246 | $this->logger->info('The application contains the module below [' . implode(', ', $this->list) . ']'); |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | $filePath = MODULE_PATH . $module . DS . $type . DS . $classFile; |
264 | 264 | if (file_exists($filePath)) { |
265 | 265 | $this->logger->info('Found class [' . $class . '] in module [' . $module . '] ' |
266 | - . 'for [' . $type . '] the file path is [' . $filePath . ']'); |
|
266 | + . 'for [' . $type . '] the file path is [' . $filePath . ']'); |
|
267 | 267 | return $filePath; |
268 | 268 | } |
269 | 269 | $this->logger->info('Class [' . $class . '] does not exist in the module [' . $module . '] for [' . $type . ']'); |
@@ -98,10 +98,10 @@ |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |
101 | - * This method is used to check the whitelist IP address access |
|
102 | - * |
|
103 | - * @return boolean |
|
104 | - */ |
|
101 | + * This method is used to check the whitelist IP address access |
|
102 | + * |
|
103 | + * @return boolean |
|
104 | + */ |
|
105 | 105 | public function checkWhiteListIpAccess() { |
106 | 106 | $this->logger->debug('Validation of the IP address access ...'); |
107 | 107 | $this->logger->debug('Check if whitelist IP access is enabled in the configuration ...'); |
@@ -32,8 +32,8 @@ |
||
32 | 32 | <p>Required PHP version : <b>PHP >= <?php echo TNH_MIN_PHP_VERSION; ?>, PHP < <?php echo TNH_MAX_PHP_VERSION; ?></b></p> |
33 | 33 | <p>Release date : <b><?php echo TNH_RELEASE_DATE; ?></b></p> |
34 | 34 | <hr /> |
35 | - <p>Current controller: <b class = "text-muted label-danger"><?php echo APPS_CONTROLLER_PATH . 'Home.php';?></b> |
|
36 | - <p>Current view: <b class = "text-muted label-danger"><?php echo APPS_VIEWS_PATH . 'home.php';?></b> |
|
35 | + <p>Current controller: <b class = "text-muted label-danger"><?php echo APPS_CONTROLLER_PATH . 'Home.php'; ?></b> |
|
36 | + <p>Current view: <b class = "text-muted label-danger"><?php echo APPS_VIEWS_PATH . 'home.php'; ?></b> |
|
37 | 37 | </div> |
38 | 38 | </div> |
39 | 39 | </div> |
@@ -44,9 +44,9 @@ |
||
44 | 44 | */ |
45 | 45 | class Assets extends BaseClass { |
46 | 46 | |
47 | - /** |
|
48 | - * Construct new instance |
|
49 | - */ |
|
47 | + /** |
|
48 | + * Construct new instance |
|
49 | + */ |
|
50 | 50 | public function __construct() { |
51 | 51 | parent::__construct(); |
52 | 52 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * SOFTWARE. |
29 | 29 | */ |
30 | 30 | |
31 | - class Url extends BaseClass{ |
|
31 | + class Url extends BaseClass { |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Construct new instance |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | * @return string the final path after add suffix if configured |
152 | 152 | * otherwise the same value will be returned |
153 | 153 | */ |
154 | - protected function addSuffixInPath($path){ |
|
154 | + protected function addSuffixInPath($path) { |
|
155 | 155 | $suffix = get_config('url_suffix'); |
156 | 156 | if ($suffix && $path) { |
157 | 157 | if (strpos($path, '?') !== false) { |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | } |
287 | 287 | $filename = $this->encodeUtf8($this->filterOther((string) $filename)); |
288 | 288 | if (empty($data)) { |
289 | - $data = $this->getAttachmentData($path); |
|
289 | + $data = $this->getAttachmentData($path); |
|
290 | 290 | } |
291 | 291 | $this->attachments[] = array( |
292 | 292 | 'path' => $path, |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | $addresses = array(); |
350 | 350 | foreach ($pairs as $name => $email) { |
351 | 351 | if (is_numeric($name)) { |
352 | - $name = null; |
|
352 | + $name = null; |
|
353 | 353 | } |
354 | 354 | $addresses[] = $this->formatHeader($email, $name); |
355 | 355 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * @link http://github.com/eoghanobrien/php-simple-mail |
49 | 49 | */ |
50 | 50 | |
51 | - class Email extends BaseClass{ |
|
51 | + class Email extends BaseClass { |
|
52 | 52 | /** |
53 | 53 | * @var int $wrap |
54 | 54 | */ |