FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove stray spaces that aren't used for readability · textpattern/textpattern@feff086 · GitHub

Commit feff086

Browse files
committed
Remove stray spaces that aren't used for readability
1 parent 2a7cce7 commit feff086

15 files changed

Lines changed: 144 additions & 144 deletions

File tree

‎rpc/TXP_RPCServer.php‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ function blogger_newPost($params)
350350
$contents = $this->_getBloggerContents($content);
351351

352352
$contents['Section'] = $blogid;
353-
$contents['Status'] = $publish ? '4' : '1';
353+
$contents['Status'] = $publish ? '4' : '1';
354354

355355
$rs = $txp->newArticle($contents);
356356

@@ -443,7 +443,7 @@ function blogger_getUserInfo($params)
443443
list($firstname, $lastname) = explode(' ', $RealName);
444444
} else {
445445
$firstname = $RealName;
446-
$lastname = '';
446+
$lastname = '';
447447
}
448448

449449
$uinfo = array(
@@ -956,7 +956,7 @@ function _getBloggerContents($content)
956956

957957
// Trick to add title, category and excerpts using XML-RPC.
958958
if (preg_match('/<title>(.*)<\/title>(.*)/s', $content, $matches)) {
959-
$body = $matches[2];
959+
$body = $matches[2];
960960
$title = $matches[1];
961961
}
962962

@@ -977,9 +977,9 @@ function _getMetaWeblogContents($struct, $publish, $txp)
977977
global $gmtoffset, $is_dst;
978978

979979
$contents = array(
980-
'Body' => str_replace('\n', n, $struct['description']),
980+
'Body' => str_replace('\n', n, $struct['description']),
981981
'Status' => $publish ? '4' : '1',
982-
'Title' => $struct['title'],
982+
'Title' => $struct['title'],
983983
);
984984

985985
if (!empty($struct['categories'])) {
@@ -1088,9 +1088,9 @@ function _buildMetaWeblogStruct($rs, $txp)
10881088
break;
10891089
}
10901090

1091-
$cat = $txp->getCategory($rs['Category1']);
1091+
$cat = $txp->getCategory($rs['Category1']);
10921092
$cat1 = isset($cat['title']) ? $cat['title'] : '';
1093-
$cat = $txp->getCategory($rs['Category2']);
1093+
$cat = $txp->getCategory($rs['Category2']);
10941094
$cat2 = isset($cat['title']) ? $cat['title'] : '';
10951095

10961096
switch ($rs['Status']) {

‎textpattern/include/txp_auth.php‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -249,17 +249,17 @@ function doTxpValidate()
249249
{
250250
global $logout, $txp_user;
251251

252-
$p_userid = ps('p_userid');
252+
$p_userid = ps('p_userid');
253253
$p_password = ps('p_password');
254-
$p_reset = ps('p_reset');
255-
$p_alter = ps('p_alter');
256-
$p_set = ps('p_set');
257-
$stay = ps('stay');
258-
$p_confirm = gps('confirm');
259-
$logout = gps('logout');
260-
$lang = sanitizeForUrl(gps('lang'));
261-
$message = '';
262-
$pub_path = preg_replace('|//$|', '/', rhu . '/');
254+
$p_reset = ps('p_reset');
255+
$p_alter = ps('p_alter');
256+
$p_set = ps('p_set');
257+
$stay = ps('stay');
258+
$p_confirm = gps('confirm');
259+
$logout = gps('logout');
260+
$lang = sanitizeForUrl(gps('lang'));
261+
$message = '';
262+
$pub_path = preg_replace('|//$|', '/', rhu . '/');
263263
$cookie_domain = (defined('cookie_domain')) ? cookie_domain : '';
264264
$conUsers = do_list_unique(get_pref('concurrent_logins'));
265265

@@ -268,7 +268,7 @@ function doTxpValidate()
268268
$c_hash = end($txp_login);
269269
$c_userid = join(',', array_slice($txp_login, 0, -1));
270270
} else {
271-
$c_hash = '';
271+
$c_hash = '';
272272
$c_userid = '';
273273
}
274274

@@ -313,7 +313,7 @@ function doTxpValidate()
313313

314314
if ($name !== false) {
315315
$c_hash = md5(uniqid(mt_rand(), true));
316-
$nonce = md5($name . pack('H*', $c_hash));
316+
$nonce = md5($name . pack('H*', $c_hash));
317317

318318
safe_update(
319319
'txp_users',

‎textpattern/include/txp_category.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ function cat_event_category_create($event)
537537

538538
function cat_event_category_edit($evname, $message = '')
539539
{
540-
$id = assert_int(gps('id'));
540+
$id = assert_int(gps('id'));
541541
$parent = doSlash(gps('parent'));
542542
$fieldSizes = Txp::get('\Textpattern\DB\Core')->columnSizes('txp_category', 'name, title, description');
543543

‎textpattern/include/txp_file.php‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -528,20 +528,20 @@ function file_multiedit_form($page, $sort, $dir, $crit, $search_method)
528528
$status = selectInput('status', $file_statuses, '', true);
529529

530530
$methods = array(
531-
'changestatus' => array(
531+
'changestatus' => array(
532532
'label' => gTxt('changestatus'),
533533
'html' => $status,
534534
),
535535
'changecategory' => array(
536536
'label' => gTxt('changecategory'),
537537
'html' => $categories,
538538
),
539-
'changeauthor' => array(
539+
'changeauthor' => array(
540540
'label' => gTxt('changeauthor'),
541541
'html' => $authors,
542542
),
543-
'changecount' => array('label' => gTxt('reset_download_count')),
544-
'delete' => gTxt('delete'),
543+
'changecount' => array('label' => gTxt('reset_download_count')),
544+
'delete' => gTxt('delete'),
545545
);
546546

547547
if (!$categories) {
@@ -579,8 +579,8 @@ function file_multi_edit()
579579
}
580580

581581
$selected = array_map('assert_int', $selected);
582-
$method = ps('edit_method');
583-
$changed = array();
582+
$method = ps('edit_method');
583+
$changed = array();
584584
$key = '';
585585

586586
switch ($method) {

‎textpattern/lib/IXRClass.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ function query()
676676
$length = $request->getLength();
677677
$xml = $request->getXml();
678678
$r = "\r\n";
679-
$request = "POST {$this->path} HTTP/1.0$r";
679+
$request = "POST {$this->path} HTTP/1.0$r";
680680

681681
// Merged from WP #8145 - allow custom headers
682682
$this->headers['Host'] = $this->server;
@@ -686,7 +686,7 @@ function query()
686686

687687
// Accept gzipped response if zlib and if php4.3+ (fgets turned binary safe)
688688
if ( extension_loaded('zlib') && preg_match('#^(4\.[3-9])|([5-9])#',phpversion()) )
689-
$this->headers['Accept-Encoding'] = 'gzip';
689+
$this->headers['Accept-Encoding'] = 'gzip';
690690

691691
foreach( $this->headers as $header => $value ) {
692692
$request .= "{$header}: {$value}{$r}";

‎textpattern/lib/class.thumb.php‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,13 @@ public function write($infile, $outfile)
221221
return false;
222222
}
223223

224-
$this->_SRC['file'] = $infile;
225-
$this->_SRC['width'] = $temp[0];
226-
$this->_SRC['height'] = $temp[1];
227-
$this->_SRC['type'] = $temp[2]; // 1=GIF, 2=JPEG, 3=PNG, 18=WebP, 19=AVIF, 99=SVG.
228-
$this->_SRC['string'] = $temp[3];
229-
$this->_SRC['image'] = $temp['image'];
230-
$this->_SRC['filename'] = basename($infile);
224+
$this->_SRC['file'] = $infile;
225+
$this->_SRC['width'] = $temp[0];
226+
$this->_SRC['height'] = $temp[1];
227+
$this->_SRC['type'] = $temp[2]; // 1=GIF, 2=JPEG, 3=PNG, 18=WebP, 19=AVIF, 99=SVG.
228+
$this->_SRC['string'] = $temp[3];
229+
$this->_SRC['image'] = $temp['image'];
230+
$this->_SRC['filename'] = basename($infile);
231231
//$this->_SRC['modified'] = filemtime($infile);
232232
/*
233233
// Make sure we have enough memory if the image is large.
@@ -288,8 +288,8 @@ public function write($infile, $outfile)
288288
}
289289
// Swap height and width values if thumbnail is rotated by 90°.
290290
if (in_array($exif['Orientation'], [5, 6, 7, 8])) {
291-
$this->_SRC['width'] = $temp[1];
292-
$this->_SRC['height'] = $temp[0];
291+
$this->_SRC['width'] = $temp[1];
292+
$this->_SRC['height'] = $temp[0];
293293
}
294294
// Flip thumbnail if exif orientation is mirrored.
295295
if (in_array($exif['Orientation'], [2, 5, 7, 4])) {
@@ -307,36 +307,36 @@ public function write($infile, $outfile)
307307

308308
// Get destination image info.
309309
if (is_numeric($this->width) and empty($this->height)) {
310-
$this->_DST['width'] = $this->width;
310+
$this->_DST['width'] = $this->width;
311311
$this->_DST['height'] = round($this->width/($this->_SRC['width']/$this->_SRC['height']));
312312
} elseif (is_numeric($this->height) and empty($this->width)) {
313313
$this->_DST['height'] = $this->height;
314-
$this->_DST['width'] = round($this->height/($this->_SRC['height']/$this->_SRC['width']));
314+
$this->_DST['width'] = round($this->height/($this->_SRC['height']/$this->_SRC['width']));
315315
} elseif (is_numeric($this->width) and is_numeric($this->height)) {
316-
$this->_DST['width'] = $this->width;
316+
$this->_DST['width'] = $this->width;
317317
$this->_DST['height'] = $this->height;
318318
} elseif (is_numeric($this->longside) and empty($this->shortside)) {
319319
// Preserve aspect ratio based on provided height.
320320
if ($this->_SRC['format'] == 'portrait') {
321321
$this->_DST['height'] = $this->longside;
322-
$this->_DST['width'] = round($this->longside/($this->_SRC['height']/$this->_SRC['width']));
322+
$this->_DST['width'] = round($this->longside/($this->_SRC['height']/$this->_SRC['width']));
323323
} else {
324-
$this->_DST['width'] = $this->longside;
324+
$this->_DST['width'] = $this->longside;
325325
$this->_DST['height'] = round($this->longside/($this->_SRC['width']/$this->_SRC['height']));
326326
}
327327
} elseif (is_numeric($this->shortside)) {
328328
// Preserve aspect ratio based on provided width.
329329
if ($this->_SRC['format'] == 'portrait') {
330-
$this->_DST['width'] = $this->shortside;
330+
$this->_DST['width'] = $this->shortside;
331331
$this->_DST['height'] = round($this->shortside/($this->_SRC['width']/$this->_SRC['height']));
332332
} else {
333333
$this->_DST['height'] = $this->shortside;
334-
$this->_DST['width'] = round($this->shortside/($this->_SRC['height']/$this->_SRC['width']));
334+
$this->_DST['width'] = round($this->shortside/($this->_SRC['height']/$this->_SRC['width']));
335335
}
336336
} else {
337337
// Default dimensions.
338-
$this->width = 100;
339-
$this->_DST['width'] = $this->width;
338+
$this->width = 100;
339+
$this->_DST['width'] = $this->width;
340340
$this->_DST['height'] = round($this->width/($this->_SRC['width']/$this->_SRC['height']));
341341
}
342342

‎textpattern/lib/class.trace.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ private function traceAdd($msg, $query = false, $stats = null)
2929
$trace['level'] = sizeof($this->nest);
3030
$trace['begin'] = microtime(true);
3131
$trace['query'] = $query;
32-
$trace['msg'] = $msg;
32+
$trace['msg'] = $msg;
3333
array_push($this->trace, $trace);
3434

3535
if (is_array($stats)) {
@@ -122,9 +122,9 @@ private function out($str)
122122
public function summary($array = false)
123123
{
124124
$summary = array(
125-
'Runtime' => sprintf('%4.2f', (microtime(true) - $this->bigBang) * 1000).' ms',
125+
'Runtime' => sprintf('%4.2f', (microtime(true) - $this->bigBang) * 1000).' ms',
126126
'Query time' => sprintf('%4.2f', $this->queryTime * 1000).' ms',
127-
'Queries' => $this->queries,
127+
'Queries' => $this->queries,
128128
);
129129

130130
if ($this->memFunc) {

‎textpattern/lib/txplib_admin.php‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -727,14 +727,14 @@ function get_essential_forms()
727727
function permlinkmodes($name, $val, $blank = false)
728728
{
729729
$vals = array(
730-
'messy' => gTxt('messy'),
731-
'id_title' => gTxt('id_title'),
732-
'section_id_title' => gTxt('section_id_title'),
733-
'section_category_title' => gTxt('section_category_title'),
734-
'year_month_day_title' => gTxt('year_month_day_title'),
735-
'breadcrumb_title' => gTxt('breadcrumb_title'),
736-
'section_title' => gTxt('section_title'),
737-
'title_only' => gTxt('title_only')
730+
'messy' => gTxt('messy'),
731+
'id_title' => gTxt('id_title'),
732+
'section_id_title' => gTxt('section_id_title'),
733+
'section_category_title' => gTxt('section_category_title'),
734+
'year_month_day_title' => gTxt('year_month_day_title'),
735+
'breadcrumb_title' => gTxt('breadcrumb_title'),
736+
'section_title' => gTxt('section_title'),
737+
'title_only' => gTxt('title_only')
738738
);
739739

740740
return selectInput($name, $vals, $val, $blank, '', $name);

‎textpattern/lib/txplib_html.php‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ function eLink($event, $step, $thing, $value, $linktext, $thing2 = '', $val2 = '
226226
}
227227

228228
return href($linktext, array(
229-
'event' => $event,
230-
'step' => $step,
229+
'event' => $event,
230+
'step' => $step,
231231
) + $atts, array(
232232
'class' => $class,
233233
'title' => $title,
@@ -1200,9 +1200,9 @@ function popHelp($help_var, $width = 0, $height = 0, $class = 'pophelp', $inline
12001200
$url = filter_var($help_var, FILTER_VALIDATE_URL);
12011201

12021202
$atts = array(
1203-
'rel' => 'help',
1204-
'title' => gTxt('help'),
1205-
'role' => 'button',
1203+
'rel' => 'help',
1204+
'title' => gTxt('help'),
1205+
'role' => 'button',
12061206
);
12071207

12081208
if ($url === false) {

‎textpattern/lib/txplib_misc.php‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2167,7 +2167,7 @@ function is_blocklisted($ip, $checks = '')
21672167

21682168
foreach ((array) $checks as $a) {
21692169
$parts = explode(':', $a, 2);
2170-
$rbl = $parts[0];
2170+
$rbl = $parts[0];
21712171

21722172
if (isset($parts[1])) {
21732173
foreach (explode(':', $parts[1]) as $code) {
@@ -3430,14 +3430,14 @@ function txp_tokenize($thing, $hash = null, $transform = null)
34303430
$hash = txp_hash($thing);
34313431
}
34323432

3433-
$inside = array($parsed[0]);
3434-
$tags = array($inside);
3435-
$tag = array();
3433+
$inside = array($parsed[0]);
3434+
$tags = array($inside);
3435+
$tag = array();
34363436
$outside = array();
34373437
$order = array(array());
3438-
$else = array(-1);
3439-
$count = array(-1);
3440-
$level = 0;
3438+
$else = array(-1);
3439+
$count = array(-1);
3440+
$level = 0;
34413441

34423442
for ($i = 1; $i < $last || $level > 0; $i++) {
34433443
$chunk = $i < $last ? $parsed[$i] : '</txp:'.$tag[$level-1][2].'>';

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL