@@ -22,7 +22,7 @@ |
||
| 22 | 22 | |
| 23 | 23 | // Heading |
| 24 | 24 | $_['heading_title'] = 'Featured'; |
| 25 | -$_['text_views'] = 'Reviews:'; |
|
| 25 | +$_['text_views'] = 'Reviews:'; |
|
| 26 | 26 | $_['button_more'] = 'more'; |
| 27 | 27 | |
| 28 | 28 | // Text |
@@ -22,5 +22,5 @@ |
||
| 22 | 22 | |
| 23 | 23 | // Heading |
| 24 | 24 | $_['heading_title'] = 'Featured Articles'; |
| 25 | -$_['text_views'] = 'Reviews:'; |
|
| 25 | +$_['text_views'] = 'Reviews:'; |
|
| 26 | 26 | $_['button_more'] = 'more'; |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | |
| 23 | 23 | // Heading |
| 24 | 24 | $_['heading_title'] = 'Last Articles'; |
| 25 | -$_['text_views'] = 'Reviews:'; |
|
| 25 | +$_['text_views'] = 'Reviews:'; |
|
| 26 | 26 | $_['button_more'] = 'more'; |
| 27 | 27 | |
| 28 | 28 | // Text |
@@ -22,4 +22,4 @@ |
||
| 22 | 22 | |
| 23 | 23 | // Text |
| 24 | 24 | $_['text_error'] = 'Information Page Not Found!'; |
| 25 | -$_['text_go_back'] = 'Go back'; |
|
| 25 | +$_['text_go_back'] = 'Go back'; |
|
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $_['text_semi_month'] = 'half-month'; |
| 50 | 50 | $_['text_month'] = 'month'; |
| 51 | 51 | $_['text_year'] = 'year'; |
| 52 | -$_['text_benefits'] = 'Benefits'; |
|
| 52 | +$_['text_benefits'] = 'Benefits'; |
|
| 53 | 53 | $_['text_all_linked_categories'] = 'All linked categories'; |
| 54 | 54 | $_['text_you_save'] = 'You save'; |
| 55 | 55 | $_['text_help_options'] = 'Required options are marked with *'; |
@@ -21,8 +21,8 @@ |
||
| 21 | 21 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 22 | 22 | |
| 23 | 23 | // Heading |
| 24 | -$_['heading_title'] = 'Search'; |
|
| 25 | -$_['heading_tag'] = 'Tag - '; |
|
| 24 | +$_['heading_title'] = 'Search'; |
|
| 25 | +$_['heading_tag'] = 'Tag - '; |
|
| 26 | 26 | |
| 27 | 27 | // Text |
| 28 | 28 | $_['text_search'] = 'Products meeting the search criteria'; |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | $_['text_items'] = 'item(s)'; |
| 25 | 25 | |
| 26 | 26 | $_['text_empty'] = 'Your shopping cart is empty!'; |
| 27 | -$_['text_empty_info'] = 'To buy something in our store, check out our catalog of goods.'; |
|
| 27 | +$_['text_empty_info'] = 'To buy something in our store, check out our catalog of goods.'; |
|
| 28 | 28 | $_['text_cart'] = 'View Cart'; |
| 29 | 29 | $_['text_checkout'] = 'Checkout'; |
| 30 | 30 | $_['text_header_cart'] = 'Shopping cart'; |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | SELECT `data` |
| 66 | 66 | FROM `session` |
| 67 | 67 | WHERE session_id = '" . $this->db->escape($session_id) . "' |
| 68 | - AND expire > '" . $this->db->escape(date('Y-m-d H:i:s')) . "' |
|
| 68 | + AND expire > '" . $this->db->escape(date('Y-m-d H:i:s')) . "' |
|
| 69 | 69 | "); |
| 70 | 70 | |
| 71 | 71 | if ($query->num_rows) { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | expire = '" . $this->db->escape(date('Y-m-d H:i:s', time() + $this->expire)) . "' |
| 84 | 84 | FROM `session` |
| 85 | 85 | WHERE session_id = '" . $this->db->escape($session_id) . "' |
| 86 | - AND expire > '" . $this->db->escape(date('Y-m-d H:i:s')) . "' |
|
| 86 | + AND expire > '" . $this->db->escape(date('Y-m-d H:i:s')) . "' |
|
| 87 | 87 | "); |
| 88 | 88 | |
| 89 | 89 | return true; |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | public function model($route) |
| 37 | 37 | { |
| 38 | 38 | // Sanitize the call |
| 39 | - $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string) $route); |
|
| 39 | + $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route); |
|
| 40 | 40 | |
| 41 | 41 | if (!$this->registry->has('model_' . str_replace(array('/', '-', '.'), array('_', '', ''), $route))) { |
| 42 | 42 | $file = SR_APPLICATION . 'model/' . $route . '.php'; |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | $this->registry->set( |
| 55 | - 'model_' . str_replace(array('/', '-', '.'), array('_', '', ''), (string) $route), |
|
| 55 | + 'model_' . str_replace(array('/', '-', '.'), array('_', '', ''), (string)$route), |
|
| 56 | 56 | $proxy |
| 57 | 57 | ); |
| 58 | 58 | } else { |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | public function controller($route, $data = array()) |
| 65 | 65 | { |
| 66 | 66 | // Sanitize the call |
| 67 | - $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string) $route); |
|
| 67 | + $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route); |
|
| 68 | 68 | |
| 69 | 69 | $output = null; |
| 70 | 70 | |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | $output = null; |
| 82 | 82 | |
| 83 | 83 | // Sanitize the call |
| 84 | - $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string) $route); |
|
| 84 | + $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route); |
|
| 85 | 85 | |
| 86 | 86 | if (!$output) { |
| 87 | 87 | $template = new \Sunrise\Engine\Library\Template( |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | public function library($route) |
| 119 | 119 | { |
| 120 | 120 | // Sanitize the call |
| 121 | - $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string) $route); |
|
| 121 | + $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route); |
|
| 122 | 122 | |
| 123 | 123 | $file = $_SERVER['DOCUMENT_ROOT'] . '/engine/library/' . $route . '.php'; |
| 124 | 124 | $class = str_replace('/', '\\', $route); |
@@ -151,14 +151,14 @@ discard block |
||
| 151 | 151 | |
| 152 | 152 | protected function callback($registry, $route) |
| 153 | 153 | { |
| 154 | - return function ($args) use ($registry, &$route) { |
|
| 154 | + return function($args) use ($registry, &$route) { |
|
| 155 | 155 | static $model = array(); |
| 156 | 156 | |
| 157 | 157 | $output = null; |
| 158 | 158 | |
| 159 | 159 | // Store the model object |
| 160 | 160 | if (!isset($model[$route])) { |
| 161 | - $file = SR_APPLICATION . 'model/' . substr($route, 0, strrpos($route, '/')) . '.php'; |
|
| 161 | + $file = SR_APPLICATION . 'model/' . substr($route, 0, strrpos($route, '/')) . '.php'; |
|
| 162 | 162 | $class = 'Model' . preg_replace('/[^a-zA-Z0-9]/', '', substr($route, 0, strrpos($route, '/'))); |
| 163 | 163 | |
| 164 | 164 | if (is_file($file)) { |