Skip to content

Commit

Permalink
removed break, since not strictly necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
dedalozzo committed Jun 5, 2017
1 parent 47abd34 commit 195cf08
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/Converter/HTMLConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,71 +124,54 @@ function ($matches) {
switch ($tag) {
case ($tag == '<strong>' || $tag == '<b>'):
return '[b]';
break;

case ($tag == '</strong>' || $tag == '</b>'):
return '[/b]';
break;

case ($tag == '<em>' || $tag == '<i>'):
return '[i]';
break;

case ($tag == '</em>' || $tag == '</i>'):
return '[/i]';
break;

case '<u>':
return '[u]';
break;

case '</u>':
return '[/u]';
break;

case ($tag == '<strike>' || $tag == '<del>'):
return '[s]';
break;

case ($tag == '</strike>' || $tag == '</del>'):
return '[/s]';
break;

case '<ul>':
return '[list]';
break;

case '</ul>':
return '[/list]';
break;

case '<ol>':
return '[list=1]';
break;

case '</ol>':
return '[/list]';
break;

case '<li>':
return '[*]';
break;

case '</li>':
return '';
break;

case '<center>':
return '[center]';
break;

case '</center>':
return '[/center]';
break;

case ($tag == '<br>' || $tag == '<br/>' || $tag == '<br />'):
return PHP_EOL;
break;

default:
return $tag;
Expand Down

0 comments on commit 195cf08

Please sign in to comment.