@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | |
22 | 22 | public function getCacheId($table) |
23 | 23 | { |
24 | - return $this->getConnection()->getDatabase().'.'.$table; |
|
24 | + return $this->getConnection()->getDatabase() . '.' . $table; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | public function cachePath() |
73 | 73 | { |
74 | - return parent::cachePath().'/db-metadata/'; |
|
74 | + return parent::cachePath() . '/db-metadata/'; |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | } |
78 | 78 | \ No newline at end of file |
@@ -9,8 +9,8 @@ |
||
9 | 9 | |
10 | 10 | public function format(array $record) |
11 | 11 | { |
12 | - $title = $record['level_name'].' '.(string) $record['message']; |
|
13 | - $return = str_pad($title, 100, " "); |
|
12 | + $title = $record['level_name'] . ' ' . (string) $record['message']; |
|
13 | + $return = str_pad($title, 100, " "); |
|
14 | 14 | $return .= parent::format($record); |
15 | 15 | return $return; |
16 | 16 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | public function setFindSource($value = true) |
37 | 37 | { |
38 | - $this->findSource = (bool)$value; |
|
38 | + $this->findSource = (bool) $value; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
@@ -8,7 +8,7 @@ |
||
8 | 8 | public static function toAscii($str, $replace = array(), $delimiter = '-') |
9 | 9 | { |
10 | 10 | if (!empty($replace)) { |
11 | - $str = str_replace((array)$replace, ' ', $str); |
|
11 | + $str = str_replace((array) $replace, ' ', $str); |
|
12 | 12 | } |
13 | 13 | |
14 | 14 | $clean = iconv('UTF-8', 'ASCII//TRANSLIT', $str); |
@@ -33,11 +33,11 @@ |
||
33 | 33 | public function buildMailMessageRecipients(&$message) |
34 | 34 | { |
35 | 35 | foreach (['to', 'cc', 'bcc', 'replyTo'] as $type) { |
36 | - $method = 'get'.ucfirst($type).'s'; |
|
36 | + $method = 'get' . ucfirst($type) . 's'; |
|
37 | 37 | $recipients = method_exists($this, $method) ? $this->{$method}() : $this->{$type}; |
38 | 38 | if (is_array($recipients)) { |
39 | 39 | foreach ($recipients as $address => $name) { |
40 | - $message->{'add'.ucfirst($type)}($address, $name); |
|
40 | + $message->{'add' . ucfirst($type)}($address, $name); |
|
41 | 41 | } |
42 | 42 | } |
43 | 43 | } |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | public function log() |
6 | 6 | { |
7 | - trigger_error($this->getMessage(), $this->getCode()); |
|
7 | + trigger_error($this->getMessage(), $this->getCode()); |
|
8 | 8 | } |
9 | 9 | |
10 | 10 | } |
11 | 11 | \ No newline at end of file |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public function getViewPath($name) |
73 | 73 | { |
74 | - return $this->getModuleDirectory($name).DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR; |
|
74 | + return $this->getModuleDirectory($name) . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR; |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | public function getModuleDirectory($name) |
82 | 82 | { |
83 | - return $this->getModulesBaseDirectory().$name; |
|
83 | + return $this->getModulesBaseDirectory() . $name; |
|
84 | 84 | } |
85 | 85 | |
86 | 86 | /** |
@@ -24,18 +24,18 @@ |
||
24 | 24 | $location = ''; |
25 | 25 | |
26 | 26 | if (isset($parts['scheme'])) { |
27 | - $location .= $parts['scheme'].'://'; |
|
27 | + $location .= $parts['scheme'] . '://'; |
|
28 | 28 | } |
29 | 29 | if (isset($parts['user']) || isset($parts['pass'])) { |
30 | - $location .= $parts['user'].':'.$parts['pass'].'@'; |
|
30 | + $location .= $parts['user'] . ':' . $parts['pass'] . '@'; |
|
31 | 31 | } |
32 | 32 | $location .= $parts['host']; |
33 | 33 | if (isset($parts['port'])) { |
34 | - $location .= ':'.$parts['port']; |
|
34 | + $location .= ':' . $parts['port']; |
|
35 | 35 | } |
36 | 36 | $location .= $parts['path']; |
37 | 37 | if (isset($parts['query'])) { |
38 | - $location .= '?'.$parts['query']; |
|
38 | + $location .= '?' . $parts['query']; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | return $location; |
@@ -32,8 +32,8 @@ discard block |
||
32 | 32 | public function getDescriptorSpec() |
33 | 33 | { |
34 | 34 | return array( |
35 | - 0 => array("pipe", "r"), // stdin |
|
36 | - 1 => array("pipe", "w"), // stdout -> we use this |
|
35 | + 0 => array("pipe", "r"), // stdin |
|
36 | + 1 => array("pipe", "w"), // stdout -> we use this |
|
37 | 37 | 2 => array("pipe", "w") // stderr |
38 | 38 | ); |
39 | 39 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | break; |
61 | 61 | } |
62 | 62 | if ($this->isVerbose()) { |
63 | - echo $returnLine."\n"; |
|
63 | + echo $returnLine . "\n"; |
|
64 | 64 | } |
65 | 65 | ob_flush(); |
66 | 66 | flush(); |