@@ -73,7 +73,7 @@ |
||
73 | 73 | * @param array $values Arguments (key=>value). Will skip n |
74 | 74 | * @param string $prefix Value prefix, "{" by default. |
75 | 75 | * @param string $postfix Value postfix "}" by default. |
76 | - * @return mixed |
|
76 | + * @return string |
|
77 | 77 | */ |
78 | 78 | function interpolate($format, array $values, $prefix = '{', $postfix = '}') |
79 | 79 | { |
@@ -50,9 +50,6 @@ |
||
50 | 50 | /** |
51 | 51 | * {@inheritdoc} |
52 | 52 | * |
53 | - * @param RouteInterface|array $default Default route or options to construct instance of |
|
54 | - * DirectRoute. |
|
55 | - * @param bool $keepOutput |
|
56 | 53 | * @throws RouterException |
57 | 54 | */ |
58 | 55 | public function __construct(ContainerInterface $container, $basePath = '/') |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | */ |
78 | 78 | private static function __timestamps__saveListener() |
79 | 79 | { |
80 | - return function (EntityEvent $event, $eventName) { |
|
80 | + return function(EntityEvent $event, $eventName) { |
|
81 | 81 | /** |
82 | 82 | * @var DataEntity $model |
83 | 83 | */ |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | */ |
112 | 112 | private static function __timestamps__describeListener() |
113 | 113 | { |
114 | - return function (DescribeEvent $event) { |
|
114 | + return function(DescribeEvent $event) { |
|
115 | 115 | if ($event->getProperty() != 'schema') { |
116 | 116 | return; |
117 | 117 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | public function getFunctions() |
35 | 35 | { |
36 | 36 | return [ |
37 | - new \Twig_SimpleFunction('spiral', function ($alias) { |
|
37 | + new \Twig_SimpleFunction('spiral', function($alias) { |
|
38 | 38 | return $this->container->get($alias); |
39 | 39 | }), |
40 | 40 | new \Twig_SimpleFunction('dump', 'dump') |
@@ -82,7 +82,7 @@ |
||
82 | 82 | $sourceLines = explode("\n", $source); |
83 | 83 | |
84 | 84 | //Step #3, no blank lines and html comments (will keep conditional commends) |
85 | - $sourceLines = array_filter($sourceLines, function ($line) { |
|
85 | + $sourceLines = array_filter($sourceLines, function($line) { |
|
86 | 86 | return trim($line); |
87 | 87 | }); |
88 | 88 |
@@ -73,7 +73,7 @@ |
||
73 | 73 | * @param array $values Arguments (key=>value). Will skip n |
74 | 74 | * @param string $prefix Value prefix, "{" by default. |
75 | 75 | * @param string $postfix Value postfix "}" by default. |
76 | - * @return mixed |
|
76 | + * @return string |
|
77 | 77 | */ |
78 | 78 | function interpolate($format, array $values, $prefix = '{', $postfix = '}') |
79 | 79 | { |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | public static function shorter($string, $limit = 300) |
74 | 74 | { |
75 | 75 | if (mb_strlen($string) + 3 > $limit) { |
76 | - return trim(mb_substr($string, 0, $limit - 3, 'UTF-8')) . '...'; |
|
76 | + return trim(mb_substr($string, 0, $limit - 3, 'UTF-8')).'...'; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | return $string; |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $bytes /= 1024; |
94 | 94 | } |
95 | 95 | |
96 | - return number_format($bytes, $unit ? $decimals : 0) . " " . $pows[$unit]; |
|
96 | + return number_format($bytes, $unit ? $decimals : 0)." ".$pows[$unit]; |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | strlen(str_replace("\t", $tabulationCost, $indent)) - $minIndent |
185 | 185 | ); |
186 | 186 | |
187 | - $line = $useIndent . substr($line, strlen($indent)); |
|
187 | + $line = $useIndent.substr($line, strlen($indent)); |
|
188 | 188 | unset($line); |
189 | 189 | } |
190 | 190 |
@@ -79,6 +79,6 @@ |
||
79 | 79 | 'name' => $name |
80 | 80 | ]); |
81 | 81 | |
82 | - return $this->reportingDirectory() . $filename; |
|
82 | + return $this->reportingDirectory().$filename; |
|
83 | 83 | } |
84 | 84 | } |
85 | 85 | \ No newline at end of file |
@@ -85,7 +85,7 @@ |
||
85 | 85 | */ |
86 | 86 | public function localeDirectory($locale) |
87 | 87 | { |
88 | - return $this->config['localesDirectory'] . $locale . '/'; |
|
88 | + return $this->config['localesDirectory'].$locale.'/'; |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
@@ -42,9 +42,9 @@ |
||
42 | 42 | */ |
43 | 43 | public function generateKey($name, $className) |
44 | 44 | { |
45 | - $hash = hash('md5', $className . '.' . $this->environment->getID()); |
|
45 | + $hash = hash('md5', $className.'.'.$this->environment->getID()); |
|
46 | 46 | |
47 | - return $this->environment->cacheDirectory() . '/' . $hash[0] . $hash[1] . '/' . $hash . '.php'; |
|
47 | + return $this->environment->cacheDirectory().'/'.$hash[0].$hash[1].'/'.$hash.'.php'; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |