@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | $table_post = Database::get_course_table(TABLE_FORUM_POST); |
22 | 22 | $table_work = Database::get_course_table(TABLE_STUDENT_PUBLICATION); |
23 | 23 | $course_code = Database::escape_string($course_code); |
24 | - $res = Database::query("SELECT COUNT(*) as cant FROM $table_reporte_semanas WHERE course_code = '" . $course_code . "'"); |
|
24 | + $res = Database::query("SELECT COUNT(*) as cant FROM $table_reporte_semanas WHERE course_code = '".$course_code."'"); |
|
25 | 25 | $sqlWeeks = "SELECT semanas FROM $table_semanas_curso WHERE course_code = '$course_code'"; |
26 | 26 | $resWeeks = Database::query($sqlWeeks); |
27 | 27 | $weeks = Database::fetch_object($resWeeks); |
@@ -105,52 +105,52 @@ discard block |
||
105 | 105 | $lineHeaderExport = array(null, null); |
106 | 106 | $lineHeaderExport2 = array(null, ull); |
107 | 107 | while ($rowe = Database::fetch_assoc($resultHeader)) { |
108 | - $lineHeaderExport[] = utf8_decode('Work' . $rowe['week_id']); |
|
109 | - $lineHeaderExport[] = utf8_decode('Forum' . $rowe['week_id']); |
|
108 | + $lineHeaderExport[] = utf8_decode('Work'.$rowe['week_id']); |
|
109 | + $lineHeaderExport[] = utf8_decode('Forum'.$rowe['week_id']); |
|
110 | 110 | //$fila_export_encabezado[] = utf8_decode('Eval'.$rowe['week_id']); |
111 | 111 | //$fila_export_encabezado[] = utf8_decode('PC'.$rowe['week_id']); |
112 | 112 | $lineHeaderExport2[] = utf8_decode($rowe['work_title']); |
113 | 113 | $lineHeaderExport2[] = utf8_decode($rowe['thread_title']); |
114 | 114 | //$fila_export_encabezado2[] = utf8_decode($rowe['eval_title']); |
115 | 115 | //$fila_export_encabezado2[] = utf8_decode($rowe['pc_title']); |
116 | - $fila_export = array('Work' . $rowe['week_id'], 'Forum' . $rowe['week_id'], 'Eval' . $rowe['week_id'], 'PC' . $rowe['week_id']); |
|
116 | + $fila_export = array('Work'.$rowe['week_id'], 'Forum'.$rowe['week_id'], 'Eval'.$rowe['week_id'], 'PC'.$rowe['week_id']); |
|
117 | 117 | if ($rowe['week_id'] > (($page - 1) * 7) && $rowe['week_id'] <= (7 * $page)) { |
118 | 118 | $ids[$rowe['week_id']] = $rowe['id']; |
119 | - $line.='<th> |
|
120 | - <a href="#" onClick="showContent(' . "'tarea" . $rowe['week_id'] . "'" . ');">Work' . $rowe['week_id'] . ' |
|
121 | - <div class="blackboard_hide" id="tarea' . $rowe['week_id'] . '">' . $rowe['work_title'] . '</div> |
|
119 | + $line .= '<th> |
|
120 | + <a href="#" onClick="showContent(' . "'tarea".$rowe['week_id']."'".');">Work'.$rowe['week_id'].' |
|
121 | + <div class="blackboard_hide" id="tarea' . $rowe['week_id'].'">'.$rowe['work_title'].'</div> |
|
122 | 122 | </a></th>'; |
123 | - $line.= '<th> |
|
124 | - <a href="#" onClick="showContent(' . "'foro" . $rowe['week_id'] . "'" . ');">Forum' . $rowe['week_id'] . ' |
|
125 | - <div class="blackboard_hide" id="foro' . $rowe['week_id'] . '">' . $rowe['thread_title'] . '</div> |
|
123 | + $line .= '<th> |
|
124 | + <a href="#" onClick="showContent(' . "'foro".$rowe['week_id']."'".');">Forum'.$rowe['week_id'].' |
|
125 | + <div class="blackboard_hide" id="foro' . $rowe['week_id'].'">'.$rowe['thread_title'].'</div> |
|
126 | 126 | </a> |
127 | 127 | </th>'; |
128 | 128 | } |
129 | 129 | } |
130 | 130 | $tableExport[] = $lineHeaderExport; |
131 | 131 | $tableExport[] = $lineHeaderExport2; |
132 | - $line.= '</tr>'; |
|
132 | + $line .= '</tr>'; |
|
133 | 133 | |
134 | 134 | $html = '<form action="tutor.php" name="semanas" id="semanas" method="POST"> |
135 | 135 | <div class="row"> |
136 | - ' . get_lang('SelectWeeksSpan') . ' |
|
136 | + ' . get_lang('SelectWeeksSpan').' |
|
137 | 137 | <select name="weeksNumber" id="weeksNumber" onChange="submit();"> |
138 | - <option value="7" ' . (($weeksCount == 7) ? 'selected="selected"' : "") . '>7 weeks</option> |
|
139 | - <option value="14" ' . (($weeksCount == 14) ? 'selected="selected"' : "") . '>14 weeks</option> |
|
138 | + <option value="7" ' . (($weeksCount == 7) ? 'selected="selected"' : "").'>7 weeks</option> |
|
139 | + <option value="14" ' . (($weeksCount == 14) ? 'selected="selected"' : "").'>14 weeks</option> |
|
140 | 140 | </select>'; |
141 | 141 | |
142 | 142 | |
143 | 143 | if ($weeksCount == 14) { |
144 | - $html .= '<span style="float:right;"><a href="tutor.php?page=' . (($page == 1) ? 2 : 1) . '">' . (($page == 1) ? "Siguiente" : "Anterior") . '</a></span>'; |
|
144 | + $html .= '<span style="float:right;"><a href="tutor.php?page='.(($page == 1) ? 2 : 1).'">'.(($page == 1) ? "Siguiente" : "Anterior").'</a></span>'; |
|
145 | 145 | } |
146 | - $html .= '<span style="float:right;"><a href="' . api_get_self() . '?action=export' . $get_parameter . $get_parameter2 . '">' . Display::return_icon('export_excel.png', get_lang('Export'), '', '32') . '</a></span>'; |
|
146 | + $html .= '<span style="float:right;"><a href="'.api_get_self().'?action=export'.$get_parameter.$get_parameter2.'">'.Display::return_icon('export_excel.png', get_lang('Export'), '', '32').'</a></span>'; |
|
147 | 147 | |
148 | 148 | $html .= '</form>'; |
149 | 149 | $html .= '<table class="reports">'; |
150 | 150 | $html .= '<tr> |
151 | 151 | <th ></th>'; |
152 | 152 | for ($i = (7 * $page - 6); $i <= $page * 7; $i++) { |
153 | - $html .= '<th colspan="2">Week ' . $i . '<a href="assign_tickets.php?id=' . $ids[$i] . '" class="ajax">' . Display::return_icon('edit.png', get_lang('Edit'), array('width' => '16', 'height' => '16'), 22) . '</a></th>'; |
|
153 | + $html .= '<th colspan="2">Week '.$i.'<a href="assign_tickets.php?id='.$ids[$i].'" class="ajax">'.Display::return_icon('edit.png', get_lang('Edit'), array('width' => '16', 'height' => '16'), 22).'</a></th>'; |
|
154 | 154 | } |
155 | 155 | $html .= '</tr>'; |
156 | 156 | $html .= $line; |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | if ($row['week_id'] > (($page - 1) * 7) && $row['week_id'] <= (7 * $page)) { |
168 | 168 | $results[$row['username']][$row['week_id']] = $row; |
169 | 169 | if (count($results[$row['username']]) == 7) { |
170 | - $html.= showStudentResult($results[$row['username']], $page); |
|
170 | + $html .= showStudentResult($results[$row['username']], $page); |
|
171 | 171 | } |
172 | 172 | } |
173 | 173 | if (count($resultadose[$row['username']]) == $weeksCount) { |
@@ -190,12 +190,12 @@ discard block |
||
190 | 190 | $inicio = (7 * $pagina - 6); |
191 | 191 | $fila = '<tr>'; |
192 | 192 | |
193 | - $fila.= '<td><a href="' . api_get_path(WEB_CODE_PATH) . 'user/userInfo.php?' . api_get_cidreq() . '&uInfo=' . $datos[$inicio]['user_id'] . '">' . $datos[$inicio]['username'] . '</a></td>'; |
|
193 | + $fila .= '<td><a href="'.api_get_path(WEB_CODE_PATH).'user/userInfo.php?'.api_get_cidreq().'&uInfo='.$datos[$inicio]['user_id'].'">'.$datos[$inicio]['username'].'</a></td>'; |
|
194 | 194 | foreach ($datos as $dato) { |
195 | - $fila.= '<td align="center">' . (($dato['work_ok'] == 1) ? Display::return_icon('check.png') : Display::return_icon('aspa.png')) . '</td>'; |
|
196 | - $fila.= '<td align="center">' . (($dato['thread_ok'] == 1) ? Display::return_icon('check.png') : Display::return_icon('aspa.png')) . '</td>'; |
|
195 | + $fila .= '<td align="center">'.(($dato['work_ok'] == 1) ? Display::return_icon('check.png') : Display::return_icon('aspa.png')).'</td>'; |
|
196 | + $fila .= '<td align="center">'.(($dato['thread_ok'] == 1) ? Display::return_icon('check.png') : Display::return_icon('aspa.png')).'</td>'; |
|
197 | 197 | } |
198 | - $fila.= '</tr>'; |
|
198 | + $fila .= '</tr>'; |
|
199 | 199 | return $fila; |
200 | 200 | } |
201 | 201 |
@@ -53,7 +53,7 @@ |
||
53 | 53 | $strings['SrcEmail'] = "Email"; |
54 | 54 | $strings['SrcPhone'] = "Teléfono"; |
55 | 55 | $strings['SrcPresential'] = "Presencial"; |
56 | -$strings['TicketAssignedMsg'] = "<p>Estimado(a) %s </p><p>Se le ha sido asignado el <a href=\"%s\">ticket %s</a></p><p>Mensaje enviado desde el sistema de ticket.</p>"; |
|
56 | +$strings['TicketAssignedMsg'] = "<p>Estimado(a) %s </p><p>Se le ha sido asignado el <a href=\"%s\">ticket %s</a></p><p>Mensaje enviado desde el sistema de ticket.</p>"; |
|
57 | 57 | $strings['TicketAssignX'] = "[TICKETS] Asignación de Ticket #%s "; |
58 | 58 | $strings['AreYouSureYouWantToCloseTheTicket'] = "¿Está seguro que quiere cerrar el ticket?"; |
59 | 59 | $strings['AreYouSureYouWantToUnassignTheTicket'] = "¿Está seguro que quiere desasignarse el ticket?"; |
@@ -38,7 +38,7 @@ |
||
38 | 38 | define('CAT_FORO', 'FOR'); |
39 | 39 | define('CAT_ANNU', 'ANN'); |
40 | 40 | |
41 | -require_once __DIR__ . '/../../main/inc/global.inc.php'; |
|
41 | +require_once __DIR__.'/../../main/inc/global.inc.php'; |
|
42 | 42 | |
43 | -require_once api_get_path(PLUGIN_PATH) . PLUGIN_NAME . '/src/ticket_plugin.class.php'; |
|
44 | -require_once api_get_path(PLUGIN_PATH) . PLUGIN_NAME . '/src/ticket.class.php'; |
|
43 | +require_once api_get_path(PLUGIN_PATH).PLUGIN_NAME.'/src/ticket_plugin.class.php'; |
|
44 | +require_once api_get_path(PLUGIN_PATH).PLUGIN_NAME.'/src/ticket.class.php'; |
@@ -14,8 +14,8 @@ |
||
14 | 14 | "japanese" => "ja_JP", |
15 | 15 | "danish" => "da_DK", |
16 | 16 | ); |
17 | -if(!empty($_SESSION['user_language_choice']) && !empty($convert_lang_to_code[$_SESSION['user_language_choice']])){ |
|
17 | +if (!empty($_SESSION['user_language_choice']) && !empty($convert_lang_to_code[$_SESSION['user_language_choice']])) { |
|
18 | 18 | $code = $convert_lang_to_code[$_SESSION['user_language_choice']]; |
19 | - $locale = setlocale(LC_TIME,$code); |
|
19 | + $locale = setlocale(LC_TIME, $code); |
|
20 | 20 | } |
21 | 21 | $date = strftime('%c'); |
@@ -9,10 +9,10 @@ |
||
9 | 9 | * Plugin details (must be present) |
10 | 10 | */ |
11 | 11 | //the plugin title |
12 | -$plugin_info['title']='Date'; |
|
12 | +$plugin_info['title'] = 'Date'; |
|
13 | 13 | //the comments that go with the plugin |
14 | -$plugin_info['comment']="Multinational date display"; |
|
14 | +$plugin_info['comment'] = "Multinational date display"; |
|
15 | 15 | //the plugin version |
16 | -$plugin_info['version']='1.0'; |
|
16 | +$plugin_info['version'] = '1.0'; |
|
17 | 17 | //the plugin author |
18 | -$plugin_info['author']='Yannick Warnier'; |
|
18 | +$plugin_info['author'] = 'Yannick Warnier'; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $list = $this->get_blacklist_options(); |
34 | 34 | foreach ($list as $k => $v) { |
35 | 35 | $this->course_settings[] = |
36 | - array('group'=> 'olpc_peru_filter_filter', 'name' => $k, 'type' => 'checkbox', 'init_value' => $v); |
|
36 | + array('group'=> 'olpc_peru_filter_filter', 'name' => $k, 'type' => 'checkbox', 'init_value' => $v); |
|
37 | 37 | } |
38 | 38 | require_once dirname(__FILE__).'/../config.php'; |
39 | 39 | if (!empty($blacklist_enabled_file)) { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | } |
66 | 66 | |
67 | 67 | function course_settings_updated($values = array()) { |
68 | - if (!is_array($values) or count($values)==0) { |
|
68 | + if (!is_array($values) or count($values) == 0) { |
|
69 | 69 | return false; |
70 | 70 | } |
71 | 71 | $this->set_blacklist_options($values['olpc_peru_filter_filter']); |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | } |
87 | 87 | $list = scandir($this->blacklists_dir); |
88 | 88 | foreach ($list as $file) { |
89 | - if (substr($file,0,1) == '.' or $file == 'custom_blacklist' or is_dir($this->blacklists_dir.'/'.$file)) { |
|
89 | + if (substr($file, 0, 1) == '.' or $file == 'custom_blacklist' or is_dir($this->blacklists_dir.'/'.$file)) { |
|
90 | 90 | continue; |
91 | 91 | } |
92 | 92 | $categories[] = $file; |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $new_blacklist .= $k."\n"; |
122 | 122 | } |
123 | 123 | } |
124 | - $r = @file_put_contents($this->blacklist_enabled_file,$new_blacklist); |
|
124 | + $r = @file_put_contents($this->blacklist_enabled_file, $new_blacklist); |
|
125 | 125 | //todo check the value or $r in $php_errormsg |
126 | 126 | return true; |
127 | 127 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | * @package chamilo.plugin.clockworksms |
8 | 8 | * @author Imanol Losada <[email protected]> |
9 | 9 | */ |
10 | -require_once __DIR__ . '/../../main/inc/global.inc.php'; |
|
10 | +require_once __DIR__.'/../../main/inc/global.inc.php'; |
|
11 | 11 | |
12 | 12 | require_once 'lib/clockworksms.lib.php'; |
13 | 13 | require_once 'vendor/clockworksms_api.php'; |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * @version 1.3.0 |
10 | 10 | */ |
11 | 11 | |
12 | -if ( !class_exists('ClockworkException') ) { |
|
12 | +if (!class_exists('ClockworkException')) { |
|
13 | 13 | require_once('exception.php'); |
14 | 14 | } |
15 | 15 | |
@@ -24,25 +24,25 @@ discard block |
||
24 | 24 | /* |
25 | 25 | * Version of this class |
26 | 26 | */ |
27 | - const VERSION = '1.3.1'; |
|
27 | + const VERSION = '1.3.1'; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * All Clockwork API calls start with BASE_URL |
31 | 31 | * @author Martin Steel |
32 | 32 | */ |
33 | - const API_BASE_URL = 'api.clockworksms.com/xml/'; |
|
33 | + const API_BASE_URL = 'api.clockworksms.com/xml/'; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * string to append to API_BASE_URL to check authentication |
37 | 37 | * @author Martin Steel |
38 | 38 | */ |
39 | - const API_AUTH_METHOD = 'authenticate'; |
|
39 | + const API_AUTH_METHOD = 'authenticate'; |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * string to append to API_BASE_URL for sending SMS |
43 | 43 | * @author Martin Steel |
44 | 44 | */ |
45 | - const API_SMS_METHOD = 'sms'; |
|
45 | + const API_SMS_METHOD = 'sms'; |
|
46 | 46 | |
47 | 47 | /** |
48 | 48 | * string to append to API_BASE_URL for checking message credit |
@@ -258,13 +258,13 @@ discard block |
||
258 | 258 | $err_no = null; |
259 | 259 | $err_desc = null; |
260 | 260 | |
261 | - foreach($resp_doc->documentElement->childNodes AS $doc_child) { |
|
262 | - switch(strtolower($doc_child->nodeName)) { |
|
261 | + foreach ($resp_doc->documentElement->childNodes AS $doc_child) { |
|
262 | + switch (strtolower($doc_child->nodeName)) { |
|
263 | 263 | case 'sms_resp': |
264 | 264 | $resp = array(); |
265 | 265 | $wrapper_id = null; |
266 | - foreach($doc_child->childNodes AS $resp_node) { |
|
267 | - switch(strtolower($resp_node->nodeName)) { |
|
266 | + foreach ($doc_child->childNodes AS $resp_node) { |
|
267 | + switch (strtolower($resp_node->nodeName)) { |
|
268 | 268 | case 'messageid': |
269 | 269 | $resp['id'] = $resp_node->nodeValue; |
270 | 270 | break; |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | break; |
280 | 280 | } |
281 | 281 | } |
282 | - if( array_key_exists('error_code', $resp ) ) |
|
282 | + if (array_key_exists('error_code', $resp)) |
|
283 | 283 | { |
284 | 284 | $resp['success'] = 0; |
285 | 285 | } else { |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | throw new ClockworkException($err_desc, $err_no); |
416 | 416 | } |
417 | 417 | |
418 | - return array( 'symbol' => $symbol, 'balance' => $balance, 'code' => $code ); |
|
418 | + return array('symbol' => $symbol, 'balance' => $balance, 'code' => $code); |
|
419 | 419 | } |
420 | 420 | |
421 | 421 | /** |
@@ -480,14 +480,14 @@ discard block |
||
480 | 480 | $this->logXML("API $method Request XML", $data); |
481 | 481 | } |
482 | 482 | |
483 | - if( isset( $this->ssl ) ) { |
|
483 | + if (isset($this->ssl)) { |
|
484 | 484 | $ssl = $this->ssl; |
485 | 485 | } else { |
486 | 486 | $ssl = $this->sslSupport(); |
487 | 487 | } |
488 | 488 | |
489 | 489 | $url = $ssl ? 'https://' : 'http://'; |
490 | - $url .= self::API_BASE_URL . $method; |
|
490 | + $url .= self::API_BASE_URL.$method; |
|
491 | 491 | |
492 | 492 | $response = $this->xmlPost($url, $data); |
493 | 493 | |
@@ -509,12 +509,12 @@ discard block |
||
509 | 509 | * @author Martin Steel |
510 | 510 | */ |
511 | 511 | protected function xmlPost($url, $data) { |
512 | - if(extension_loaded('curl')) { |
|
512 | + if (extension_loaded('curl')) { |
|
513 | 513 | $ch = curl_init($url); |
514 | 514 | curl_setopt($ch, CURLOPT_POST, 1); |
515 | 515 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
516 | 516 | curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: text/xml")); |
517 | - curl_setopt($ch, CURLOPT_USERAGENT, 'Clockwork PHP Wrapper/1.0' . self::VERSION); |
|
517 | + curl_setopt($ch, CURLOPT_USERAGENT, 'Clockwork PHP Wrapper/1.0'.self::VERSION); |
|
518 | 518 | curl_setopt($ch, CURLOPT_POSTFIELDS, $data); |
519 | 519 | if (isset($this->proxy_host) && isset($this->proxy_port)) { |
520 | 520 | curl_setopt($ch, CURLOPT_PROXY, $this->proxy_host); |
@@ -525,9 +525,9 @@ discard block |
||
525 | 525 | $info = curl_getinfo($ch); |
526 | 526 | |
527 | 527 | if ($response === false || $info['http_code'] != 200) { |
528 | - throw new Exception('HTTP Error calling Clockwork API - HTTP Status: ' . $info['http_code'] . ' - cURL Erorr: ' . curl_error($ch)); |
|
528 | + throw new Exception('HTTP Error calling Clockwork API - HTTP Status: '.$info['http_code'].' - cURL Erorr: '.curl_error($ch)); |
|
529 | 529 | } elseif (curl_errno($ch) > 0) { |
530 | - throw new Exception('HTTP Error calling Clockwork API - cURL Error: ' . curl_error($ch)); |
|
530 | + throw new Exception('HTTP Error calling Clockwork API - cURL Error: '.curl_error($ch)); |
|
531 | 531 | } |
532 | 532 | |
533 | 533 | curl_close($ch); |
@@ -536,31 +536,31 @@ discard block |
||
536 | 536 | } elseif (function_exists('stream_get_contents')) { |
537 | 537 | // Enable error Track Errors |
538 | 538 | $track = ini_get('track_errors'); |
539 | - ini_set('track_errors',true); |
|
539 | + ini_set('track_errors', true); |
|
540 | 540 | |
541 | 541 | $params = array('http' => array( |
542 | 542 | 'method' => 'POST', |
543 | - 'header' => "Content-Type: text/xml\r\nUser-Agent: mediaburst PHP Wrapper/" . self::VERSION . "\r\n", |
|
543 | + 'header' => "Content-Type: text/xml\r\nUser-Agent: mediaburst PHP Wrapper/".self::VERSION."\r\n", |
|
544 | 544 | 'content' => $data |
545 | 545 | )); |
546 | 546 | |
547 | 547 | if (isset($this->proxy_host) && isset($this->proxy_port)) { |
548 | - $params['http']['proxy'] = 'tcp://'.$this->proxy_host . ':' . $this->proxy_port; |
|
548 | + $params['http']['proxy'] = 'tcp://'.$this->proxy_host.':'.$this->proxy_port; |
|
549 | 549 | $params['http']['request_fulluri'] = True; |
550 | 550 | } |
551 | 551 | |
552 | 552 | $ctx = stream_context_create($params); |
553 | 553 | $fp = @fopen($url, 'rb', false, $ctx); |
554 | 554 | if (!$fp) { |
555 | - ini_set('track_errors',$track); |
|
555 | + ini_set('track_errors', $track); |
|
556 | 556 | throw new Exception("HTTP Error calling Clockwork API - fopen Error: $php_errormsg"); |
557 | 557 | } |
558 | 558 | $response = @stream_get_contents($fp); |
559 | 559 | if ($response === false) { |
560 | - ini_set('track_errors',$track); |
|
560 | + ini_set('track_errors', $track); |
|
561 | 561 | throw new Exception("HTTP Error calling Clockwork API - stream Error: $php_errormsg"); |
562 | 562 | } |
563 | - ini_set('track_errors',$track); |
|
563 | + ini_set('track_errors', $track); |
|
564 | 564 | return $response; |
565 | 565 | } else { |
566 | 566 | throw new Exception("Clockwork requires PHP5 with cURL or HTTP stream support"); |
@@ -624,7 +624,7 @@ discard block |
||
624 | 624 | * @author Martin Steel |
625 | 625 | */ |
626 | 626 | protected function is_assoc($array) { |
627 | - return (bool)count(array_filter(array_keys($array), 'is_string')); |
|
627 | + return (bool) count(array_filter(array_keys($array), 'is_string')); |
|
628 | 628 | } |
629 | 629 | |
630 | 630 | /** |
@@ -637,7 +637,7 @@ discard block |
||
637 | 637 | * @todo Take an optional country code and check that the number starts with it |
638 | 638 | */ |
639 | 639 | public static function is_valid_msisdn($val) { |
640 | - return preg_match( '/^[1-9][0-9]{7,12}$/', $val ); |
|
640 | + return preg_match('/^[1-9][0-9]{7,12}$/', $val); |
|
641 | 641 | } |
642 | 642 | |
643 | 643 | } |
@@ -20,8 +20,8 @@ |
||
20 | 20 | */ |
21 | 21 | class ClockworkException extends Exception { |
22 | 22 | |
23 | - public function __construct( $message, $code = 0 ) { |
|
23 | + public function __construct($message, $code = 0) { |
|
24 | 24 | // make sure everything is assigned properly |
25 | - parent::__construct( $message, $code ); |
|
25 | + parent::__construct($message, $code); |
|
26 | 26 | } |
27 | 27 | } |