@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | // transform the role hierarchy in a single unique list |
| 34 | 34 | $roles = array(); |
| 35 | - array_walk_recursive($hierarchy, function ($role) use (&$roles) { |
|
| 35 | + array_walk_recursive($hierarchy, function($role) use (&$roles) { |
|
| 36 | 36 | $roles[$role] = $role; |
| 37 | 37 | }); |
| 38 | 38 | |
@@ -319,6 +319,6 @@ |
||
| 319 | 319 | */ |
| 320 | 320 | public function getCompleteAddress() |
| 321 | 321 | { |
| 322 | - return $this->address . '<br>' . $this->zipcode . ' ' . $this->town; |
|
| 322 | + return $this->address.'<br>'.$this->zipcode.' '.$this->town; |
|
| 323 | 323 | } |
| 324 | 324 | } |
@@ -255,12 +255,12 @@ |
||
| 255 | 255 | $return = ''; |
| 256 | 256 | if ($this->parent !== null) { |
| 257 | 257 | if ($this->level == 2) { |
| 258 | - $return = '|-- ' . $this->name; |
|
| 258 | + $return = '|-- '.$this->name; |
|
| 259 | 259 | } elseif ($this->level == 3) { |
| 260 | - $return = '|-- |-- ' . $this->name; |
|
| 260 | + $return = '|-- |-- '.$this->name; |
|
| 261 | 261 | } |
| 262 | 262 | } else { |
| 263 | - $return = '| ' . $this->name; |
|
| 263 | + $return = '| '.$this->name; |
|
| 264 | 264 | } |
| 265 | 265 | |
| 266 | 266 | return $return; |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | { |
| 32 | 32 | $resolver->setDefaults( |
| 33 | 33 | ['class' => 'App:Settings\Diverse\FamilyLog', |
| 34 | - 'query_builder' => function (EntityRepository $er) { |
|
| 34 | + 'query_builder' => function(EntityRepository $er) { |
|
| 35 | 35 | return $er->createQueryBuilder('f') |
| 36 | 36 | ->orderBy('f.path', 'ASC'); |
| 37 | 37 | }] |
@@ -181,9 +181,9 @@ |
||
| 181 | 181 | $this->zoneStorages = new ArrayCollection(); |
| 182 | 182 | $this->active = true; |
| 183 | 183 | $this->quantity = 0.000; |
| 184 | - $this->createAt = new \DateTime() ; |
|
| 185 | - $this->updateAt = new \DateTime() ; |
|
| 186 | - $this->deleteAt = new \DateTime('3000-12-31') ; |
|
| 184 | + $this->createAt = new \DateTime(); |
|
| 185 | + $this->updateAt = new \DateTime(); |
|
| 186 | + $this->deleteAt = new \DateTime('3000-12-31'); |
|
| 187 | 187 | } |
| 188 | 188 | |
| 189 | 189 | /** |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | public function getName() |
| 86 | 86 | { |
| 87 | - return (number_format($this->getRate() * 100, 1)) . ' %'; |
|
| 87 | + return (number_format($this->getRate() * 100, 1)).' %'; |
|
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | /** |
@@ -98,6 +98,6 @@ discard block |
||
| 98 | 98 | */ |
| 99 | 99 | public function __toString() |
| 100 | 100 | { |
| 101 | - return (string)$this->getName(); |
|
| 101 | + return (string) $this->getName(); |
|
| 102 | 102 | } |
| 103 | 103 | } |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | ->where($query->expr()->neq('s.name', ':idname')) |
| 71 | 71 | ->andWhere('s.familyLog = :flname') |
| 72 | 72 | ->andWhere('s.active = true') |
| 73 | - ->setParameters(['idname' => $supplier->getName(), 'flname' => $supplier->getFamilyLog(),]) |
|
| 73 | + ->setParameters(['idname' => $supplier->getName(), 'flname' => $supplier->getFamilyLog(), ]) |
|
| 74 | 74 | ->orderBy('s.name', 'ASC'); |
| 75 | 75 | |
| 76 | 76 | return $query; |