Completed
Push — sf2.7 ( 27ae11...c3193d )
by Laurent
03:16
created
src/AppBundle/Controller/AbstractController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      */
172 172
     protected function setOrder($name, $field, $type = 'ASC')
173 173
     {
174
-        $this->getRequest()->getSession()->set('sort.' . $name, array('field' => $field, 'type' => $type));
174
+        $this->getRequest()->getSession()->set('sort.'.$name, array('field' => $field, 'type' => $type));
175 175
     }
176 176
 
177 177
     /**
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     {
183 183
         $session = $this->getRequest()->getSession();
184 184
 
185
-        return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null;
185
+        return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null;
186 186
     }
187 187
 
188 188
     /**
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
     {
194 194
         $alias = current($qb->getDQLPart('from'))->getAlias();
195 195
         if (is_array($order = $this->getOrder($name))) {
196
-            $qb->orderBy($alias . '.' . $order['field'], $order['type']);
196
+            $qb->orderBy($alias.'.'.$order['field'], $order['type']);
197 197
         }
198 198
     }
199 199
 
Please login to merge, or discard this patch.
src/AppBundle/Entity/Inventory.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     /**
155 155
      * Get amount
156 156
      *
157
-     * @return string
157
+     * @return double
158 158
      */
159 159
     public function getAmount()
160 160
     {
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     /**
178 178
      * Get status
179 179
      *
180
-     * @return integer
180
+     * @return boolean
181 181
      */
182 182
     public function getStatus()
183 183
     {
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     /**
211 211
      * Get articles
212 212
      *
213
-     * @return \Doctrine\Common\Collections\Collection
213
+     * @return string
214 214
      */
215 215
     public function getArticles()
216 216
     {
Please login to merge, or discard this patch.
src/AppBundle/Entity/InventoryArticles.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
209 209
     /**
210 210
      * Get unit_storage
211 211
      *
212
-     * @return \AppBundle\Entity\UnitStorage
212
+     * @return string
213 213
      */
214 214
     public function getUnitStorage()
215 215
     {
Please login to merge, or discard this patch.