@@ -22,14 +22,14 @@ discard block |
||
| 22 | 22 | 'PHP_AUTH_PW' => 'unittest', |
| 23 | 23 | ) ); |
| 24 | 24 | |
| 25 | - $requestStack = self::getContainer()->get('request_stack'); |
|
| 25 | + $requestStack = self::getContainer()->get( 'request_stack' ); |
|
| 26 | 26 | try { |
| 27 | 27 | $requestStack->getSession(); |
| 28 | - } catch (SessionNotFoundException) { |
|
| 29 | - $session = self::getContainer()->get('session.factory')->createSession(); |
|
| 28 | + } catch( SessionNotFoundException ) { |
|
| 29 | + $session = self::getContainer()->get( 'session.factory' )->createSession(); |
|
| 30 | 30 | $request = new Request(); |
| 31 | - $request->setSession($session); |
|
| 32 | - $requestStack->push($request); |
|
| 31 | + $request->setSession( $session ); |
|
| 32 | + $requestStack->push( $request ); |
|
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | |
| 168 | 168 | $this->client->request( 'OPTIONS', '/unittest/de/EUR/jsonapi' ); |
| 169 | 169 | $optJson = json_decode( $this->client->getResponse()->getContent(), true ); |
| 170 | -var_dump($this->client->getResponse()->getContent() ); |
|
| 170 | +var_dump( $this->client->getResponse()->getContent() ); |
|
| 171 | 171 | $this->assertGreaterThan( 8, count( $optJson['meta']['resources'] ) ); |
| 172 | 172 | |
| 173 | 173 | // catalog root |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | /** |
| 12 | 12 | * {@inheritdoc} |
| 13 | 13 | */ |
| 14 | - public function registerBundles() : \Traversable|array |
|
| 14 | + public function registerBundles() : \Traversable | array |
|
| 15 | 15 | { |
| 16 | 16 | return array( |
| 17 | 17 | new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(), |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | */ |
| 94 | 94 | protected function addCache( \Aimeos\MShop\ContextIface $context ) |
| 95 | 95 | { |
| 96 | - $cache = (new \Aimeos\MAdmin\Cache\Manager\Standard( $context ))->getCache(); |
|
| 96 | + $cache = ( new \Aimeos\MAdmin\Cache\Manager\Standard( $context ) )->getCache(); |
|
| 97 | 97 | |
| 98 | 98 | return $context->setCache( $cache ); |
| 99 | 99 | } |
@@ -14,102 +14,102 @@ discard block |
||
| 14 | 14 | use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface; |
| 15 | 15 | |
| 16 | 16 | |
| 17 | -#[ORM\Entity(repositoryClass: UserRepository::class)] |
|
| 17 | +#[ORM\Entity( repositoryClass: UserRepository::class )] |
|
| 18 | 18 | class User implements UserInterface |
| 19 | 19 | { |
| 20 | 20 | #[ORM\Id] |
| 21 | - #[ORM\Column(name: "id", type: "integer")] |
|
| 22 | - #[ORM\GeneratedValue(strategy: "AUTO")] |
|
| 21 | + #[ORM\Column( name: "id", type: "integer" )] |
|
| 22 | + #[ORM\GeneratedValue( strategy: "AUTO" )] |
|
| 23 | 23 | protected $id; |
| 24 | 24 | |
| 25 | - #[ORM\Column(name: "siteid", type: "string", length: 255)] |
|
| 25 | + #[ORM\Column( name: "siteid", type: "string", length: 255 )] |
|
| 26 | 26 | protected $siteid; |
| 27 | 27 | |
| 28 | - #[ORM\Column(name: "label", type: "string", length: 255)] |
|
| 28 | + #[ORM\Column( name: "label", type: "string", length: 255 )] |
|
| 29 | 29 | protected $label; |
| 30 | 30 | |
| 31 | - #[ORM\Column(name: "code", type: "string", length: 255)] |
|
| 31 | + #[ORM\Column( name: "code", type: "string", length: 255 )] |
|
| 32 | 32 | protected $username; |
| 33 | 33 | |
| 34 | - #[ORM\Column(name: "password", type: "string", length: 255)] |
|
| 34 | + #[ORM\Column( name: "password", type: "string", length: 255 )] |
|
| 35 | 35 | protected $password; |
| 36 | 36 | |
| 37 | - #[ORM\Column(name: "status", type: "smallint")] |
|
| 37 | + #[ORM\Column( name: "status", type: "smallint" )] |
|
| 38 | 38 | protected $isActive; |
| 39 | 39 | |
| 40 | - #[ORM\Column(name: "salutation", type: "string", length: 8)] |
|
| 40 | + #[ORM\Column( name: "salutation", type: "string", length: 8 )] |
|
| 41 | 41 | protected $salutation = ''; |
| 42 | 42 | |
| 43 | - #[ORM\Column(name: "company", type: "string", length: 100)] |
|
| 43 | + #[ORM\Column( name: "company", type: "string", length: 100 )] |
|
| 44 | 44 | protected $company = ''; |
| 45 | 45 | |
| 46 | - #[ORM\Column(name: "vatid", type: "string", length: 32)] |
|
| 46 | + #[ORM\Column( name: "vatid", type: "string", length: 32 )] |
|
| 47 | 47 | protected $vatid = ''; |
| 48 | 48 | |
| 49 | - #[ORM\Column(name: "title", type: "string", length: 64)] |
|
| 49 | + #[ORM\Column( name: "title", type: "string", length: 64 )] |
|
| 50 | 50 | protected $title = ''; |
| 51 | 51 | |
| 52 | - #[ORM\Column(name: "firstname", type: "string", length: 64)] |
|
| 52 | + #[ORM\Column( name: "firstname", type: "string", length: 64 )] |
|
| 53 | 53 | protected $firstname = ''; |
| 54 | 54 | |
| 55 | - #[ORM\Column(name: "lastname", type: "string", length: 64)] |
|
| 55 | + #[ORM\Column( name: "lastname", type: "string", length: 64 )] |
|
| 56 | 56 | protected $lastname = ''; |
| 57 | 57 | |
| 58 | - #[ORM\Column(name: "address1", type: "string", length: 200)] |
|
| 58 | + #[ORM\Column( name: "address1", type: "string", length: 200 )] |
|
| 59 | 59 | protected $address1 = ''; |
| 60 | 60 | |
| 61 | - #[ORM\Column(name: "address2", type: "string", length: 200)] |
|
| 61 | + #[ORM\Column( name: "address2", type: "string", length: 200 )] |
|
| 62 | 62 | protected $address2 = ''; |
| 63 | 63 | |
| 64 | - #[ORM\Column(name: "address3", type: "string", length: 200)] |
|
| 64 | + #[ORM\Column( name: "address3", type: "string", length: 200 )] |
|
| 65 | 65 | protected $address3 = ''; |
| 66 | 66 | |
| 67 | - #[ORM\Column(name: "postal", type: "string", length: 16)] |
|
| 67 | + #[ORM\Column( name: "postal", type: "string", length: 16 )] |
|
| 68 | 68 | protected $postal = ''; |
| 69 | 69 | |
| 70 | - #[ORM\Column(name: "city", type: "string", length: 200)] |
|
| 70 | + #[ORM\Column( name: "city", type: "string", length: 200 )] |
|
| 71 | 71 | protected $city = ''; |
| 72 | 72 | |
| 73 | - #[ORM\Column(name: "state", type: "string", length: 200)] |
|
| 73 | + #[ORM\Column( name: "state", type: "string", length: 200 )] |
|
| 74 | 74 | protected $state = ''; |
| 75 | 75 | |
| 76 | - #[ORM\Column(name: "langid", type: "string", length: 5, nullable: true)] |
|
| 76 | + #[ORM\Column( name: "langid", type: "string", length: 5, nullable: true )] |
|
| 77 | 77 | protected $langid = ''; |
| 78 | 78 | |
| 79 | - #[ORM\Column(name: "countryid", type: "string", length: 2, nullable: true)] |
|
| 79 | + #[ORM\Column( name: "countryid", type: "string", length: 2, nullable: true )] |
|
| 80 | 80 | protected $countryid = ''; |
| 81 | 81 | |
| 82 | - #[ORM\Column(name: "telephone", type: "string", length: 32)] |
|
| 82 | + #[ORM\Column( name: "telephone", type: "string", length: 32 )] |
|
| 83 | 83 | protected $telephone = ''; |
| 84 | 84 | |
| 85 | - #[ORM\Column(name: "telefax", type: "string", length: 32)] |
|
| 85 | + #[ORM\Column( name: "telefax", type: "string", length: 32 )] |
|
| 86 | 86 | protected $telefax = ''; |
| 87 | 87 | |
| 88 | - #[ORM\Column(name: "email", type: "string", length: 255)] |
|
| 88 | + #[ORM\Column( name: "email", type: "string", length: 255 )] |
|
| 89 | 89 | protected $email = ''; |
| 90 | 90 | |
| 91 | - #[ORM\Column(name: "website", type: "string", length: 255)] |
|
| 91 | + #[ORM\Column( name: "website", type: "string", length: 255 )] |
|
| 92 | 92 | protected $website = ''; |
| 93 | 93 | |
| 94 | - #[ORM\Column(name: "longitude", type: "decimal", precision: 8, scale: 6, nullable: true)] |
|
| 94 | + #[ORM\Column( name: "longitude", type: "decimal", precision: 8, scale: 6, nullable: true )] |
|
| 95 | 95 | protected $longitude; |
| 96 | 96 | |
| 97 | - #[ORM\Column(name: "latitude", type: "decimal", precision: 8, scale: 6, nullable: true)] |
|
| 97 | + #[ORM\Column( name: "latitude", type: "decimal", precision: 8, scale: 6, nullable: true )] |
|
| 98 | 98 | protected $latitude; |
| 99 | 99 | |
| 100 | - #[ORM\Column(name: "birthday", type: "date", nullable: true)] |
|
| 100 | + #[ORM\Column( name: "birthday", type: "date", nullable: true )] |
|
| 101 | 101 | protected $birthday; |
| 102 | 102 | |
| 103 | - #[ORM\Column(name: "vdate", type: "date", nullable: true)] |
|
| 103 | + #[ORM\Column( name: "vdate", type: "date", nullable: true )] |
|
| 104 | 104 | protected $vdate; |
| 105 | 105 | |
| 106 | - #[ORM\Column(name: "ctime", type: "datetime")] |
|
| 106 | + #[ORM\Column( name: "ctime", type: "datetime" )] |
|
| 107 | 107 | protected $ctime; |
| 108 | 108 | |
| 109 | - #[ORM\Column(name: "mtime", type: "datetime")] |
|
| 109 | + #[ORM\Column( name: "mtime", type: "datetime" )] |
|
| 110 | 110 | protected $mtime; |
| 111 | 111 | |
| 112 | - #[ORM\Column(type: 'string', length: 180, unique: true)] |
|
| 112 | + #[ORM\Column( type: 'string', length: 180, unique: true )] |
|
| 113 | 113 | protected $editor = ''; |
| 114 | 114 | |
| 115 | 115 | |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | /** |
| 159 | 159 | * @inheritDoc |
| 160 | 160 | */ |
| 161 | - public function setPassword(string $password): self |
|
| 161 | + public function setPassword( string $password ): self |
|
| 162 | 162 | { |
| 163 | 163 | $this->password = $password; |
| 164 | 164 | return $this; |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | * @package symfony |
| 24 | 24 | * @subpackage Command |
| 25 | 25 | */ |
| 26 | -#[AsCommand(name: 'aimeos:jobs', description: 'Executes the job controllers')] |
|
| 26 | +#[AsCommand( name: 'aimeos:jobs', description: 'Executes the job controllers' )] |
|
| 27 | 27 | class JobsCommand extends Command |
| 28 | 28 | { |
| 29 | 29 | private $container; |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | * @package symfony |
| 24 | 24 | * @subpackage Command |
| 25 | 25 | */ |
| 26 | -#[AsCommand(name: 'aimeos:clear', description: 'Clears the content cache')] |
|
| 26 | +#[AsCommand( name: 'aimeos:clear', description: 'Clears the content cache' )] |
|
| 27 | 27 | class ClearCommand extends Command |
| 28 | 28 | { |
| 29 | 29 | private $container; |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * @package symfony |
| 25 | 25 | * @subpackage Command |
| 26 | 26 | */ |
| 27 | -#[AsCommand(name: 'aimeos:setup', description: 'Initialize or update the Aimeos database tables')] |
|
| 27 | +#[AsCommand( name: 'aimeos:setup', description: 'Initialize or update the Aimeos database tables' )] |
|
| 28 | 28 | class SetupCommand extends Command |
| 29 | 29 | { |
| 30 | 30 | private $container; |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * @package symfony |
| 25 | 25 | * @subpackage Command |
| 26 | 26 | */ |
| 27 | -#[AsCommand(name: 'aimeos:account', description: 'Creates new (admin) accounts')] |
|
| 27 | +#[AsCommand( name: 'aimeos:account', description: 'Creates new (admin) accounts' )] |
|
| 28 | 28 | class AccountCommand extends Command |
| 29 | 29 | { |
| 30 | 30 | private $container; |