@@ -49,9 +49,6 @@ |
||
49 | 49 | /** |
50 | 50 | * {@inheritdoc} |
51 | 51 | * |
52 | - * @param RouteInterface|array $default Default route or options to construct instance of |
|
53 | - * DirectRoute. |
|
54 | - * @param bool $keepOutput |
|
55 | 52 | * |
56 | 53 | * @throws RouterException |
57 | 54 | */ |
@@ -100,7 +100,7 @@ |
||
100 | 100 | /** |
101 | 101 | * Create appropriate schema modification listener. Executed only in analysis. |
102 | 102 | * |
103 | - * @return callable |
|
103 | + * @return \Closure |
|
104 | 104 | */ |
105 | 105 | private static function __timestamps__describeListener() |
106 | 106 | { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | private static function __timestamps__saveListener() |
72 | 72 | { |
73 | - return function (EntityEvent $event, $eventName) { |
|
73 | + return function(EntityEvent $event, $eventName) { |
|
74 | 74 | $entity = $event->getEntity(); |
75 | 75 | if ($event instanceof RecordEvent && $event->isContextual()) { |
76 | 76 | switch ($eventName) { |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | private static function __timestamps__describeListener() |
106 | 106 | { |
107 | - return function (DescribeEvent $event) { |
|
107 | + return function(DescribeEvent $event) { |
|
108 | 108 | if ($event->getProperty() != 'schema') { |
109 | 109 | return; |
110 | 110 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | { |
35 | 35 | //Datetime accessor default timezone is same as currently in application |
36 | 36 | parent::__construct( |
37 | - "@" . $this->fetchTimestamp($value) |
|
37 | + "@".$this->fetchTimestamp($value) |
|
38 | 38 | ); |
39 | 39 | |
40 | 40 | $this->initial = clone $this; |
@@ -41,7 +41,7 @@ |
||
41 | 41 | */ |
42 | 42 | public function generateKey($name, $className) |
43 | 43 | { |
44 | - $hash = hash('md5', $className . '.' . $this->environment->getID()); |
|
44 | + $hash = hash('md5', $className.'.'.$this->environment->getID()); |
|
45 | 45 | |
46 | 46 | return "{$this->environment->cacheDirectory()}/{$hash}.php"; |
47 | 47 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | ViewSource $view, |
46 | 46 | string $code |
47 | 47 | ): string { |
48 | - return preg_replace_callback($this->pattern, function ($matches) use ($environment) { |
|
48 | + return preg_replace_callback($this->pattern, function($matches) use ($environment) { |
|
49 | 49 | return $environment->getValue($matches[1]); |
50 | 50 | }, $code); |
51 | 51 | } |
@@ -253,20 +253,20 @@ |
||
253 | 253 | public function createHeader(): string |
254 | 254 | { |
255 | 255 | $header = [ |
256 | - rawurlencode($this->name) . '=' . rawurlencode($this->value) |
|
256 | + rawurlencode($this->name).'='.rawurlencode($this->value) |
|
257 | 257 | ]; |
258 | 258 | |
259 | 259 | if ($this->lifetime !== null) { |
260 | - $header[] = 'Expires=' . gmdate(\DateTime::COOKIE, $this->getExpires()); |
|
261 | - $header[] = 'Max-Age=' . $this->lifetime; |
|
260 | + $header[] = 'Expires='.gmdate(\DateTime::COOKIE, $this->getExpires()); |
|
261 | + $header[] = 'Max-Age='.$this->lifetime; |
|
262 | 262 | } |
263 | 263 | |
264 | 264 | if (!empty($this->path)) { |
265 | - $header[] = 'Path=' . $this->path; |
|
265 | + $header[] = 'Path='.$this->path; |
|
266 | 266 | } |
267 | 267 | |
268 | 268 | if (!empty($this->domain)) { |
269 | - $header[] = 'Domain=' . $this->domain; |
|
269 | + $header[] = 'Domain='.$this->domain; |
|
270 | 270 | } |
271 | 271 | |
272 | 272 | if ($this->secure) { |
@@ -162,11 +162,11 @@ discard block |
||
162 | 162 | } |
163 | 163 | |
164 | 164 | while (ob_get_level() > $outputLevel + 1) { |
165 | - $output = ob_get_clean() . $output; |
|
165 | + $output = ob_get_clean().$output; |
|
166 | 166 | } |
167 | 167 | } |
168 | 168 | |
169 | - return $this->wrapResponse($response, $result, ob_get_clean() . $output); |
|
169 | + return $this->wrapResponse($response, $result, ob_get_clean().$output); |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | /** |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | Request $outerRequest, |
215 | 215 | Response $outerResponse |
216 | 216 | ): \Closure { |
217 | - $next = function ($request = null, $response = null) use ( |
|
217 | + $next = function($request = null, $response = null) use ( |
|
218 | 218 | $position, |
219 | 219 | $outerRequest, |
220 | 220 | $outerResponse |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | */ |
115 | 115 | public function fetch(array $keys, bool $fill = false, $filler = null) |
116 | 116 | { |
117 | - $result = array_intersect_key($this->all(), array_flip($keys));; |
|
117 | + $result = array_intersect_key($this->all(), array_flip($keys)); ; |
|
118 | 118 | if (!$fill) { |
119 | 119 | return $result; |
120 | 120 | } |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | $data = $this->data; |
181 | 181 | |
182 | 182 | //Generating path relative to a given name and prefix |
183 | - $path = (!empty($this->prefix) ? $this->prefix . '.' : '') . $name; |
|
183 | + $path = (!empty($this->prefix) ? $this->prefix.'.' : '').$name; |
|
184 | 184 | if (empty($path)) { |
185 | 185 | return $data; |
186 | 186 | } |