@@ -51,13 +51,13 @@ |
||
| 51 | 51 | |
| 52 | 52 | foreach ($securityRoles as $securityRole) { |
| 53 | 53 | if (!$user->hasRole($securityRole)) { |
| 54 | - $output->writeln(sprintf('<error>User "%s" didn\'t have "%s" Security role.</error>', (string)$user, $securityRole)); |
|
| 54 | + $output->writeln(sprintf('<error>User "%s" didn\'t have "%s" Security role.</error>', (string) $user, $securityRole)); |
|
| 55 | 55 | $error = true; |
| 56 | 56 | continue; |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | $user->removeRole($securityRole); |
| 60 | - $output->writeln(sprintf('Security role <comment>%s</comment> has been removed from user <comment>%s</comment>', $securityRole, (string)$user)); |
|
| 60 | + $output->writeln(sprintf('Security role <comment>%s</comment> has been removed from user <comment>%s</comment>', $securityRole, (string) $user)); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | if (!$error) { |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | The <info>sylius:user:demote</info> command demotes a user by removing security roles |
| 39 | 39 | |
| 40 | 40 | <info>php app/console sylius:user:demote [email protected]</info> |
| 41 | -EOT |
|
| 41 | +eot |
|
| 42 | 42 | ); |
| 43 | 43 | } |
| 44 | 44 | |
@@ -163,7 +163,7 @@ |
||
| 163 | 163 | */ |
| 164 | 164 | public function orderBy($field, $direction) |
| 165 | 165 | { |
| 166 | - $this->orderBys = [ $field => $direction ]; |
|
| 166 | + $this->orderBys = [$field => $direction]; |
|
| 167 | 167 | } |
| 168 | 168 | |
| 169 | 169 | /** |
@@ -51,13 +51,13 @@ |
||
| 51 | 51 | |
| 52 | 52 | foreach ($securityRoles as $securityRole) { |
| 53 | 53 | if ($user->hasRole($securityRole)) { |
| 54 | - $output->writeln(sprintf('<error>User "%s" did already have "%s" security role.</error>', (string)$user, $securityRole)); |
|
| 54 | + $output->writeln(sprintf('<error>User "%s" did already have "%s" security role.</error>', (string) $user, $securityRole)); |
|
| 55 | 55 | $error = true; |
| 56 | 56 | continue; |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | $user->addRole($securityRole); |
| 60 | - $output->writeln(sprintf('Security role <comment>%s</comment> has been added to user <comment>%s</comment>', $securityRole, (string)$user)); |
|
| 60 | + $output->writeln(sprintf('Security role <comment>%s</comment> has been added to user <comment>%s</comment>', $securityRole, (string) $user)); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | if (!$error) { |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | The <info>sylius:user:promote</info> command promotes a user by adding security roles |
| 39 | 39 | |
| 40 | 40 | <info>php app/console sylius:user:promote [email protected]</info> |
| 41 | -EOT |
|
| 41 | +eot |
|
| 42 | 42 | ); |
| 43 | 43 | } |
| 44 | 44 | |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $documentManager->getClassMetadata('stdClass')->willReturn($metadata); |
| 50 | 50 | $metadata->nodename = null; |
| 51 | 51 | |
| 52 | - $this->shouldThrow(new \RuntimeException('In order to use the node name filter on "stdClass" it is necessary to map a field as the "nodename"'))->during('onEvent', [ $event ]); |
|
| 52 | + $this->shouldThrow(new \RuntimeException('In order to use the node name filter on "stdClass" it is necessary to map a field as the "nodename"'))->during('onEvent', [$event]); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | function it_should_clean_the_name( |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | $metadata->idGenerator = 'foo'; |
| 51 | 51 | |
| 52 | 52 | $this->shouldThrow(new \RuntimeException('Document of class "stdClass" must be using the GENERATOR_TYPE_PARENT identificatio strategy (value 3), it is current using "foo" (this may be an automatic configuration: be sure to map both the `nodename` and the `parentDocument`).'))->during( |
| 53 | - 'onEvent', [ $event ] |
|
| 53 | + 'onEvent', [$event] |
|
| 54 | 54 | ); |
| 55 | 55 | } |
| 56 | 56 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | 'A default parent path has been specified, but no parent mapping has been applied to document "stdClass"' |
| 59 | 59 | ))->during( |
| 60 | 60 | 'onPreCreate', |
| 61 | - [ $event ] |
|
| 61 | + [$event] |
|
| 62 | 62 | ); |
| 63 | 63 | } |
| 64 | 64 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | 'Document at default parent path "/path/to" does not exist. `autocreate` was set to "false"' |
| 85 | 85 | ))->during( |
| 86 | 86 | 'onPreCreate', |
| 87 | - [ $event ] |
|
| 87 | + [$event] |
|
| 88 | 88 | ); |
| 89 | 89 | } |
| 90 | 90 | |
@@ -187,7 +187,7 @@ |
||
| 187 | 187 | /** |
| 188 | 188 | * @param string $taxRateAmount |
| 189 | 189 | * |
| 190 | - * @return string |
|
| 190 | + * @return integer |
|
| 191 | 191 | */ |
| 192 | 192 | private function getAmountFromString($taxRateAmount) |
| 193 | 193 | { |
@@ -212,6 +212,6 @@ |
||
| 212 | 212 | */ |
| 213 | 213 | private function getCodeFromNameAndZoneCode($taxRateName, $zoneCode) |
| 214 | 214 | { |
| 215 | - return $this->getCodeFromName($taxRateName).'_'.strtolower($zoneCode); |
|
| 215 | + return $this->getCodeFromName($taxRateName) . '_' . strtolower($zoneCode); |
|
| 216 | 216 | } |
| 217 | 217 | } |
@@ -21,6 +21,7 @@ discard block |
||
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | 23 | * @param string $name |
| 24 | + * @return void |
|
| 24 | 25 | */ |
| 25 | 26 | public function chooseName($name); |
| 26 | 27 | |
@@ -28,6 +29,7 @@ discard block |
||
| 28 | 29 | * @param string $name |
| 29 | 30 | * @param string $code |
| 30 | 31 | * @param string|null $abbreviation |
| 32 | + * @return void |
|
| 31 | 33 | */ |
| 32 | 34 | public function addProvince($name, $code, $abbreviation = null); |
| 33 | 35 | } |
@@ -18,7 +18,14 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | interface UpdatePageInterface extends BaseUpdatePageInterface |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function enable(); |
| 25 | + |
|
| 26 | + /** |
|
| 27 | + * @return void |
|
| 28 | + */ |
|
| 22 | 29 | public function disable(); |
| 23 | 30 | |
| 24 | 31 | /** |
@@ -44,28 +51,36 @@ discard block |
||
| 44 | 51 | * @param string $name |
| 45 | 52 | * @param string $code |
| 46 | 53 | * @param string|null $abbreviation |
| 54 | + * @return void |
|
| 47 | 55 | */ |
| 48 | 56 | public function addProvince($name, $code, $abbreviation = null); |
| 49 | 57 | |
| 50 | 58 | /** |
| 51 | 59 | * @param string $provinceName |
| 60 | + * @return void |
|
| 52 | 61 | */ |
| 53 | 62 | public function removeProvince($provinceName); |
| 54 | 63 | |
| 64 | + /** |
|
| 65 | + * @return void |
|
| 66 | + */ |
|
| 55 | 67 | public function clickAddProvinceButton(); |
| 56 | 68 | |
| 57 | 69 | /** |
| 58 | 70 | * @param string $provinceName |
| 71 | + * @return void |
|
| 59 | 72 | */ |
| 60 | 73 | public function nameProvince($provinceName); |
| 61 | 74 | |
| 62 | 75 | /** |
| 63 | 76 | * @param string $provinceName |
| 77 | + * @return void |
|
| 64 | 78 | */ |
| 65 | 79 | public function removeProvinceName($provinceName); |
| 66 | 80 | |
| 67 | 81 | /** |
| 68 | 82 | * @param string $provinceCode |
| 83 | + * @return void |
|
| 69 | 84 | */ |
| 70 | 85 | public function specifyProvinceCode($provinceCode); |
| 71 | 86 | } |