@@ -34,9 +34,9 @@ discard block |
||
| 34 | 34 | if (null !== $parent) { |
| 35 | 35 | $this->parent = $parent; |
| 36 | 36 | $this->parent->addChild($this); |
| 37 | - $this->path = $parent->slug() . ':' . $name->slugify(); |
|
| 37 | + $this->path = $parent->slug().':'.$name->slugify(); |
|
| 38 | 38 | if (null !== $this->parent->parent) { |
| 39 | - $this->path = $this->parent->parent->slug() . ':' . $this->parent->slug() . ':' . $name->slugify(); |
|
| 39 | + $this->path = $this->parent->parent->slug().':'.$this->parent->slug().':'.$name->slugify(); |
|
| 40 | 40 | } |
| 41 | 41 | } |
| 42 | 42 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | private function hasChildren(self $familyLog): ?array |
| 83 | 83 | { |
| 84 | 84 | if (null !== $familyLog->children) { |
| 85 | - return \array_map(static function (self $child) { |
|
| 85 | + return \array_map(static function(self $child) { |
|
| 86 | 86 | return $child->name; |
| 87 | 87 | }, $familyLog->children); |
| 88 | 88 | } |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | public static function fromPercent(string $name): self |
| 44 | 44 | { |
| 45 | 45 | \preg_match('/^(\d*)(,(\d*?)) %$/u', \trim($name), $str); |
| 46 | - $float = $str[1] . '.' . $str[3]; |
|
| 46 | + $float = $str[1].'.'.$str[3]; |
|
| 47 | 47 | |
| 48 | 48 | return new self((float) $float); |
| 49 | 49 | } |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | |
| 52 | 52 | public function getValue(): string |
| 53 | 53 | { |
| 54 | - return $this->address . "\n" . $this->zipCode . ' ' . $this->town . ', ' . $this->country; |
|
| 54 | + return $this->address."\n".$this->zipCode.' '.$this->town.', '.$this->country; |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | public function address(): string |
@@ -30,9 +30,9 @@ |
||
| 30 | 30 | { |
| 31 | 31 | // this up() migration is auto-generated, please modify it to your needs |
| 32 | 32 | $this->addSql( |
| 33 | - 'ALTER TABLE company ' . |
|
| 34 | - 'ADD zip_code VARCHAR(255) NOT NULL, ' . |
|
| 35 | - 'ADD town VARCHAR(255) NOT NULL, ' . |
|
| 33 | + 'ALTER TABLE company '. |
|
| 34 | + 'ADD zip_code VARCHAR(255) NOT NULL, '. |
|
| 35 | + 'ADD town VARCHAR(255) NOT NULL, '. |
|
| 36 | 36 | 'ADD country VARCHAR(255) NOT NULL' |
| 37 | 37 | ); |
| 38 | 38 | } |
@@ -30,31 +30,31 @@ |
||
| 30 | 30 | { |
| 31 | 31 | // this up() migration is auto-generated, please modify it to your needs |
| 32 | 32 | $this->addSql( |
| 33 | - 'CREATE TABLE company (' . |
|
| 34 | - 'uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:guid)\', ' . |
|
| 35 | - 'name VARCHAR(150) NOT NULL, ' . |
|
| 36 | - 'address VARCHAR(255) NOT NULL, ' . |
|
| 37 | - 'phone VARCHAR(255) NOT NULL, ' . |
|
| 38 | - 'facsimile VARCHAR(255) DEFAULT NULL, ' . |
|
| 39 | - 'email VARCHAR(255) NOT NULL, ' . |
|
| 40 | - 'contact VARCHAR(255) NOT NULL, ' . |
|
| 41 | - 'cellphone VARCHAR(255) NOT NULL, ' . |
|
| 42 | - 'PRIMARY KEY(uuid)' . |
|
| 33 | + 'CREATE TABLE company ('. |
|
| 34 | + 'uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:guid)\', '. |
|
| 35 | + 'name VARCHAR(150) NOT NULL, '. |
|
| 36 | + 'address VARCHAR(255) NOT NULL, '. |
|
| 37 | + 'phone VARCHAR(255) NOT NULL, '. |
|
| 38 | + 'facsimile VARCHAR(255) DEFAULT NULL, '. |
|
| 39 | + 'email VARCHAR(255) NOT NULL, '. |
|
| 40 | + 'contact VARCHAR(255) NOT NULL, '. |
|
| 41 | + 'cellphone VARCHAR(255) NOT NULL, '. |
|
| 42 | + 'PRIMARY KEY(uuid)'. |
|
| 43 | 43 | ') DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB' |
| 44 | 44 | ); |
| 45 | 45 | $this->addSql( |
| 46 | - 'CREATE TABLE messenger_messages (' . |
|
| 47 | - 'id BIGINT AUTO_INCREMENT NOT NULL, ' . |
|
| 48 | - 'body LONGTEXT NOT NULL, ' . |
|
| 49 | - 'headers LONGTEXT NOT NULL, ' . |
|
| 50 | - 'queue_name VARCHAR(190) NOT NULL, ' . |
|
| 51 | - 'created_at DATETIME NOT NULL, ' . |
|
| 52 | - 'available_at DATETIME NOT NULL, ' . |
|
| 53 | - 'delivered_at DATETIME DEFAULT NULL, ' . |
|
| 54 | - 'INDEX IDX_75EA56E0FB7336F0 (queue_name), ' . |
|
| 55 | - 'INDEX IDX_75EA56E0E3BD61CE (available_at), ' . |
|
| 56 | - 'INDEX IDX_75EA56E016BA31DB (delivered_at), ' . |
|
| 57 | - 'PRIMARY KEY(id)' . |
|
| 46 | + 'CREATE TABLE messenger_messages ('. |
|
| 47 | + 'id BIGINT AUTO_INCREMENT NOT NULL, '. |
|
| 48 | + 'body LONGTEXT NOT NULL, '. |
|
| 49 | + 'headers LONGTEXT NOT NULL, '. |
|
| 50 | + 'queue_name VARCHAR(190) NOT NULL, '. |
|
| 51 | + 'created_at DATETIME NOT NULL, '. |
|
| 52 | + 'available_at DATETIME NOT NULL, '. |
|
| 53 | + 'delivered_at DATETIME DEFAULT NULL, '. |
|
| 54 | + 'INDEX IDX_75EA56E0FB7336F0 (queue_name), '. |
|
| 55 | + 'INDEX IDX_75EA56E0E3BD61CE (available_at), '. |
|
| 56 | + 'INDEX IDX_75EA56E016BA31DB (delivered_at), '. |
|
| 57 | + 'PRIMARY KEY(id)'. |
|
| 58 | 58 | ') DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB' |
| 59 | 59 | ); |
| 60 | 60 | } |
@@ -25,8 +25,8 @@ |
||
| 25 | 25 | public function __invoke(): BinaryFileResponse |
| 26 | 26 | { |
| 27 | 27 | $projectDir = $this->getParameter('kernel.project_dir'); |
| 28 | - $dataInventoryFolder = $projectDir . '/data/Inventory'; |
|
| 29 | - $prepareFile = new \SplFileInfo($dataInventoryFolder . '/prepare.pdf'); |
|
| 28 | + $dataInventoryFolder = $projectDir.'/data/Inventory'; |
|
| 29 | + $prepareFile = new \SplFileInfo($dataInventoryFolder.'/prepare.pdf'); |
|
| 30 | 30 | |
| 31 | 31 | return new BinaryFileResponse($prepareFile); |
| 32 | 32 | } |
@@ -16,24 +16,24 @@ |
||
| 16 | 16 | protected function configureContainer(ContainerConfigurator $container): void |
| 17 | 17 | { |
| 18 | 18 | $container->import('../../../config/{packages}/*.yaml'); |
| 19 | - $container->import('../../../config/{packages}/' . $this->environment . '/*.yaml'); |
|
| 19 | + $container->import('../../../config/{packages}/'.$this->environment.'/*.yaml'); |
|
| 20 | 20 | |
| 21 | - if (\is_file(\dirname(__DIR__, 3) . '/config/services.yaml')) { |
|
| 21 | + if (\is_file(\dirname(__DIR__, 3).'/config/services.yaml')) { |
|
| 22 | 22 | $container->import('../../../config/services.yaml'); |
| 23 | - $container->import('../../../config/{services}_' . $this->environment . '.yaml'); |
|
| 24 | - } elseif (\is_file($path = \dirname(__DIR__, 3) . '/config/services.php')) { |
|
| 23 | + $container->import('../../../config/{services}_'.$this->environment.'.yaml'); |
|
| 24 | + } elseif (\is_file($path = \dirname(__DIR__, 3).'/config/services.php')) { |
|
| 25 | 25 | (require $path)($container->withPath($path), $this); |
| 26 | 26 | } |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | protected function configureRoutes(RoutingConfigurator $routes): void |
| 30 | 30 | { |
| 31 | - $routes->import('../../../config/{routes}/' . $this->environment . '/*.yaml'); |
|
| 31 | + $routes->import('../../../config/{routes}/'.$this->environment.'/*.yaml'); |
|
| 32 | 32 | $routes->import('../../../config/{routes}/*.yaml'); |
| 33 | 33 | |
| 34 | - if (\is_file(\dirname(__DIR__, 3) . '/config/routes.yaml')) { |
|
| 34 | + if (\is_file(\dirname(__DIR__, 3).'/config/routes.yaml')) { |
|
| 35 | 35 | $routes->import('../../../config/routes.yaml'); |
| 36 | - } elseif (\is_file($path = \dirname(__DIR__, 3) . '/config/routes.php')) { |
|
| 36 | + } elseif (\is_file($path = \dirname(__DIR__, 3).'/config/routes.php')) { |
|
| 37 | 37 | (require $path)($routes->withPath($path), $this); |
| 38 | 38 | } |
| 39 | 39 | } |