@@ -194,7 +194,7 @@ |
||
194 | 194 | |
195 | 195 | $benchmark = $this->benchmark( |
196 | 196 | 'process', |
197 | - get_class($processor) . '-{' . $source->getName() |
|
197 | + get_class($processor).'-{'.$source->getName() |
|
198 | 198 | ); |
199 | 199 | |
200 | 200 | $source->getCode(); |
@@ -58,9 +58,9 @@ |
||
58 | 58 | */ |
59 | 59 | public function cacheFilename(string $path): string |
60 | 60 | { |
61 | - $hash = hash('md5', $path . '.' . $this->environment->getID()); |
|
61 | + $hash = hash('md5', $path.'.'.$this->environment->getID()); |
|
62 | 62 | |
63 | - return $this->environment->cacheDirectory() . $hash . '.php'; |
|
63 | + return $this->environment->cacheDirectory().$hash.'.php'; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
@@ -67,7 +67,7 @@ |
||
67 | 67 | $source = $this->parent->getSource($path); |
68 | 68 | |
69 | 69 | foreach ($this->modifiers as $modifier) { |
70 | - $benchmark = $this->benchmark('process', $path . '@' . get_class($modifier)); |
|
70 | + $benchmark = $this->benchmark('process', $path.'@'.get_class($modifier)); |
|
71 | 71 | try { |
72 | 72 | $source = $source->withCode( |
73 | 73 | $modifier->modify($this->environment, $source, $source->getCode()) |
@@ -57,14 +57,14 @@ |
||
57 | 57 | |
58 | 58 | //Translator options must automatically route this view name to specific domain |
59 | 59 | $domain = $this->translator->resolveDomain( |
60 | - $this->options['prefix'] . str_replace(['/', '\\'], '-', $bundle) |
|
60 | + $this->options['prefix'].str_replace(['/', '\\'], '-', $bundle) |
|
61 | 61 | ); |
62 | 62 | |
63 | 63 | //We are not forcing locale for now |
64 | 64 | |
65 | 65 | return preg_replace_callback( |
66 | 66 | $this->options['pattern'], |
67 | - function ($matches) use ($domain) { |
|
67 | + function($matches) use ($domain) { |
|
68 | 68 | return $this->translator->trans($matches[1], [], $domain); |
69 | 69 | }, |
70 | 70 | $code |
@@ -105,7 +105,7 @@ |
||
105 | 105 | * @param string $prefix Value prefix, "{" by default. |
106 | 106 | * @param string $postfix Value postfix "}" by default. |
107 | 107 | * |
108 | - * @return mixed |
|
108 | + * @return string |
|
109 | 109 | */ |
110 | 110 | function interpolate( |
111 | 111 | string $format, |
@@ -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; |
@@ -52,7 +52,7 @@ |
||
52 | 52 | { |
53 | 53 | if (!$requireScheme && stripos($url, '://') === false) { |
54 | 54 | //Allow urls without http schema |
55 | - $url = 'http://' . $url; |
|
55 | + $url = 'http://'.$url; |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | if ((bool)filter_var($url, FILTER_VALIDATE_URL)) { |