Passed
Pull Request — master (#5599)
by Vitalii
21:21 queued 10:05
created
sites/default/boinc/modules/flag_comment_notify/flag_comment_notify.module 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
   case 'insert':
31 31
     module_load_include('inc', 'drupal_queue', 'drupal_queue');
32 32
     $queue = DrupalQueue::get('flag_comment_notify');
33
-    $subscribed_users = array_keys((array) flag_get_content_flags('node', $a1['nid'], 'subscriptions'));
33
+    $subscribed_users = array_keys((array)flag_get_content_flags('node', $a1['nid'], 'subscriptions'));
34 34
     foreach ($subscribed_users as $uid) {
35
-      $queue->createItem(array('uid' => $uid, 'cid' => (int) $a1['cid']));
35
+      $queue->createItem(array('uid' => $uid, 'cid' => (int)$a1['cid']));
36 36
     }
37 37
     break;
38 38
   default:
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
   );
87 87
   $variables['!topic_name'] = $params['node']->title;
88 88
   $variables['!author'] = $params['author']->name;
89
-  switch($key) {
89
+  switch ($key) {
90 90
   case 'comment_posted':
91 91
     $message['subject'] = bts('!site: comment posted to "!topic_name"', $variables,
92 92
       $language->language, 'boinc:forum-topic-subscription-email-notification');
Please login to merge, or discard this patch.
sites/default/boinc/modules/boincteam/includes/boincteam_forum.forms.inc 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     '#suffix' => '</li>',
87 87
   );
88 88
   $form['form control tabs'] = array(
89
-    '#value' => '<li class="tab">' . l(bts('Cancel', array(), NULL, 'boinc:form-cancel'), strstr($_GET['q'], '/forum/add', TRUE)) . '</li>'
89
+    '#value' => '<li class="tab">'.l(bts('Cancel', array(), NULL, 'boinc:form-cancel'), strstr($_GET['q'], '/forum/add', TRUE)).'</li>'
90 90
   );
91 91
   
92 92
   $form['#redirect'] = "community/teams/{$account->team}";
@@ -152,9 +152,9 @@  discard block
 block discarded – undo
152 152
       updated = UNIX_TIMESTAMP()",
153 153
     $account->team,
154 154
     $values['title'],
155
-    (int) $values['min_time_between_posts'],
156
-    (int) $values['min_total_credit_to_post'],
157
-    (int) $values['min_avg_credit_to_post'],
155
+    (int)$values['min_time_between_posts'],
156
+    (int)$values['min_total_credit_to_post'],
157
+    (int)$values['min_avg_credit_to_post'],
158 158
     ($values['public']) ? 1 : 0,
159 159
     $values['description']
160 160
   );
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
     '#suffix' => '</li>',
244 244
   );
245 245
   $form['form control tabs'] = array(
246
-    '#value' => '<li class="tab">' . l(bts('Cancel', array(), NULL, 'boinc:form-cancel'), strstr($_GET['q'], '/forum', TRUE)) . '</li>'
246
+    '#value' => '<li class="tab">'.l(bts('Cancel', array(), NULL, 'boinc:form-cancel'), strstr($_GET['q'], '/forum', TRUE)).'</li>'
247 247
   );
248 248
   
249 249
   $form['#redirect'] = "community/teams/{$boincteam_forum->nid}";
@@ -305,9 +305,9 @@  discard block
 block discarded – undo
305 305
       updated = UNIX_TIMESTAMP()
306 306
     WHERE tfid='%d'",
307 307
     $values['title'],
308
-    (int) $values['min_time_between_posts'],
309
-    (int) $values['min_total_credit_to_post'],
310
-    (int) $values['min_avg_credit_to_post'],
308
+    (int)$values['min_time_between_posts'],
309
+    (int)$values['min_total_credit_to_post'],
310
+    (int)$values['min_avg_credit_to_post'],
311 311
     ($values['public']) ? 1 : 0,
312 312
     $values['description'],
313 313
     $tfid
Please login to merge, or discard this patch.
html/ops/show_log.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,19 +27,19 @@  discard block
 block discarded – undo
27 27
     exit("Error: couldn't get log_dir from config file.");
28 28
 }
29 29
 
30
-if( isset($_GET["f"]) ){
30
+if (isset($_GET["f"])) {
31 31
     $f = $_GET["f"];
32 32
     $f = escapeshellcmd($f);
33 33
 } else {
34 34
     $f = "";
35 35
 }
36
-if( isset($_GET["s"]) ){
36
+if (isset($_GET["s"])) {
37 37
     $s = $_GET["s"];
38 38
     $s = escapeshellcmd($s);
39 39
 } else {
40 40
     $s = "";
41 41
 }
42
-if( isset($_GET["l"]) ){
42
+if (isset($_GET["l"])) {
43 43
     $l = (int)$_GET["l"];
44 44
 } else {
45 45
     $l = 0;
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 echo 'Hint: Example greps: "RESULT#106876", "26fe99aa_25636_00119.wu_1", "WU#8152", "too many errors", "2003-07-17", "CRITICAL" <br>';
61 61
 
62 62
 if (strlen($f)) {
63
-	$f = "../log*/". $f;
63
+	$f = "../log*/".$f;
64 64
 } else {
65 65
     $f = "../log*/*.log";
66 66
 }
Please login to merge, or discard this patch.
html/user/openid_login.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -35,23 +35,23 @@  discard block
 block discarded – undo
35 35
     $openid = new LightOpenID;
36 36
     echo "<pre>";
37 37
     print_r($openid); exit;
38
-    if(!$openid->mode) {
39
-        if(isset($_POST['openid_identifier'])) {
38
+    if (!$openid->mode) {
39
+        if (isset($_POST['openid_identifier'])) {
40 40
             $openid->identity = $_POST['openid_identifier'];
41 41
             $openid->required = array('namePerson/friendly', 'contact/email');
42 42
             $openid->optional = array('contact/country/home');
43
-            header('Location: ' . $openid->authUrl());
43
+            header('Location: '.$openid->authUrl());
44 44
         }
45
-        if(isset($_GET['openid_identifier'])) {
45
+        if (isset($_GET['openid_identifier'])) {
46 46
             $openid->identity = $_GET['openid_identifier'];
47 47
             $openid->required = array('namePerson/friendly', 'contact/email');
48 48
             $openid->optional = array('contact/country/home');
49
-            header('Location: ' . $openid->authUrl());
49
+            header('Location: '.$openid->authUrl());
50 50
         }
51
-    } elseif($openid->mode == 'cancel') {
51
+    } elseif ($openid->mode == 'cancel') {
52 52
         echo 'User has canceled authentication!';
53 53
     } else {
54
-        echo 'User ' . ($openid->validate() ? $openid->identity . ' has ' : 'has not ') . 'logged in.';
54
+        echo 'User '.($openid->validate() ? $openid->identity.' has ' : 'has not ').'logged in.';
55 55
         //print_r($openid->getAttributes());
56 56
         // Create the user in the DB
57 57
         $data = $openid->getAttributes();
@@ -125,13 +125,13 @@  discard block
 block discarded – undo
125 125
             
126 126
             $user = make_user(
127 127
                 $new_email_addr, $new_name, $passwd_hash,
128
-                $country, '', $project_prefs="", $teamid=0
128
+                $country, '', $project_prefs = "", $teamid = 0
129 129
             );
130 130
             if (!$user) {
131 131
                 show_error("Couldn't create account");
132 132
             }
133 133
             
134
-            if(defined('INVITE_CODES')) {
134
+            if (defined('INVITE_CODES')) {
135 135
                 error_log("Account '$new_email_addr' created using invitation code '$invite_code'");
136 136
             }
137 137
         }
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         send_cookie('auth', $user->authenticator, true);
154 154
 
155 155
     }
156
-} catch(ErrorException $e) {
156
+} catch (ErrorException $e) {
157 157
     echo $e->getMessage();
158 158
 }
159 159
 
Please login to merge, or discard this patch.
html/ops/fix_project_prefs.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             // changing the tree in a loop has strange results so do it separately
77 77
             $to_remove = array();
78 78
             $ids = array();
79
-            foreach($appids as $elem) {
79
+            foreach ($appids as $elem) {
80 80
                 $ids[] = $elem->nodeValue;
81 81
                 $to_remove[] = $elem;
82 82
             }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         exit(1);
95 95
     }
96 96
     $appids = $node->getElementsByTagName("app_id");
97
-    if ($appids->length == 0 ) return;
97
+    if ($appids->length == 0) return;
98 98
     // changing the tree in a loop has strange results so do it separately
99 99
     $to_remove = array();
100 100
     $ids = array();
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         $to_remove = array();
130 130
         foreach ($subNodes as $subNode) {
131 131
             // ignore empty text nodes which are basically whitespace from indentation (only relevant if preserveWhiteSpace is set to true above)
132
-            if (($subNode->nodeType != XML_TEXT_NODE) || (($subNode->nodeType == XML_TEXT_NODE) &&(strlen(trim($subNode->wholeText))>=1))) {
132
+            if (($subNode->nodeType != XML_TEXT_NODE) || (($subNode->nodeType == XML_TEXT_NODE) && (strlen(trim($subNode->wholeText)) >= 1))) {
133 133
                 if ($subNode->nodeName == "venue") {
134 134
                     if (!$subNode->hasChildNodes()) {
135 135
                         // empty venue tag, clean this up too
Please login to merge, or discard this patch.
html/inc/pm.inc 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     return $x;
49 49
 }
50 50
 
51
-function pm_team_form($user, $teamid, $error=null) {
51
+function pm_team_form($user, $teamid, $error = null) {
52 52
     global $bbcode_html, $bbcode_js;
53 53
     $team = BoincTeam::lookup_id($teamid);
54 54
     if (!$team) {
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         error_page("not admin");
59 59
     }
60 60
 
61
-    page_head(tra("Send message to team"),'','','', $bbcode_js);
61
+    page_head(tra("Send message to team"), '', '', '', $bbcode_js);
62 62
 
63 63
     $subject = post_str("subject", true);
64 64
     $content = post_str("content", true);
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 function pm_form($replyto, $userid, $error = null) {
103 103
     global $bbcode_html, $bbcode_js;
104 104
     global $g_logged_in_user;
105
-    page_head(tra("Send private message"),'','','', $bbcode_js);
105
+    page_head(tra("Send private message"), '', '', '', $bbcode_js);
106 106
     
107 107
     if (post_str("preview", true) == tra("Preview")) {
108 108
         $content = post_str("content", true);
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 function send_pm_notification_email(
185 185
     $logged_in_user, $to_user, $subject, $content
186 186
 ) {
187
-    $message  = "
187
+    $message = "
188 188
 You have received a new private message at ".PROJECT.".
189 189
 
190 190
 From: $logged_in_user->name (ID $logged_in_user->id)
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     $pm = BoincPrivateMessage::lookup_id($notify->opaque);
215 215
     $from_user = BoincUser::lookup_id($pm->senderid);
216 216
     if (!$pm || !$from_user) return null;
217
-    return "<a href=pm.php>".tra("Private message%1 from %2, subject:" , "</a>", $from_user->name )." $pm->subject";
217
+    return "<a href=pm.php>".tra("Private message%1 from %2, subject:", "</a>", $from_user->name)." $pm->subject";
218 218
 }
219 219
 
220 220
 function pm_send_msg($from_user, $to_user, $subject, $content, $send_email) {
@@ -278,11 +278,11 @@  discard block
 block discarded – undo
278 278
 
279 279
 function pm_email_remind($user) {
280 280
     if (!$user->prefs->pm_notification) {
281
-        return "<br><small>" .
281
+        return "<br><small>".
282 282
             tra(
283 283
                 "For email notification, %1 edit community prefs %2",
284 284
                 '<a href="edit_forum_preferences_form.php">', '</a>'
285
-            ) .
285
+            ).
286 286
             "</small>"
287 287
         ;
288 288
     }
@@ -308,5 +308,5 @@  discard block
 block discarded – undo
308 308
     }
309 309
 }
310 310
 
311
-$cvs_version_tracker[]="\$Id: pm.inc 14019 2007-11-01 23:04:39Z davea $";
311
+$cvs_version_tracker[] = "\$Id: pm.inc 14019 2007-11-01 23:04:39Z davea $";
312 312
 ?>
Please login to merge, or discard this patch.
html/user/profile_menu.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 start_table();
42 42
 
43 43
 $today = getdate(time());
44
-$UOTD_heading = tra("User of the Day")." -- " . $today['month'] . " " . $today['mday'] . ", " . $today['year'];
44
+$UOTD_heading = tra("User of the Day")." -- ".$today['month']." ".$today['mday'].", ".$today['year'];
45 45
 row1($UOTD_heading);
46 46
 echo "<tr><td>";
47 47
     $profile = get_current_uotd();
@@ -59,15 +59,15 @@  discard block
 block discarded – undo
59 59
 row1(tra("User Profile Explorer"));
60 60
 echo "<tr><td>
61 61
     <ul>
62
-    <li>".tra("View the %1 User Picture Gallery %2.", "<a href=\"" . url_base() . "user_profile/user_gallery_1.html\">", "</a>")."</li>
63
-    <li>".tra("Browse profiles %1 by country %2.", "<a href=\"" . url_base() . "user_profile/profile_country.html\">", "</a>")."</li>
62
+    <li>".tra("View the %1 User Picture Gallery %2.", "<a href=\"".url_base()."user_profile/user_gallery_1.html\">", "</a>")."</li>
63
+    <li>".tra("Browse profiles %1 by country %2.", "<a href=\"".url_base()."user_profile/profile_country.html\">", "</a>")."</li>
64 64
     <li>".tra("Browse profiles %1 at random %2, %3 at random with pictures %2, or %4 at random without pictures %2.", "<a href=\"?cmd=rand&amp;pic=-1\">", "</a>",
65 65
             "<a href=\"?cmd=rand&amp;pic=1\">", "<a href=\"?cmd=rand&amp;pic=0\">")."</li>
66 66
 ";
67
-if (file_exists(PROFILE_PATH . "profile_alpha.html")) {
67
+if (file_exists(PROFILE_PATH."profile_alpha.html")) {
68 68
     echo "<li>".tra("Alphabetical profile listings:")."<br>";
69 69
 
70
-    include( PROFILE_PATH . "profile_alpha.html" );
70
+    include(PROFILE_PATH."profile_alpha.html");
71 71
 }
72 72
 echo "</ul></td></tr>";
73 73
 
@@ -110,5 +110,5 @@  discard block
 block discarded – undo
110 110
     }
111 111
 }
112 112
 
113
-$cvs_version_tracker[]="\$Id$";  //Generated automatically - do not edit
113
+$cvs_version_tracker[] = "\$Id$"; //Generated automatically - do not edit
114 114
 ?>
Please login to merge, or discard this patch.
html/user/friend.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         if ($notify) {
39 39
             page_head(tra("Request pending"));
40 40
             $t = date_str($friend->create_time);
41
-            echo tra("You requested friendship with %1 on %2.", $destuser->name,$t) . "
41
+            echo tra("You requested friendship with %1 on %2.", $destuser->name, $t)."
42 42
                 <p>" .
43 43
                 tra("This request is still pending confirmation.");
44 44
             page_tail();
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 function check_ignoring($srcuser, $destuser) {
52 52
     BoincForumPrefs::lookup($destuser);
53 53
     if (is_ignoring($destuser, $srcuser)) {
54
-        error_page(tra("%1 is not accepting friendship requests from you",$destuser->name));
54
+        error_page(tra("%1 is not accepting friendship requests from you", $destuser->name));
55 55
     }
56 56
 }
57 57
 
@@ -72,11 +72,11 @@  discard block
 block discarded – undo
72 72
     echo "
73 73
         <form method=post action=friend.php>
74 74
         <input type=hidden name=userid value=$destid>
75
-        <input type=hidden name=action value=add_confirm>" .
75
+        <input type=hidden name=action value=add_confirm>".
76 76
         tra("You have asked to add %1 as a friend. We will notify %1 and will ask him/her to confirm that you are friends.",
77
-        "<b>".$destuser->name."</b>") ."
77
+        "<b>".$destuser->name."</b>")."
78 78
         <p>" .
79
-        tra("Add an optional message here:") ."
79
+        tra("Add an optional message here:")."
80 80
         <br>
81 81
         ".textarea_with_counter("message", 250, "")."
82 82
         <p>
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         send_friend_request_email($user, $destuser, $msg);
116 116
     }
117 117
     page_head(tra("Friend request sent"));
118
-    echo tra("We have notified %1 of your request.","<b>".$destuser->name."</b>");
118
+    echo tra("We have notified %1 of your request.", "<b>".$destuser->name."</b>");
119 119
     page_tail();
120 120
 }
121 121
 
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     }
187 187
 
188 188
     page_head(tra("Friendship confirmed"));
189
-    echo tra("Your friendship with %1 has been confirmed.","<b>" . $srcuser->name ."</b>");
189
+    echo tra("Your friendship with %1 has been confirmed.", "<b>".$srcuser->name."</b>");
190 190
     page_tail();
191 191
 }
192 192
 
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         $notify->delete();
206 206
     }
207 207
     page_head(tra("Friendship declined"));
208
-    echo tra("You have declined friendship with %1","<b>".$srcuser->name."</b>");
208
+    echo tra("You have declined friendship with %1", "<b>".$srcuser->name."</b>");
209 209
     page_tail();
210 210
 }
211 211
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
         echo tra("Notification not found");
224 224
     }
225 225
     page_head(tra("Friend confirmed"));
226
-    echo tra("You are now friends with %1.",$destuser->name);
226
+    echo tra("You are now friends with %1.", $destuser->name);
227 227
     page_tail();
228 228
 }
229 229
 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     echo
236 236
         tra("Are you sure you want to cancel your friendship with %1?",
237 237
             $destuser->name
238
-        ) ."<p>\n"
238
+        )."<p>\n"
239 239
     ;
240 240
     show_button("friend.php?action=cancel&userid=$destid", tra("Yes"), tra("Cancel friendship"));
241 241
     show_button(USER_HOME, tra("No"), tra("Stay friends"));
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
     if (!$destuser) error_page("No such user");
250 250
     BoincFriend::delete($user->id, $destid);
251 251
     page_head(tra("Friendship cancelled"));
252
-    echo tra("Your friendship with %1 has been cancelled.",$destuser->name);
252
+    echo tra("Your friendship with %1 has been cancelled.", $destuser->name);
253 253
     page_tail();
254 254
 }
255 255
 
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boinctranslate/boinctranslate.module 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
   // In Drupal 7, these operation cases will all exist as their own hooks,
80 80
   // so let's approximate that here so that this function can simply be removed
81 81
   // upon migration to 7
82
-  switch($op) {
82
+  switch ($op) {
83 83
   case 'update':
84 84
     boinctranslate_node_update($node);
85 85
     break;
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 function boinctranslate_node_update($node) {
99 99
   // Only process nodes of certain types as defined by the individual
100 100
   // node's setting for field_boinctranslate_transifex.
101
-  if ( ($node->field_boinctranslate_transifex) and ($node->field_boinctranslate_transifex[0]['value']=='1') ) {
101
+  if (($node->field_boinctranslate_transifex) and ($node->field_boinctranslate_transifex[0]['value'] == '1')) {
102 102
     // Add page content to translation table.
103 103
     $textgroup = 'project';
104 104
     $location = "node:{$node->nid}:body";
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
       // Only process this chunk if there is a hash associated with it.
127 127
       if ($chunk['hash']) {
128
-        $chunkloc = $location . ":{$chunk['hash']}";
128
+        $chunkloc = $location.":{$chunk['hash']}";
129 129
 
130 130
         // If the hash for this chunk is in the hash table, logically
131 131
         // the chunk is already in the database locales_source table. As
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
  * is viewed (forward compatible to Drupal 7)
180 180
  */
181 181
 function boinctranslate_node_view($node, $view_mode, $langcode) {
182
-  switch($node->type) {
182
+  switch ($node->type) {
183 183
   case 'page':
184 184
     break;
185 185
   default:
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
       array(
203 203
         '!token' =>  l('#SPLIT_TOKEN#', "filter/tips/$format",
204 204
         array(
205
-          'fragment' => 'filter-boinctranslate-' . $delta,
205
+          'fragment' => 'filter-boinctranslate-'.$delta,
206 206
           'attributes' =>
207 207
             array(
208 208
               'target'=>'_blank',
@@ -238,14 +238,14 @@  discard block
 block discarded – undo
238 238
       return $text;
239 239
     }
240 240
 
241
-    if ( ($node->field_boinctranslate_transifex) and ($node->field_boinctranslate_transifex[0]['value']=='1') ) {
241
+    if (($node->field_boinctranslate_transifex) and ($node->field_boinctranslate_transifex[0]['value'] == '1')) {
242 242
       if (variable_get("boinctranslate_filter_debug_$format", 0)) {
243 243
         $timing_start = explode(' ', microtime());
244 244
         $ret = _boinctranslate_filter_process($text, $format, $mynid);
245 245
         $timing_stop = explode(' ', microtime());
246 246
         $elapsed = $timing_stop[1] - $timing_start[1];
247 247
         $elapsed += $timing_stop[0] - $timing_start[0];
248
-        $mess = 'DEBUG ' . l('BOINC translate', "filter/tips/$format") .' parsed on '.date('r').'<br />Execution time: '.$elapsed.' seconds.';
248
+        $mess = 'DEBUG '.l('BOINC translate', "filter/tips/$format").' parsed on '.date('r').'<br />Execution time: '.$elapsed.' seconds.';
249 249
         drupal_set_message($mess, 'warning');
250 250
         return $ret;
251 251
       }
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
   $chunks = array();
309 309
   foreach ($parts as $key => $value) {
310 310
     if (preg_match('/(#SPLIT_TOKEN#)/', $value)) {
311
-      $chunks[] = array ('delimiter' => $value,);
311
+      $chunks[] = array('delimiter' => $value,);
312 312
     }
313 313
     else {
314 314
       $cleaned = preg_replace('/\s|\n/', '', $value);
Please login to merge, or discard this patch.