@@ -18,7 +18,7 @@ |
||
| 18 | 18 | |
| 19 | 19 | public function load(ContainerBuilder $container, array $config) |
| 20 | 20 | { |
| 21 | - $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/services')); |
|
| 21 | + $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/services')); |
|
| 22 | 22 | $loader->load('core.yml'); |
| 23 | 23 | $loader->load('fakers.yml'); |
| 24 | 24 | $loader->load('guessers.yml'); |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | { |
| 62 | 62 | foreach ($this->records as $record) { |
| 63 | 63 | $entity = $record->getEntity(); |
| 64 | - if (method_exists($entity, '__toString') && (string) $entity === $value) { |
|
| 64 | + if (method_exists($entity, '__toString') && (string)$entity === $value) { |
|
| 65 | 65 | return $record; |
| 66 | 66 | } |
| 67 | 67 | } |
@@ -12,10 +12,10 @@ |
||
| 12 | 12 | { |
| 13 | 13 | $managerDefinition = $container->getDefinition('friendly.guesser.manager'); |
| 14 | 14 | foreach (array_keys($container->findTaggedServiceIds('friendly.format.guesser')) as $id) { |
| 15 | - $managerDefinition->addMethodCall('addGuesser', [ new Reference($id) ]); |
|
| 15 | + $managerDefinition->addMethodCall('addGuesser', [new Reference($id)]); |
|
| 16 | 16 | $guesserDefinition = $container->getDefinition($id); |
| 17 | 17 | foreach (array_keys($container->findTaggedServiceIds(sprintf('%s.faker', $id))) as $id2) { |
| 18 | - $guesserDefinition->addMethodCall('addFaker', [ new Reference($id2) ]); |
|
| 18 | + $guesserDefinition->addMethodCall('addFaker', [new Reference($id2)]); |
|
| 19 | 19 | } |
| 20 | 20 | } |
| 21 | 21 | } |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | { |
| 13 | 13 | return array_reduce( |
| 14 | 14 | $this->nodes, |
| 15 | - function ($previous, $line) { |
|
| 15 | + function($previous, $line) { |
|
| 16 | 16 | return array_merge($previous, $line); |
| 17 | 17 | }, |
| 18 | 18 | [] |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | { |
| 58 | 58 | return array_filter( |
| 59 | 59 | $this->getNodes(), |
| 60 | - function ($e) use ($content) { |
|
| 60 | + function($e) use ($content) { |
|
| 61 | 61 | return $e->getContent() === $content; |
| 62 | 62 | } |
| 63 | 63 | ); |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | public function getReflectionsFromMetadata($metadata) |
| 37 | 37 | { |
| 38 | 38 | return array_map( |
| 39 | - function ($e) { |
|
| 39 | + function($e) { |
|
| 40 | 40 | return $this->getReflectionClass($e->name); |
| 41 | 41 | }, |
| 42 | 42 | $metadata |
@@ -11,9 +11,9 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | class HttpBasicExtension implements SecurityExtensionInterface |
| 13 | 13 | { |
| 14 | - public function secureClient(Client $client, RequestBuilder $builder) |
|
| 15 | - { |
|
| 16 | - } |
|
| 14 | + public function secureClient(Client $client, RequestBuilder $builder) |
|
| 15 | + { |
|
| 16 | + } |
|
| 17 | 17 | |
| 18 | 18 | public function secureRequest(Request $request, RequestBuilder $builder) |
| 19 | 19 | { |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | { |
| 28 | 28 | if (1 === $this->getDimentions($array)) { |
| 29 | 29 | |
| 30 | - return sprintf('|%s|', implode('|', array_map(function ($e) { return sprintf(' %s ', trim($e)); }, $array))); |
|
| 30 | + return sprintf('|%s|', implode('|', array_map(function($e) { return sprintf(' %s ', trim($e)); }, $array))); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | $sizes = array(); |
@@ -49,15 +49,15 @@ discard block |
||
| 49 | 49 | $lines[] = sprintf('|%s|', implode('|', $cells)); |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | - return implode("\n", $lines). "\n"; |
|
| 52 | + return implode("\n", $lines)."\n"; |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | public function listToArray($list, $delimiters = [', ', ' and '], $parser = "#||#") |
| 56 | 56 | { |
| 57 | - $list = str_replace('"', '', $list); |
|
| 57 | + $list = str_replace('"', '', $list); |
|
| 58 | 58 | |
| 59 | 59 | foreach ($delimiters as $delimiter) { |
| 60 | - $list = str_replace($delimiter, $parser, $list); |
|
| 60 | + $list = str_replace($delimiter, $parser, $list); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | if (!is_string($list)) { |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $deep++; |
| 83 | 83 | foreach ($array as $elem) { |
| 84 | 84 | if (is_array($elem)) { |
| 85 | - $deep = max([ $this->goDeeper($elem, $deep), $deep ]); |
|
| 85 | + $deep = max([$this->goDeeper($elem, $deep), $deep]); |
|
| 86 | 86 | } |
| 87 | 87 | } |
| 88 | 88 | |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | private function explode($value) |
| 98 | 98 | { |
| 99 | 99 | if (!is_array($value)) { |
| 100 | - return (string) $value; |
|
| 100 | + return (string)$value; |
|
| 101 | 101 | } else { |
| 102 | 102 | return $this->formater->tableToString($value); |
| 103 | 103 | } |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | { |
| 7 | 7 | public function supports(array $mapping) |
| 8 | 8 | { |
| 9 | - $mapping = array_merge([ 'type' => null ], $mapping); |
|
| 9 | + $mapping = array_merge(['type' => null], $mapping); |
|
| 10 | 10 | |
| 11 | 11 | return $mapping['type'] === 'smallint'; |
| 12 | 12 | } |