Completed
Push — SF4 ( 4699a1...dd087e )
by Laurent
08:29
created
src/Controller/UserController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Entity/Contact.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -319,6 +319,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Entity/Settings/Diverse/FamilyLog.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -255,12 +255,12 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Form/Type/FamilyLogSelectType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
                 }]
Please login to merge, or discard this patch.
src/Entity/Settings/Article.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -181,9 +181,9 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Entity/Settings/Diverse/Tva.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
98 98
      */
99 99
     public function __toString()
100 100
     {
101
-        return (string)$this->getName();
101
+        return (string) $this->getName();
102 102
     }
103 103
 }
Please login to merge, or discard this patch.
src/Repository/Settings/SupplierRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Entity/Staff/User2.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -131,6 +131,7 @@
 block discarded – undo
131 131
 
132 132
     /**
133 133
      * Set the value of isActive
134
+     * @param boolean $isActive
134 135
      */
135 136
     public function setIsActive($isActive) :self
136 137
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
     {
111 111
         if (empty($this->roles)) {
112 112
             // guarantee every user at least has ROLE_USER
113
-            $roles[] =  'ROLE_USER';
113
+            $roles[] = 'ROLE_USER';
114 114
         }
115 115
         $roles = $this->roles;
116 116
 
Please login to merge, or discard this patch.
src/Controller/SecurityController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function registration(Request $request, ObjectManager $manager, UserPasswordEncoderInterface $encoder)
21 21
     {
22 22
         $user = new User2();
23
-        $form = $this->createForm(RegistrationType::class, $user, ['roles' => $this->getExistingRoles(),]);
23
+        $form = $this->createForm(RegistrationType::class, $user, ['roles' => $this->getExistingRoles(), ]);
24 24
 
25 25
         $form->handleRequest($request);
26 26
 
Please login to merge, or discard this patch.