Completed
Push — Order ( 5bfbdf...92abe2 )
by Laurent
03:29
created
src/AppBundle/Controller/ArticleController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
      *
190 190
      * @param \Symfony\Component\HttpFoundation\Request $request  Form request
191 191
      * @param \AppBundle\Entity\Supplier                $supplier Supplier to desactivate
192
-     * @return array
192
+     * @return \Symfony\Component\HttpFoundation\RedirectResponse
193 193
      */
194 194
     public function changeAction(Request $request, Supplier $supplier)
195 195
     {
Please login to merge, or discard this patch.
src/AppBundle/Controller/DeliveriesController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@
 block discarded – undo
269 269
      * @Method("GET")
270 270
      * @Template()
271 271
      *
272
-     * @param \AppBundle\Entity\Inventory $orders Inventory item to print
272
+     * @param Orders $orders Inventory item to print
273 273
      * @return \Symfony\Component\HttpFoundation\Response
274 274
      */
275 275
     public function printAction(Orders $orders)
Please login to merge, or discard this patch.
src/AppBundle/Controller/AbstractController.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
      * @param Object $entity     Entity
258 258
      * @param Request $request   Request in progress
259 259
      * @param string $entityName Name of Entity
260
-     * @return array
260
+     * @return \Symfony\Component\HttpFoundation\RedirectResponse
261 261
      */
262 262
     public function abstractDeleteWithArticlesAction($entity, Request $request, $entityName)
263 263
     {
@@ -278,6 +278,9 @@  discard block
 block discarded – undo
278 278
         return $this->redirect($this->generateUrl($entityName));
279 279
     }
280 280
 
281
+    /**
282
+     * @param string $entityName
283
+     */
281 284
     private function testReturnParam($entity, $entityName)
282 285
     {
283 286
         $entityArray = ['company', 'settings', 'group', 'tva'];
Please login to merge, or discard this patch.
src/AppBundle/Helper/TimeHelper.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * get Easter date.
26 26
      *
27 27
      * @param integer $pYear
28
-     * @return timestamp
28
+     * @return integer
29 29
      */
30 30
     private function getEaster ($pYear = null)
31 31
     {
Please login to merge, or discard this patch.
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -29,22 +29,22 @@  discard block
 block discarded – undo
29 29
      */
30 30
     private function getEaster ($pYear = null)
31 31
     {
32
-	if (is_null ($pYear)) {
32
+    if (is_null ($pYear)) {
33 33
             $pYear = (int)date ('Y');
34
-	}
35
-	$nDate = $pYear - 1900;
36
-	$pAa = $nDate%19;
37
-	$pBb = floor (((7*$pAa)+1)/19);
38
-	$pCc = ((11*$pAa)-$pBb+4)%29;
39
-	$pDd = floor ($nDate/4);
40
-	$pEe = ($nDate-$pCc+$pDd+31)%7;
41
-	$pResult = 25-$pCc-$pEe;
42
-	if ($pResult > 0) {
34
+    }
35
+    $nDate = $pYear - 1900;
36
+    $pAa = $nDate%19;
37
+    $pBb = floor (((7*$pAa)+1)/19);
38
+    $pCc = ((11*$pAa)-$pBb+4)%29;
39
+    $pDd = floor ($nDate/4);
40
+    $pEe = ($nDate-$pCc+$pDd+31)%7;
41
+    $pResult = 25-$pCc-$pEe;
42
+    if ($pResult > 0) {
43 43
             $pEaster = strtotime ($pYear.'/04/'.$pResult);
44
-	} else {
44
+    } else {
45 45
             $pEaster = strtotime ($pYear.'/03/'.(31+$pResult));
46
-	}
47
-	return $pEaster;
46
+    }
47
+    return $pEaster;
48 48
     }
49 49
 
50 50
     /**
@@ -58,25 +58,25 @@  discard block
 block discarded – undo
58 58
      * @return integer  Delta next business day
59 59
      */
60 60
     function getNextOpenDay ($pDate, $pDays) {
61
-	$aBankHolidays = ['1_1', '1_5', '8_5', '14_7', '15_8', '1_11', '11_11', '25_12', ];
62
-	if (function_exists ('easter_date')) {
61
+    $aBankHolidays = ['1_1', '1_5', '8_5', '14_7', '15_8', '1_11', '11_11', '25_12', ];
62
+    if (function_exists ('easter_date')) {
63 63
             $pEaster = easter_date ((int)date('Y'), $pDate);
64
-	} else {
64
+    } else {
65 65
             $pEaster = $this->getEaster ((int)date('Y'), $pDate);
66
-	}
67
-	$aBankHolidays[] = date ('j_n',$pEaster);
68
-	$aBankHolidays[] = date ('j_n', $pEaster + (86400*39));
69
-	$aBankHolidays[] = date ('j_n', $pEaster + (86400*49));
66
+    }
67
+    $aBankHolidays[] = date ('j_n',$pEaster);
68
+    $aBankHolidays[] = date ('j_n', $pEaster + (86400*39));
69
+    $aBankHolidays[] = date ('j_n', $pEaster + (86400*49));
70 70
 
71 71
         $pEnd = $pDays * 86400;
72
-	$idn = 0;
73
-	while ($idn < $pEnd) {
74
-		$idn = strtotime ('+1 day', $idn);
75
-		if (in_array (date ('w', $pDate+$idn),array (0,6) ) || in_array (date ('j_n', $pDate+$idn), $aBankHolidays)) {
76
-			$pEnd = strtotime ('+1 day', $pEnd);
77
-			$pDays ++;
78
-		}
79
-	}
80
-	return $pDays;
72
+    $idn = 0;
73
+    while ($idn < $pEnd) {
74
+        $idn = strtotime ('+1 day', $idn);
75
+        if (in_array (date ('w', $pDate+$idn),array (0,6) ) || in_array (date ('j_n', $pDate+$idn), $aBankHolidays)) {
76
+            $pEnd = strtotime ('+1 day', $pEnd);
77
+            $pDays ++;
78
+        }
79
+    }
80
+    return $pDays;
81 81
 }
82 82
 }
Please login to merge, or discard this patch.