@@ -15,9 +15,9 @@ |
||
15 | 15 | $message = $this->getSpeechBubble($text); |
16 | 16 | |
17 | 17 | return str_replace( |
18 | - '{{bubble}}', |
|
19 | - $message, |
|
20 | - $this->character |
|
18 | + '{{bubble}}', |
|
19 | + $message, |
|
20 | + $this->character |
|
21 | 21 | ); |
22 | 22 | } |
23 | 23 |
@@ -30,11 +30,11 @@ |
||
30 | 30 | { |
31 | 31 | $characterLength = $this->getMaxLineLength($this->character); |
32 | 32 | $exploded_message = explode("\n", $message); |
33 | - $padded_message = array_map( function ($line) use ($characterLength) { |
|
33 | + $padded_message = array_map(function($line) use ($characterLength) { |
|
34 | 34 | return str_pad($line, $characterLength, ' '); |
35 | 35 | },$exploded_message); |
36 | 36 | |
37 | - return implode("\n",$padded_message); |
|
37 | + return implode("\n", $padded_message); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
@@ -11,7 +11,7 @@ |
||
11 | 11 | public static function create($animal) |
12 | 12 | { |
13 | 13 | $result = null; |
14 | - if(class_exists($animal)) { |
|
14 | + if (class_exists($animal)) { |
|
15 | 15 | $result = new $animal; |
16 | 16 | } |
17 | 17 | return $result; |