Skip to content

Commit ac1e136

Browse files
committed
Switchのセミコロンをコロンに統一。
1 parent 4e2ea56 commit ac1e136

3 files changed

Lines changed: 30 additions & 30 deletions

File tree

logconverter/bbsnote2/bbsnote2petit.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -428,26 +428,26 @@ function thumb($path,$fname,$time,$max_w,$max_h,$options=[]){
428428
$out_h = $w_h_size_over ? ceil($h * $ratio):$h;
429429

430430
switch ($mime_type = mime_content_type($fname)) {
431-
case "image/gif";
431+
case "image/gif":
432432
if(!function_exists("ImageCreateFromGIF")){//gif
433433
return;
434434
}
435435
$im_in = @ImageCreateFromGIF($fname);
436436
if(!$im_in)return;
437437

438438
break;
439-
case "image/jpeg";
439+
case "image/jpeg":
440440
$im_in = @ImageCreateFromJPEG($fname);//jpg
441441
if(!$im_in)return;
442442
break;
443-
case "image/png";
443+
case "image/png":
444444
if(!function_exists("ImageCreateFromPNG")){//png
445445
return;
446446
}
447447
$im_in = @ImageCreateFromPNG($fname);
448448
if(!$im_in)return;
449449
break;
450-
case "image/webp";
450+
case "image/webp":
451451
if(!function_exists("ImageCreateFromWEBP")||version_compare(PHP_VERSION, '7.0.0', '<')){//webp
452452
return;
453453
}
@@ -484,24 +484,24 @@ function thumb($path,$fname,$time,$max_w,$max_h,$options=[]){
484484
$outfile=$fname;
485485
//本体画像を縮小
486486
switch ($mime_type) {
487-
case "image/gif";
487+
case "image/gif":
488488
if(function_exists("ImagePNG")){
489489
ImagePNG($im_out, $outfile,3);
490490
}else{
491491
ImageJPEG($im_out, $outfile,98);
492492
}
493493
break;
494-
case "image/jpeg";
494+
case "image/jpeg":
495495
ImageJPEG($im_out, $outfile,98);
496496
break;
497-
case "image/png";
497+
case "image/png":
498498
if(function_exists("ImagePNG")){
499499
ImagePNG($im_out, $outfile,3);
500500
}else{
501501
ImageJPEG($im_out, $outfile,98);
502502
}
503503
break;
504-
case "image/webp";
504+
case "image/webp":
505505
if(function_exists("ImageWEBP")&&version_compare(PHP_VERSION, '7.0.0', '>=')){
506506
ImageWEBP($im_out, $outfile,98);
507507
}else{

logconverter/poti2/poti2petit.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -390,26 +390,26 @@ function thumb($path,$fname,$time,$max_w,$max_h,$options=[]){
390390
$out_h = $w_h_size_over ? ceil($h * $ratio):$h;
391391

392392
switch ($mime_type = mime_content_type($fname)) {
393-
case "image/gif";
393+
case "image/gif":
394394
if(!function_exists("ImageCreateFromGIF")){//gif
395395
return;
396396
}
397397
$im_in = @ImageCreateFromGIF($fname);
398398
if(!$im_in)return;
399399

400400
break;
401-
case "image/jpeg";
401+
case "image/jpeg":
402402
$im_in = @ImageCreateFromJPEG($fname);//jpg
403403
if(!$im_in)return;
404404
break;
405-
case "image/png";
405+
case "image/png":
406406
if(!function_exists("ImageCreateFromPNG")){//png
407407
return;
408408
}
409409
$im_in = @ImageCreateFromPNG($fname);
410410
if(!$im_in)return;
411411
break;
412-
case "image/webp";
412+
case "image/webp":
413413
if(!function_exists("ImageCreateFromWEBP")||version_compare(PHP_VERSION, '7.0.0', '<')){//webp
414414
return;
415415
}
@@ -446,24 +446,24 @@ function thumb($path,$fname,$time,$max_w,$max_h,$options=[]){
446446
$outfile=$fname;
447447
//本体画像を縮小
448448
switch ($mime_type) {
449-
case "image/gif";
449+
case "image/gif":
450450
if(function_exists("ImagePNG")){
451451
ImagePNG($im_out, $outfile,3);
452452
}else{
453453
ImageJPEG($im_out, $outfile,98);
454454
}
455455
break;
456-
case "image/jpeg";
456+
case "image/jpeg":
457457
ImageJPEG($im_out, $outfile,98);
458458
break;
459-
case "image/png";
459+
case "image/png":
460460
if(function_exists("ImagePNG")){
461461
ImagePNG($im_out, $outfile,3);
462462
}else{
463463
ImageJPEG($im_out, $outfile,98);
464464
}
465465
break;
466-
case "image/webp";
466+
case "image/webp":
467467
if(function_exists("ImageWEBP")&&version_compare(PHP_VERSION, '7.0.0', '>=')){
468468
ImageWEBP($im_out, $outfile,98);
469469
}else{
@@ -512,13 +512,13 @@ function switch_tool($tool){
512512
case 'ChickenPaint':
513513
$tool='chi';
514514
break;
515-
case 'Klecks';
515+
case 'Klecks':
516516
$tool='klecks';
517517
break;
518-
case 'Tegaki';
518+
case 'Tegaki':
519519
$tool='tegaki';
520520
break;
521-
case 'Axnos Paint';
521+
case 'Axnos Paint':
522522
$tool='axnos';
523523
break;
524524
case 'Upload':

logexporter/petit2poti/petit2poti.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,13 @@ function switch_tool($tool){
256256
case 'chi':
257257
$tool='ChickenPaint';
258258
break;
259-
case 'klecks';
259+
case 'klecks':
260260
$tool='Klecks';
261261
break;
262-
case 'tegaki';
262+
case 'tegaki':
263263
$tool='Tegaki';
264264
break;
265-
case 'axnos';
265+
case 'axnos':
266266
$tool='Axnos Paint';
267267
break;
268268
case 'upload':
@@ -357,26 +357,26 @@ function thumb($path,$fname,$time,$max_w,$max_h,$options=[]){
357357
$out_h = $w_h_size_over ? ceil($h * $ratio):$h;
358358

359359
switch ($mime_type = mime_content_type($fname)) {
360-
case "image/gif";
360+
case "image/gif":
361361
if(!function_exists("ImageCreateFromGIF")){//gif
362362
return;
363363
}
364364
$im_in = @ImageCreateFromGIF($fname);
365365
if(!$im_in)return;
366366

367367
break;
368-
case "image/jpeg";
368+
case "image/jpeg":
369369
$im_in = @ImageCreateFromJPEG($fname);//jpg
370370
if(!$im_in)return;
371371
break;
372-
case "image/png";
372+
case "image/png":
373373
if(!function_exists("ImageCreateFromPNG")){//png
374374
return;
375375
}
376376
$im_in = @ImageCreateFromPNG($fname);
377377
if(!$im_in)return;
378378
break;
379-
case "image/webp";
379+
case "image/webp":
380380
if(!function_exists("ImageCreateFromWEBP")||version_compare(PHP_VERSION, '7.0.0', '<')){//webp
381381
return;
382382
}
@@ -413,24 +413,24 @@ function thumb($path,$fname,$time,$max_w,$max_h,$options=[]){
413413
$outfile=$fname;
414414
//本体画像を縮小
415415
switch ($mime_type) {
416-
case "image/gif";
416+
case "image/gif":
417417
if(function_exists("ImagePNG")){
418418
ImagePNG($im_out, $outfile,3);
419419
}else{
420420
ImageJPEG($im_out, $outfile,98);
421421
}
422422
break;
423-
case "image/jpeg";
423+
case "image/jpeg":
424424
ImageJPEG($im_out, $outfile,98);
425425
break;
426-
case "image/png";
426+
case "image/png":
427427
if(function_exists("ImagePNG")){
428428
ImagePNG($im_out, $outfile,3);
429429
}else{
430430
ImageJPEG($im_out, $outfile,98);
431431
}
432432
break;
433-
case "image/webp";
433+
case "image/webp":
434434
if(function_exists("ImageWEBP")&&version_compare(PHP_VERSION, '7.0.0', '>=')){
435435
ImageWEBP($im_out, $outfile,98);
436436
}else{

0 commit comments

Comments
 (0)