@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | if ($string instanceof Message) { |
68 | 68 | $string = $string->getMessage(); |
69 | 69 | } |
70 | - $this->message = $string . $this->message; |
|
70 | + $this->message = $string.$this->message; |
|
71 | 71 | return $this; |
72 | 72 | } |
73 | 73 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | public function center($char) |
91 | 91 | { |
92 | - $this->message = $char . $this->message . $char; |
|
92 | + $this->message = $char.$this->message.$char; |
|
93 | 93 | return $this; |
94 | 94 | } |
95 | 95 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | public static function ucfirst($text) |
117 | 117 | { |
118 | - return mb_strtoupper(mb_substr($text, 0, 1, 'utf-8'), 'utf-8') . mb_substr($text, 1, null, 'utf-8'); |
|
118 | + return mb_strtoupper(mb_substr($text, 0, 1, 'utf-8'), 'utf-8').mb_substr($text, 1, null, 'utf-8'); |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | public function __toString() |
@@ -100,13 +100,13 @@ discard block |
||
100 | 100 | foreach ($this->getSteps() as $step) { |
101 | 101 | /** @var Step $step */ |
102 | 102 | if ($step->getName() !== 'Comment') { |
103 | - $text .= $step->getHtml() . '<br/>'; |
|
103 | + $text .= $step->getHtml().'<br/>'; |
|
104 | 104 | } else { |
105 | - $text .= trim($step->getHumanizedArguments(), '"') . '<br/>'; |
|
105 | + $text .= trim($step->getHumanizedArguments(), '"').'<br/>'; |
|
106 | 106 | } |
107 | 107 | } |
108 | 108 | $text = str_replace(['"\'', '\'"'], ["'", "'"], $text); |
109 | - $text = "<h3>" . mb_strtoupper('I want to ' . $this->getFeature(), 'utf-8') . "</h3>" . $text; |
|
109 | + $text = "<h3>".mb_strtoupper('I want to '.$this->getFeature(), 'utf-8')."</h3>".$text; |
|
110 | 110 | return $text; |
111 | 111 | } |
112 | 112 | |
@@ -114,10 +114,10 @@ discard block |
||
114 | 114 | { |
115 | 115 | $text = ''; |
116 | 116 | foreach ($this->getSteps() as $step) { |
117 | - $text .= $step->getPrefix() . "$step \r\n"; |
|
117 | + $text .= $step->getPrefix()."$step \r\n"; |
|
118 | 118 | } |
119 | 119 | $text = trim(str_replace(['"\'', '\'"'], ["'", "'"], $text)); |
120 | - $text = mb_strtoupper('I want to ' . $this->getFeature(), 'utf-8') . "\r\n\r\n" . $text . "\r\n\r\n"; |
|
120 | + $text = mb_strtoupper('I want to '.$this->getFeature(), 'utf-8')."\r\n\r\n".$text."\r\n\r\n"; |
|
121 | 121 | return $text; |
122 | 122 | } |
123 | 123 |
@@ -47,12 +47,12 @@ |
||
47 | 47 | |
48 | 48 | public function getSignature() |
49 | 49 | { |
50 | - return $this->getMetadata()->getName() . 'Cept'; |
|
50 | + return $this->getMetadata()->getName().'Cept'; |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | public function toString() |
54 | 54 | { |
55 | - return $this->getSignature() . ': ' . Message::ucfirst($this->getFeature()); |
|
55 | + return $this->getSignature().': '.Message::ucfirst($this->getFeature()); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | public function getSourceCode() |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | class HttpCode |
22 | 22 | { |
23 | 23 | const SWITCHING_PROTOCOLS = 101; |
24 | - const PROCESSING = 102; // RFC2518 |
|
24 | + const PROCESSING = 102; // RFC2518 |
|
25 | 25 | const OK = 200; |
26 | 26 | const CREATED = 201; |
27 | 27 | const ACCEPTED = 202; |
@@ -29,9 +29,9 @@ discard block |
||
29 | 29 | const NO_CONTENT = 204; |
30 | 30 | const RESET_CONTENT = 205; |
31 | 31 | const PARTIAL_CONTENT = 206; |
32 | - const MULTI_STATUS = 207; // RFC4918 |
|
33 | - const ALREADY_REPORTED = 208; // RFC5842 |
|
34 | - const IM_USED = 226; // RFC3229 |
|
32 | + const MULTI_STATUS = 207; // RFC4918 |
|
33 | + const ALREADY_REPORTED = 208; // RFC5842 |
|
34 | + const IM_USED = 226; // RFC3229 |
|
35 | 35 | const MULTIPLE_CHOICES = 300; |
36 | 36 | const MOVED_PERMANENTLY = 301; |
37 | 37 | const FOUND = 302; |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | const USE_PROXY = 305; |
41 | 41 | const RESERVED = 306; |
42 | 42 | const TEMPORARY_REDIRECT = 307; |
43 | - const PERMANENTLY_REDIRECT = 308; // RFC7238 |
|
43 | + const PERMANENTLY_REDIRECT = 308; // RFC7238 |
|
44 | 44 | const BAD_REQUEST = 400; |
45 | 45 | const UNAUTHORIZED = 401; |
46 | 46 | const PAYMENT_REQUIRED = 402; |
@@ -59,26 +59,26 @@ discard block |
||
59 | 59 | const UNSUPPORTED_MEDIA_TYPE = 415; |
60 | 60 | const REQUESTED_RANGE_NOT_SATISFIABLE = 416; |
61 | 61 | const EXPECTATION_FAILED = 417; |
62 | - const I_AM_A_TEAPOT = 418; // RFC2324 |
|
63 | - const UNPROCESSABLE_ENTITY = 422; // RFC4918 |
|
64 | - const LOCKED = 423; // RFC4918 |
|
65 | - const FAILED_DEPENDENCY = 424; // RFC4918 |
|
66 | - const RESERVED_FOR_WEBDAV_ADVANCED_COLLECTIONS_EXPIRED_PROPOSAL = 425; // RFC2817 |
|
67 | - const UPGRADE_REQUIRED = 426; // RFC2817 |
|
68 | - const PRECONDITION_REQUIRED = 428; // RFC6585 |
|
69 | - const TOO_MANY_REQUESTS = 429; // RFC6585 |
|
70 | - const REQUEST_HEADER_FIELDS_TOO_LARGE = 431; // RFC6585 |
|
62 | + const I_AM_A_TEAPOT = 418; // RFC2324 |
|
63 | + const UNPROCESSABLE_ENTITY = 422; // RFC4918 |
|
64 | + const LOCKED = 423; // RFC4918 |
|
65 | + const FAILED_DEPENDENCY = 424; // RFC4918 |
|
66 | + const RESERVED_FOR_WEBDAV_ADVANCED_COLLECTIONS_EXPIRED_PROPOSAL = 425; // RFC2817 |
|
67 | + const UPGRADE_REQUIRED = 426; // RFC2817 |
|
68 | + const PRECONDITION_REQUIRED = 428; // RFC6585 |
|
69 | + const TOO_MANY_REQUESTS = 429; // RFC6585 |
|
70 | + const REQUEST_HEADER_FIELDS_TOO_LARGE = 431; // RFC6585 |
|
71 | 71 | const INTERNAL_SERVER_ERROR = 500; |
72 | 72 | const NOT_IMPLEMENTED = 501; |
73 | 73 | const BAD_GATEWAY = 502; |
74 | 74 | const SERVICE_UNAVAILABLE = 503; |
75 | 75 | const GATEWAY_TIMEOUT = 504; |
76 | 76 | const VERSION_NOT_SUPPORTED = 505; |
77 | - const VARIANT_ALSO_NEGOTIATES_EXPERIMENTAL = 506; // RFC2295 |
|
78 | - const INSUFFICIENT_STORAGE = 507; // RFC4918 |
|
79 | - const LOOP_DETECTED = 508; // RFC5842 |
|
80 | - const NOT_EXTENDED = 510; // RFC2774 |
|
81 | - const NETWORK_AUTHENTICATION_REQUIRED = 511; // RFC6585 |
|
77 | + const VARIANT_ALSO_NEGOTIATES_EXPERIMENTAL = 506; // RFC2295 |
|
78 | + const INSUFFICIENT_STORAGE = 507; // RFC4918 |
|
79 | + const LOOP_DETECTED = 508; // RFC5842 |
|
80 | + const NOT_EXTENDED = 510; // RFC2774 |
|
81 | + const NETWORK_AUTHENTICATION_REQUIRED = 511; // RFC6585 |
|
82 | 82 | |
83 | 83 | private static $codes = [ |
84 | 84 | 100 => 'Continue', |
@@ -30,7 +30,7 @@ |
||
30 | 30 | break; |
31 | 31 | } |
32 | 32 | |
33 | - $colorizedMessage .= $line . "\n"; |
|
33 | + $colorizedMessage .= $line."\n"; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | return trim($colorizedMessage); |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | return false; |
118 | 118 | } |
119 | 119 | |
120 | - return (bool) $module->_depends(); |
|
120 | + return (bool)$module->_depends(); |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | /** |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | return $moduleName; |
223 | 223 | } |
224 | 224 | |
225 | - return self::MODULE_NAMESPACE . $moduleName; |
|
225 | + return self::MODULE_NAMESPACE.$moduleName; |
|
226 | 226 | } |
227 | 227 | |
228 | 228 | /** |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | throw new ModuleException($module, 'Module requires method _inject to be defined to accept dependencies'); |
315 | 315 | } |
316 | 316 | |
317 | - $dependencies = array_map(function ($dependency) { |
|
317 | + $dependencies = array_map(function($dependency) { |
|
318 | 318 | return $this->create($dependency, false); |
319 | 319 | }, $this->getConfiguredDependencies($moduleName)); |
320 | 320 |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | |
21 | 21 | public static function connect($dsn, $user, $password) |
22 | 22 | { |
23 | - throw new \Exception(__CLASS__ . '::connect() - hm, it looked like this method had become obsolete...'); |
|
23 | + throw new \Exception(__CLASS__.'::connect() - hm, it looked like this method had become obsolete...'); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | { |
158 | 158 | $cmd = sprintf( |
159 | 159 | 'mongo %s %s%s', |
160 | - $this->host . '/' . $this->dbName, |
|
160 | + $this->host.'/'.$this->dbName, |
|
161 | 161 | $this->createUserPasswordCmdString(), |
162 | 162 | escapeshellarg($dumpFile) |
163 | 163 | ); |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | "tar -tf %s | awk 'BEGIN { FS = \"/\" } ; { print $1 }' | uniq", |
185 | 185 | escapeshellarg($dumpFile) |
186 | 186 | ); |
187 | - $dirCountCmd = $getDirCmd . ' | wc -l'; |
|
187 | + $dirCountCmd = $getDirCmd.' | wc -l'; |
|
188 | 188 | if (trim(shell_exec($dirCountCmd)) !== '1') { |
189 | 189 | throw new ModuleException( |
190 | 190 | $this, |
@@ -86,12 +86,12 @@ discard block |
||
86 | 86 | |
87 | 87 | public function _initialize() |
88 | 88 | { |
89 | - $initAutoloaderFile = Configuration::projectDir() . 'init_autoloader.php'; |
|
89 | + $initAutoloaderFile = Configuration::projectDir().'init_autoloader.php'; |
|
90 | 90 | if (file_exists($initAutoloaderFile)) { |
91 | 91 | require $initAutoloaderFile; |
92 | 92 | } |
93 | 93 | |
94 | - $this->applicationConfig = require Configuration::projectDir() . $this->config['config']; |
|
94 | + $this->applicationConfig = require Configuration::projectDir().$this->config['config']; |
|
95 | 95 | if (isset($this->applicationConfig['module_listener_options']['config_cache_enabled'])) { |
96 | 96 | $this->applicationConfig['module_listener_options']['config_cache_enabled'] = false; |
97 | 97 | } |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | private function addInternalDomain($route) |
251 | 251 | { |
252 | 252 | $regex = ReflectionHelper::readPrivateProperty($route, 'regex'); |
253 | - $this->domainCollector []= '/^' . $regex . '$/'; |
|
253 | + $this->domainCollector [] = '/^'.$regex.'$/'; |
|
254 | 254 | } |
255 | 255 | |
256 | 256 | public function _parts() |
@@ -104,7 +104,7 @@ |
||
104 | 104 | |
105 | 105 | // Reset the old database if there is one |
106 | 106 | if ($this->oldDb) { |
107 | - $this->app->singleton('db', function () { |
|
107 | + $this->app->singleton('db', function() { |
|
108 | 108 | return $this->oldDb; |
109 | 109 | }); |
110 | 110 | Model::setConnectionResolver($this->oldDb); |