Completed
Push — master ( 5f5d60...a9decc )
by Michael
03:36
created
class/pcltar.lib.php 3 patches
Doc Comments   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1190,7 +1190,7 @@  discard block
 block discarded – undo
1190 1190
     /**
1191 1191
      * @param        $p_tarname
1192 1192
      * @param        $p_list
1193
-     * @param        $p_mode
1193
+     * @param        string $p_mode
1194 1194
      * @param string $p_add_dir
1195 1195
      * @param string $p_remove_dir
1196 1196
      *
@@ -1290,10 +1290,10 @@  discard block
 block discarded – undo
1290 1290
     /**
1291 1291
      * @param $p_tarname
1292 1292
      * @param $p_list
1293
-     * @param $p_mode
1293
+     * @param string $p_mode
1294 1294
      * @param $p_list_detail
1295
-     * @param $p_add_dir
1296
-     * @param $p_remove_dir
1295
+     * @param string $p_add_dir
1296
+     * @param string $p_remove_dir
1297 1297
      *
1298 1298
      * @return int
1299 1299
      */
@@ -2092,10 +2092,10 @@  discard block
 block discarded – undo
2092 2092
      * @param $p_tarname
2093 2093
      * @param $p_file_list
2094 2094
      * @param $p_list_detail
2095
-     * @param $p_mode
2096
-     * @param $p_path
2095
+     * @param string $p_mode
2096
+     * @param string $p_path
2097 2097
      * @param $p_tar_mode
2098
-     * @param $p_remove_path
2098
+     * @param string $p_remove_path
2099 2099
      *
2100 2100
      * @return int
2101 2101
      */
@@ -2648,8 +2648,8 @@  discard block
 block discarded – undo
2648 2648
      * @param $p_tarname
2649 2649
      * @param $p_index_string
2650 2650
      * @param $p_list_detail
2651
-     * @param $p_path
2652
-     * @param $p_remove_path
2651
+     * @param string $p_path
2652
+     * @param string $p_remove_path
2653 2653
      * @param $p_tar_mode
2654 2654
      *
2655 2655
      * @return int
@@ -3219,7 +3219,7 @@  discard block
 block discarded – undo
3219 3219
      * @param $p_tarname
3220 3220
      * @param $p_file_list
3221 3221
      * @param $p_list_detail
3222
-     * @param $p_tar_mode
3222
+     * @param string $p_tar_mode
3223 3223
      *
3224 3224
      * @return int
3225 3225
      */
@@ -3513,9 +3513,9 @@  discard block
 block discarded – undo
3513 3513
      * @param $p_tarname
3514 3514
      * @param $p_file_list
3515 3515
      * @param $p_list_detail
3516
-     * @param $p_tar_mode
3517
-     * @param $p_add_dir
3518
-     * @param $p_remove_dir
3516
+     * @param string $p_tar_mode
3517
+     * @param string $p_add_dir
3518
+     * @param string $p_remove_dir
3519 3519
      *
3520 3520
      * @return int
3521 3521
      */
@@ -3922,7 +3922,7 @@  discard block
 block discarded – undo
3922 3922
     // Return Values :
3923 3923
     // --------------------------------------------------------------------------------
3924 3924
     /**
3925
-     * @param $v_binary_data
3925
+     * @param string $v_binary_data
3926 3926
      * @param $v_header
3927 3927
      *
3928 3928
      * @return int
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2418,7 +2418,7 @@  discard block
 block discarded – undo
2418 2418
         $p_tar_mode
2419 2419
     ) {
2420 2420
         TrFctStart(__FILE__, __LINE__, 'PclTarHandleExtractByIndex',
2421
-                   "archive_descr='$p_tar', index_current=$p_index_current, index_start='$p_index_start', index_stop='$p_index_stop', list, path=$p_path, remove_path='$p_remove_path', tar_mode=$p_tar_mode");
2421
+                    "archive_descr='$p_tar', index_current=$p_index_current, index_start='$p_index_start', index_stop='$p_index_stop', list, path=$p_path, remove_path='$p_remove_path', tar_mode=$p_tar_mode");
2422 2422
         $v_result = 1;
2423 2423
         $v_nb     = 0;
2424 2424
 
@@ -2621,7 +2621,7 @@  discard block
 block discarded – undo
2621 2621
                 else {
2622 2622
                     if (filemtime($v_header['filename']) > $v_header['mtime']) {
2623 2623
                         TrFctMessage(__FILE__, __LINE__, 2,
2624
-                                     'Existing file ' . $v_header['filename'] . ' is newer (' . date('l dS of F Y h:i:s A', filemtime($v_header['filename'])) . ') than the extracted file (' . date('l dS of F Y h:i:s A', $v_header['mtime']) . ')');
2624
+                                        'Existing file ' . $v_header['filename'] . ' is newer (' . date('l dS of F Y h:i:s A', filemtime($v_header['filename'])) . ') than the extracted file (' . date('l dS of F Y h:i:s A', $v_header['mtime']) . ')');
2625 2625
 
2626 2626
                         // ----- Change the file status
2627 2627
                         $v_header['status'] = 'newer_exist';
Please login to merge, or discard this patch.
Spacing   +118 added lines, -118 removed lines patch added patch discarded remove patch
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
     // This library should be called by each script before the include of PhpZip
61 61
     // Library in order to limit the potential 'lib' directory path problem.
62 62
     if (!defined('PCLERROR_LIB')) {
63
-        include $gPcltarLibDir . '/pclerror.lib.php';
63
+        include $gPcltarLibDir.'/pclerror.lib.php';
64 64
     }
65 65
     if (!defined('PCLTRACE_LIB')) {
66
-        include $gPcltarLibDir . '/pcltrace.lib.php';
66
+        include $gPcltarLibDir.'/pcltrace.lib.php';
67 67
     }
68 68
 
69 69
     // --------------------------------------------------------------------------------
@@ -823,7 +823,7 @@  discard block
 block discarded – undo
823 823
             if (!is_file($p_tarname)) {
824 824
                 PclErrorLog(-4, "Archive '$p_tarname' does not exist");
825 825
             } else {
826
-                PclErrorLog(-6, "Archive '$p_tarname' has invalid size " . filesize($p_tarname) . '(not a 512 block multiple)');
826
+                PclErrorLog(-6, "Archive '$p_tarname' has invalid size ".filesize($p_tarname).'(not a 512 block multiple)');
827 827
             }
828 828
 
829 829
             // ----- Return
@@ -839,7 +839,7 @@  discard block
 block discarded – undo
839 839
             if (!is_file($p_tarname_add)) {
840 840
                 PclErrorLog(-4, "Archive '$p_tarname_add' does not exist");
841 841
             } else {
842
-                PclErrorLog(-6, "Archive '$p_tarname_add' has invalid size " . filesize($p_tarname_add) . '(not a 512 block multiple)');
842
+                PclErrorLog(-6, "Archive '$p_tarname_add' has invalid size ".filesize($p_tarname_add).'(not a 512 block multiple)');
843 843
             }
844 844
 
845 845
             // ----- Return
@@ -862,7 +862,7 @@  discard block
 block discarded – undo
862 862
             }
863 863
 
864 864
             // ----- Open a temporary file in write mode
865
-            $v_temp_tarname = uniqid('pcltar-', true) . '.tmp';
865
+            $v_temp_tarname = uniqid('pcltar-', true).'.tmp';
866 866
             TrFctMessage(__FILE__, __LINE__, 2, "Creating temporary archive file $v_temp_tarname");
867 867
             if (($v_temp_tar = @gzopen($v_temp_tarname, 'wb')) == 0) {
868 868
                 // ----- Close tar file
@@ -915,9 +915,9 @@  discard block
 block discarded – undo
915 915
                 }
916 916
 
917 917
                 // ----- Go to the beginning of last block
918
-                TrFctMessage(__FILE__, __LINE__, 4, 'Position before :' . ($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
918
+                TrFctMessage(__FILE__, __LINE__, 4, 'Position before :'.($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
919 919
                 fseek($p_tar, $v_size - 512);
920
-                TrFctMessage(__FILE__, __LINE__, 4, 'Position after :' . ($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
920
+                TrFctMessage(__FILE__, __LINE__, 4, 'Position after :'.($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
921 921
             } // ----- Look for unknown type
922 922
             else {
923 923
                 // ----- Error log
@@ -1208,7 +1208,7 @@  discard block
 block discarded – undo
1208 1208
             if (!is_file($p_tarname)) {
1209 1209
                 PclErrorLog(-4, "Archive '$p_tarname' does not exist");
1210 1210
             } else {
1211
-                PclErrorLog(-6, "Archive '$p_tarname' has invalid size " . filesize($p_tarname) . '(not a 512 block multiple)');
1211
+                PclErrorLog(-6, "Archive '$p_tarname' has invalid size ".filesize($p_tarname).'(not a 512 block multiple)');
1212 1212
             }
1213 1213
 
1214 1214
             // ----- Return
@@ -1231,7 +1231,7 @@  discard block
 block discarded – undo
1231 1231
             }
1232 1232
 
1233 1233
             // ----- Open a temporary file in write mode
1234
-            $v_temp_tarname = uniqid('pcltar-', true) . '.tmp';
1234
+            $v_temp_tarname = uniqid('pcltar-', true).'.tmp';
1235 1235
             TrFctMessage(__FILE__, __LINE__, 2, "Creating temporary archive file $v_temp_tarname");
1236 1236
             if (($v_temp_tar = @gzopen($v_temp_tarname, 'wb')) == 0) {
1237 1237
                 // ----- Close tar file
@@ -1316,9 +1316,9 @@  discard block
 block discarded – undo
1316 1316
                 }
1317 1317
 
1318 1318
                 // ----- Go to the beginning of last block
1319
-                TrFctMessage(__FILE__, __LINE__, 4, 'Position before :' . ($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
1319
+                TrFctMessage(__FILE__, __LINE__, 4, 'Position before :'.($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
1320 1320
                 fseek($p_tar, $v_size - 512);
1321
-                TrFctMessage(__FILE__, __LINE__, 4, 'Position after :' . ($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
1321
+                TrFctMessage(__FILE__, __LINE__, 4, 'Position after :'.($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
1322 1322
 
1323 1323
                 // ----- Call the adding fct inside the tar
1324 1324
                 if (($v_result = PclTarHandleAddList($p_tar, $p_list, $p_mode, $p_list_detail, $p_add_dir, $p_remove_dir)) == 1) {
@@ -1385,7 +1385,7 @@  discard block
 block discarded – undo
1385 1385
         // ----- Check the parameters
1386 1386
         if ($p_tar == 0) {
1387 1387
             // ----- Error log
1388
-            PclErrorLog(-3, 'Invalid file descriptor in file ' . __FILE__ . ', line ' . __LINE__);
1388
+            PclErrorLog(-3, 'Invalid file descriptor in file '.__FILE__.', line '.__LINE__);
1389 1389
 
1390 1390
             // ----- Return
1391 1391
             TrFctEnd(__FILE__, __LINE__, PclErrorCode(), PclErrorString());
@@ -1440,7 +1440,7 @@  discard block
 block discarded – undo
1440 1440
                 return PclErrorCode();
1441 1441
             }
1442 1442
 
1443
-            TrFctMessage(__FILE__, __LINE__, 4, 'File position before header =' . ($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
1443
+            TrFctMessage(__FILE__, __LINE__, 4, 'File position before header ='.($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
1444 1444
 
1445 1445
             // ----- Add the file
1446 1446
             if (($v_result = PclTarHandleAddFile($p_tar, $p_filename, $p_mode, $v_header, $p_add_dir, $p_remove_dir)) != 1) {
@@ -1460,7 +1460,7 @@  discard block
 block discarded – undo
1460 1460
                 // ----- Look for path
1461 1461
                 $v_path = '';
1462 1462
                 if ($p_filename !== '.') {
1463
-                    $v_path = $p_filename . '/';
1463
+                    $v_path = $p_filename.'/';
1464 1464
                 }
1465 1465
 
1466 1466
                 // ----- Read the directory for files and sub-directories
@@ -1469,11 +1469,11 @@  discard block
 block discarded – undo
1469 1469
                 $p_hitem = readdir($p_hdir); // '..' directory
1470 1470
                 while ($p_hitem = readdir($p_hdir)) {
1471 1471
                     // ----- Look for a file
1472
-                    if (is_file($v_path . $p_hitem)) {
1473
-                        TrFctMessage(__FILE__, __LINE__, 4, "Add the file '" . $v_path . $p_hitem . "'");
1472
+                    if (is_file($v_path.$p_hitem)) {
1473
+                        TrFctMessage(__FILE__, __LINE__, 4, "Add the file '".$v_path.$p_hitem."'");
1474 1474
 
1475 1475
                         // ----- Add the file
1476
-                        if (($v_result = PclTarHandleAddFile($p_tar, $v_path . $p_hitem, $p_mode, $v_header, $p_add_dir, $p_remove_dir)) != 1) {
1476
+                        if (($v_result = PclTarHandleAddFile($p_tar, $v_path.$p_hitem, $p_mode, $v_header, $p_add_dir, $p_remove_dir)) != 1) {
1477 1477
                             // ----- Return status
1478 1478
                             TrFctEnd(__FILE__, __LINE__, $v_result);
1479 1479
 
@@ -1484,10 +1484,10 @@  discard block
 block discarded – undo
1484 1484
                         $p_list_detail[$v_nb++] = $v_header;
1485 1485
                     } // ----- Recursive call to PclTarHandleAddFile()
1486 1486
                     else {
1487
-                        TrFctMessage(__FILE__, __LINE__, 4, "'" . $v_path . $p_hitem . "' is a directory");
1487
+                        TrFctMessage(__FILE__, __LINE__, 4, "'".$v_path.$p_hitem."' is a directory");
1488 1488
 
1489 1489
                         // ----- Need an array as parameter
1490
-                        $p_temp_list[0] = $v_path . $p_hitem;
1490
+                        $p_temp_list[0] = $v_path.$p_hitem;
1491 1491
                         $v_result       = PclTarHandleAddList($p_tar, $p_temp_list, $p_mode, $p_list_detail, $p_add_dir, $p_remove_dir);
1492 1492
                     }
1493 1493
                 }
@@ -1495,7 +1495,7 @@  discard block
 block discarded – undo
1495 1495
                 // ----- Free memory for the recursive loop
1496 1496
                 unset($p_temp_list, $p_hdir, $p_hitem);
1497 1497
             } else {
1498
-                TrFctMessage(__FILE__, __LINE__, 4, 'File position after blocks =' . ($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
1498
+                TrFctMessage(__FILE__, __LINE__, 4, 'File position after blocks ='.($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
1499 1499
             }
1500 1500
         }
1501 1501
 
@@ -1531,7 +1531,7 @@  discard block
 block discarded – undo
1531 1531
         // ----- Check the parameters
1532 1532
         if ($p_tar == 0) {
1533 1533
             // ----- Error log
1534
-            PclErrorLog(-3, 'Invalid file descriptor in file ' . __FILE__ . ', line ' . __LINE__);
1534
+            PclErrorLog(-3, 'Invalid file descriptor in file '.__FILE__.', line '.__LINE__);
1535 1535
 
1536 1536
             // ----- Return
1537 1537
             TrFctEnd(__FILE__, __LINE__, PclErrorCode(), PclErrorString());
@@ -1559,7 +1559,7 @@  discard block
 block discarded – undo
1559 1559
 
1560 1560
             if ((0 === strpos($p_filename, './')) || (0 === strpos($p_remove_dir, './'))) {
1561 1561
                 if ((0 === strpos($p_filename, './')) && (0 !== strpos($p_remove_dir, './'))) {
1562
-                    $p_remove_dir = './' . $p_remove_dir;
1562
+                    $p_remove_dir = './'.$p_remove_dir;
1563 1563
                 }
1564 1564
                 if ((0 !== strpos($p_filename, './')) && (0 === strpos($p_remove_dir, './'))) {
1565 1565
                     $p_remove_dir = substr($p_remove_dir, 2);
@@ -1573,9 +1573,9 @@  discard block
 block discarded – undo
1573 1573
         }
1574 1574
         if ($p_add_dir != '') {
1575 1575
             if (substr($p_add_dir, -1) === '/') {
1576
-                $v_stored_filename = $p_add_dir . $v_stored_filename;
1576
+                $v_stored_filename = $p_add_dir.$v_stored_filename;
1577 1577
             } else {
1578
-                $v_stored_filename = $p_add_dir . '/' . $v_stored_filename;
1578
+                $v_stored_filename = $p_add_dir.'/'.$v_stored_filename;
1579 1579
             }
1580 1580
             TrFctMessage(__FILE__, __LINE__, 3, "Add path '$p_add_dir' in file '$p_filename' = '$v_stored_filename'");
1581 1581
         }
@@ -1612,7 +1612,7 @@  discard block
 block discarded – undo
1612 1612
                 return $v_result;
1613 1613
             }
1614 1614
 
1615
-            TrFctMessage(__FILE__, __LINE__, 4, 'File position after header =' . ($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
1615
+            TrFctMessage(__FILE__, __LINE__, 4, 'File position after header ='.($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
1616 1616
 
1617 1617
             // ----- Read the file by 512 octets blocks
1618 1618
             $i = 0;
@@ -1630,7 +1630,7 @@  discard block
 block discarded – undo
1630 1630
             // ----- Close the file
1631 1631
             fclose($v_file);
1632 1632
 
1633
-            TrFctMessage(__FILE__, __LINE__, 4, 'File position after blocks =' . ($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
1633
+            TrFctMessage(__FILE__, __LINE__, 4, 'File position after blocks ='.($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
1634 1634
         } // ----- Look for a directory
1635 1635
         else {
1636 1636
             // ----- Call the header generation
@@ -1641,7 +1641,7 @@  discard block
 block discarded – undo
1641 1641
                 return $v_result;
1642 1642
             }
1643 1643
 
1644
-            TrFctMessage(__FILE__, __LINE__, 4, 'File position after header =' . ($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
1644
+            TrFctMessage(__FILE__, __LINE__, 4, 'File position after header ='.($p_mode === 'tar' ? ftell($p_tar) : gztell($p_tar)));
1645 1645
         }
1646 1646
 
1647 1647
         // ----- Return
@@ -1688,7 +1688,7 @@  discard block
 block discarded – undo
1688 1688
         // ----- Check the parameters
1689 1689
         if (($p_tar == 0) || ($p_filename == '')) {
1690 1690
             // ----- Error log
1691
-            PclErrorLog(-3, 'Invalid file descriptor in file ' . __FILE__ . ', line ' . __LINE__);
1691
+            PclErrorLog(-3, 'Invalid file descriptor in file '.__FILE__.', line '.__LINE__);
1692 1692
 
1693 1693
             // ----- Return
1694 1694
             TrFctEnd(__FILE__, __LINE__, PclErrorCode(), PclErrorString());
@@ -1701,7 +1701,7 @@  discard block
 block discarded – undo
1701 1701
             $p_stored_filename = $p_filename;
1702 1702
         }
1703 1703
         $v_reduce_filename = PclTarHandlePathReduction($p_stored_filename);
1704
-        TrFctMessage(__FILE__, __LINE__, 2, "Filename (reduced) '$v_reduce_filename', strlen " . strlen($v_reduce_filename));
1704
+        TrFctMessage(__FILE__, __LINE__, 2, "Filename (reduced) '$v_reduce_filename', strlen ".strlen($v_reduce_filename));
1705 1705
 
1706 1706
         // ----- Get file info
1707 1707
         $v_info = stat($p_filename);
@@ -1902,7 +1902,7 @@  discard block
 block discarded – undo
1902 1902
         // ----- Check the path
1903 1903
         //if (($p_path == "") || ((substr($p_path, 0, 1) != "/") && (substr($p_path, 0, 3) != "../")))
1904 1904
         if ($p_path == '') {
1905
-            $p_path = './' . $p_path;
1905
+            $p_path = './'.$p_path;
1906 1906
         }
1907 1907
 
1908 1908
         // ----- Look for path to remove format (should end by /)
@@ -1997,29 +1997,29 @@  discard block
 block discarded – undo
1997 1997
                 continue;
1998 1998
             }
1999 1999
 
2000
-            TrFctMessage(__FILE__, __LINE__, 2, "Found file '" . $v_header['filename'] . "', size '" . $v_header['size'] . "'");
2000
+            TrFctMessage(__FILE__, __LINE__, 2, "Found file '".$v_header['filename']."', size '".$v_header['size']."'");
2001 2001
 
2002 2002
             // ----- Look for partial extract
2003 2003
             if ((!$v_extract_all) && is_array($p_file_list)) {
2004
-                TrFctMessage(__FILE__, __LINE__, 2, 'Look if the file ' . $v_header['filename'] . ' need to be extracted');
2004
+                TrFctMessage(__FILE__, __LINE__, 2, 'Look if the file '.$v_header['filename'].' need to be extracted');
2005 2005
 
2006 2006
                 // ----- By default no unzip if the file is not found
2007 2007
                 $v_extract_file = false;
2008 2008
 
2009 2009
                 // ----- Look into the file list
2010 2010
                 for ($i = 0, $iMax = count($p_file_list); $i < $iMax; ++$i) {
2011
-                    TrFctMessage(__FILE__, __LINE__, 2, 'Compare archived file ' . $v_header['filename'] . " from asked list file '" . $p_file_list[$i] . "'");
2011
+                    TrFctMessage(__FILE__, __LINE__, 2, 'Compare archived file '.$v_header['filename']." from asked list file '".$p_file_list[$i]."'");
2012 2012
 
2013 2013
                     // ----- Look if it is a directory
2014 2014
                     if (substr($p_file_list[$i], -1) === '/') {
2015
-                        TrFctMessage(__FILE__, __LINE__, 3, 'Compare file ' . $v_header['filename'] . " with directory '$p_file_list[$i]'");
2015
+                        TrFctMessage(__FILE__, __LINE__, 3, 'Compare file '.$v_header['filename']." with directory '$p_file_list[$i]'");
2016 2016
 
2017 2017
                         // ----- Look if the directory is in the filename path
2018 2018
                         if ((strlen($v_header['filename']) > strlen($p_file_list[$i]))
2019 2019
                             && (0 === strpos($v_header['filename'], $p_file_list[$i]))
2020 2020
                         ) {
2021 2021
                             // ----- The file is in the directory, so extract it
2022
-                            TrFctMessage(__FILE__, __LINE__, 2, 'File ' . $v_header['filename'] . " is in directory '$p_file_list[$i]' : extract it");
2022
+                            TrFctMessage(__FILE__, __LINE__, 2, 'File '.$v_header['filename']." is in directory '$p_file_list[$i]' : extract it");
2023 2023
                             $v_extract_file = true;
2024 2024
 
2025 2025
                             // ----- End of loop
@@ -2029,7 +2029,7 @@  discard block
 block discarded – undo
2029 2029
                     else {
2030 2030
                         if ($p_file_list[$i] == $v_header['filename']) {
2031 2031
                             // ----- File found
2032
-                            TrFctMessage(__FILE__, __LINE__, 2, 'File ' . $v_header['filename'] . ' should be extracted');
2032
+                            TrFctMessage(__FILE__, __LINE__, 2, 'File '.$v_header['filename'].' should be extracted');
2033 2033
                             $v_extract_file = true;
2034 2034
 
2035 2035
                             // ----- End of loop
@@ -2040,7 +2040,7 @@  discard block
 block discarded – undo
2040 2040
 
2041 2041
                 // ----- Trace
2042 2042
                 if (!$v_extract_file) {
2043
-                    TrFctMessage(__FILE__, __LINE__, 2, 'File ' . $v_header['filename'] . ' should not be extracted');
2043
+                    TrFctMessage(__FILE__, __LINE__, 2, 'File '.$v_header['filename'].' should not be extracted');
2044 2044
                 }
2045 2045
             } else {
2046 2046
                 // ----- All files need to be extracted
@@ -2051,10 +2051,10 @@  discard block
 block discarded – undo
2051 2051
             if ($v_extract_file && (!$v_listing)) {
2052 2052
                 // ----- Look for path to remove
2053 2053
                 if (($p_remove_path != '') && (0 === strpos($v_header['filename'], $p_remove_path))) {
2054
-                    TrFctMessage(__FILE__, __LINE__, 3, "Found path '$p_remove_path' to remove in file " . $v_header['filename'] . '');
2054
+                    TrFctMessage(__FILE__, __LINE__, 3, "Found path '$p_remove_path' to remove in file ".$v_header['filename'].'');
2055 2055
                     // ----- Remove the path
2056 2056
                     $v_header['filename'] = substr($v_header['filename'], $p_remove_path_size);
2057
-                    TrFctMessage(__FILE__, __LINE__, 3, 'Reslting file is ' . $v_header['filename'] . '');
2057
+                    TrFctMessage(__FILE__, __LINE__, 3, 'Reslting file is '.$v_header['filename'].'');
2058 2058
                 }
2059 2059
 
2060 2060
                 // ----- Add the path to the file
@@ -2068,22 +2068,22 @@  discard block
 block discarded – undo
2068 2068
 
2069 2069
                     // ----- Add the path
2070 2070
                     if (0 === strpos($v_header['filename'], '/')) {
2071
-                        $v_header['filename'] = $p_path . $v_header['filename'];
2071
+                        $v_header['filename'] = $p_path.$v_header['filename'];
2072 2072
                     } else {
2073
-                        $v_header['filename'] = $p_path . '/' . $v_header['filename'];
2073
+                        $v_header['filename'] = $p_path.'/'.$v_header['filename'];
2074 2074
                     }
2075 2075
                 }
2076 2076
 
2077 2077
                 // ----- Trace
2078
-                TrFctMessage(__FILE__, __LINE__, 2, 'Extracting file (with path) ' . $v_header['filename'] . ", size '" . $v_header['size'] . "'");
2078
+                TrFctMessage(__FILE__, __LINE__, 2, 'Extracting file (with path) '.$v_header['filename'].", size '".$v_header['size']."'");
2079 2079
 
2080 2080
                 // ----- Check that the file does not exists
2081 2081
                 if (file_exists($v_header['filename'])) {
2082
-                    TrFctMessage(__FILE__, __LINE__, 2, 'File ' . $v_header['filename'] . ' already exists');
2082
+                    TrFctMessage(__FILE__, __LINE__, 2, 'File '.$v_header['filename'].' already exists');
2083 2083
 
2084 2084
                     // ----- Look if file is a directory
2085 2085
                     if (is_dir($v_header['filename'])) {
2086
-                        TrFctMessage(__FILE__, __LINE__, 2, 'Existing file ' . $v_header['filename'] . ' is a directory');
2086
+                        TrFctMessage(__FILE__, __LINE__, 2, 'Existing file '.$v_header['filename'].' is a directory');
2087 2087
 
2088 2088
                         // ----- Change the file status
2089 2089
                         $v_header['status'] = 'already_a_directory';
@@ -2094,7 +2094,7 @@  discard block
 block discarded – undo
2094 2094
                     } // ----- Look if file is write protected
2095 2095
                     else {
2096 2096
                         if (!s_writable($v_header['filename'])) {
2097
-                            TrFctMessage(__FILE__, __LINE__, 2, 'Existing file ' . $v_header['filename'] . ' is write protected');
2097
+                            TrFctMessage(__FILE__, __LINE__, 2, 'Existing file '.$v_header['filename'].' is write protected');
2098 2098
 
2099 2099
                             // ----- Change the file status
2100 2100
                             $v_header['status'] = 'write_protected';
@@ -2128,7 +2128,7 @@  discard block
 block discarded – undo
2128 2128
                     }
2129 2129
 
2130 2130
                     if (($v_result = PclTarHandlerDirCheck($v_dir_to_check)) != 1) {
2131
-                        TrFctMessage(__FILE__, __LINE__, 2, 'Unable to create path for ' . $v_header['filename'] . '');
2131
+                        TrFctMessage(__FILE__, __LINE__, 2, 'Unable to create path for '.$v_header['filename'].'');
2132 2132
 
2133 2133
                         // ----- Change the file status
2134 2134
                         $v_header['status'] = 'path_creation_fail';
@@ -2143,7 +2143,7 @@  discard block
 block discarded – undo
2143 2143
                 if ($v_extract_file && ($v_header['typeflag'] != '5')) {
2144 2144
                     // ----- Open the destination file in write mode
2145 2145
                     if (($v_dest_file = @fopen($v_header['filename'], 'wb')) == 0) {
2146
-                        TrFctMessage(__FILE__, __LINE__, 2, 'Error while opening ' . $v_header['filename'] . ' in write binary mode');
2146
+                        TrFctMessage(__FILE__, __LINE__, 2, 'Error while opening '.$v_header['filename'].' in write binary mode');
2147 2147
 
2148 2148
                         // ----- Change the file status
2149 2149
                         $v_header['status'] = 'write_error';
@@ -2156,12 +2156,12 @@  discard block
 block discarded – undo
2156 2156
                             gzseek($v_tar, gztell($v_tar) + (ceil($v_header['size'] / 512) * 512));
2157 2157
                         }
2158 2158
                     } else {
2159
-                        TrFctMessage(__FILE__, __LINE__, 2, 'Start extraction of ' . $v_header['filename'] . '');
2159
+                        TrFctMessage(__FILE__, __LINE__, 2, 'Start extraction of '.$v_header['filename'].'');
2160 2160
 
2161 2161
                         // ----- Read data
2162 2162
                         $n = floor($v_header['size'] / 512);
2163 2163
                         for ($i = 0; $i < $n; ++$i) {
2164
-                            TrFctMessage(__FILE__, __LINE__, 3, 'Read complete 512 bytes block number ' . ($i + 1));
2164
+                            TrFctMessage(__FILE__, __LINE__, 3, 'Read complete 512 bytes block number '.($i + 1));
2165 2165
                             if ($p_tar_mode === 'tar') {
2166 2166
                                 $v_content = fread($v_tar, 512);
2167 2167
                             } else {
@@ -2170,7 +2170,7 @@  discard block
 block discarded – undo
2170 2170
                             fwrite($v_dest_file, $v_content, 512);
2171 2171
                         }
2172 2172
                         if (($v_header['size'] % 512) != 0) {
2173
-                            TrFctMessage(__FILE__, __LINE__, 3, 'Read last ' . ($v_header['size'] % 512) . ' bytes in a 512 block');
2173
+                            TrFctMessage(__FILE__, __LINE__, 3, 'Read last '.($v_header['size'] % 512).' bytes in a 512 block');
2174 2174
                             if ($p_tar_mode === 'tar') {
2175 2175
                                 $v_content = fread($v_tar, 512);
2176 2176
                             } else {
@@ -2198,7 +2198,7 @@  discard block
 block discarded – undo
2198 2198
                         }
2199 2199
 
2200 2200
                         // ----- Error log
2201
-                        PclErrorLog(-7, 'Extracted file ' . $v_header['filename'] . " does not have the correct file size '" . filesize($v_filename) . "' ('" . $v_header['size'] . "' expected). Archive may be corrupted.");
2201
+                        PclErrorLog(-7, 'Extracted file '.$v_header['filename']." does not have the correct file size '".filesize($v_filename)."' ('".$v_header['size']."' expected). Archive may be corrupted.");
2202 2202
 
2203 2203
                         // ----- Return
2204 2204
                         TrFctEnd(__FILE__, __LINE__, PclErrorCode(), PclErrorString());
@@ -2209,7 +2209,7 @@  discard block
 block discarded – undo
2209 2209
                     // ----- Trace
2210 2210
                     TrFctMessage(__FILE__, __LINE__, 2, 'Extraction done');
2211 2211
                 } else {
2212
-                    TrFctMessage(__FILE__, __LINE__, 2, 'Extraction of file ' . $v_header['filename'] . ' skipped.');
2212
+                    TrFctMessage(__FILE__, __LINE__, 2, 'Extraction of file '.$v_header['filename'].' skipped.');
2213 2213
 
2214 2214
                     // ----- Jump to next file
2215 2215
                     TrFctMessage(__FILE__, __LINE__, 2, 'Jump to next file');
@@ -2222,8 +2222,8 @@  discard block
 block discarded – undo
2222 2222
             } // ----- Look for file that is not to be unzipped
2223 2223
             else {
2224 2224
                 // ----- Trace
2225
-                TrFctMessage(__FILE__, __LINE__, 2, 'Jump file ' . $v_header['filename'] . '');
2226
-                TrFctMessage(__FILE__, __LINE__, 4, 'Position avant jump [' . ($p_tar_mode === 'tar' ? ftell($v_tar) : gztell($v_tar)) . ']');
2225
+                TrFctMessage(__FILE__, __LINE__, 2, 'Jump file '.$v_header['filename'].'');
2226
+                TrFctMessage(__FILE__, __LINE__, 4, 'Position avant jump ['.($p_tar_mode === 'tar' ? ftell($v_tar) : gztell($v_tar)).']');
2227 2227
 
2228 2228
                 // ----- Jump to next file
2229 2229
                 if ($p_tar_mode === 'tar') {
@@ -2232,7 +2232,7 @@  discard block
 block discarded – undo
2232 2232
                     gzseek($v_tar, gztell($v_tar) + (ceil($v_header['size'] / 512) * 512));
2233 2233
                 }
2234 2234
 
2235
-                TrFctMessage(__FILE__, __LINE__, 4, 'Position après jump [' . ($p_tar_mode === 'tar' ? ftell($v_tar) : gztell($v_tar)) . ']');
2235
+                TrFctMessage(__FILE__, __LINE__, 4, 'Position après jump ['.($p_tar_mode === 'tar' ? ftell($v_tar) : gztell($v_tar)).']');
2236 2236
             }
2237 2237
 
2238 2238
             if ($p_tar_mode === 'tar') {
@@ -2243,7 +2243,7 @@  discard block
 block discarded – undo
2243 2243
 
2244 2244
             // ----- File name and properties are logged if listing mode or file is extracted
2245 2245
             if ($v_listing || $v_extract_file || $v_extraction_stopped) {
2246
-                TrFctMessage(__FILE__, __LINE__, 2, 'Memorize info about file ' . $v_header['filename'] . '');
2246
+                TrFctMessage(__FILE__, __LINE__, 2, 'Memorize info about file '.$v_header['filename'].'');
2247 2247
 
2248 2248
                 // ----- Log extracted files
2249 2249
                 if (($v_file_dir = dirname($v_header['filename'])) == $v_header['filename']) {
@@ -2318,7 +2318,7 @@  discard block
 block discarded – undo
2318 2318
             || ((0 !== strpos($p_path, '/')) && (0 !== strpos($p_path, '../'))
2319 2319
                 && (0 !== strpos($p_path, './')))
2320 2320
         ) {
2321
-            $p_path = './' . $p_path;
2321
+            $p_path = './'.$p_path;
2322 2322
         }
2323 2323
 
2324 2324
         // ----- Look for path to remove format (should end by /)
@@ -2466,14 +2466,14 @@  discard block
 block discarded – undo
2466 2466
                 continue;
2467 2467
             }
2468 2468
 
2469
-            TrFctMessage(__FILE__, __LINE__, 2, 'Found file ' . $v_header['filename'] . ", size '" . $v_header['size'] . "'");
2469
+            TrFctMessage(__FILE__, __LINE__, 2, 'Found file '.$v_header['filename'].", size '".$v_header['size']."'");
2470 2470
 
2471 2471
             // ----- Look if file is in the range to be extracted
2472 2472
             if (($p_index_current >= $p_index_start) && ($p_index_current <= $p_index_stop)) {
2473
-                TrFctMessage(__FILE__, __LINE__, 2, 'File ' . $v_header['filename'] . ' is in the range to be extracted');
2473
+                TrFctMessage(__FILE__, __LINE__, 2, 'File '.$v_header['filename'].' is in the range to be extracted');
2474 2474
                 $v_extract_file = true;
2475 2475
             } else {
2476
-                TrFctMessage(__FILE__, __LINE__, 2, 'File ' . $v_header['filename'] . ' is out of the range');
2476
+                TrFctMessage(__FILE__, __LINE__, 2, 'File '.$v_header['filename'].' is out of the range');
2477 2477
                 $v_extract_file = false;
2478 2478
             }
2479 2479
 
@@ -2488,8 +2488,8 @@  discard block
 block discarded – undo
2488 2488
             } // ----- Look for file that is not to be extracted
2489 2489
             else {
2490 2490
                 // ----- Trace
2491
-                TrFctMessage(__FILE__, __LINE__, 2, 'Jump file ' . $v_header['filename'] . '');
2492
-                TrFctMessage(__FILE__, __LINE__, 4, 'Position avant jump [' . ($p_tar_mode === 'tar' ? ftell($v_tar) : gztell($v_tar)) . ']');
2491
+                TrFctMessage(__FILE__, __LINE__, 2, 'Jump file '.$v_header['filename'].'');
2492
+                TrFctMessage(__FILE__, __LINE__, 4, 'Position avant jump ['.($p_tar_mode === 'tar' ? ftell($v_tar) : gztell($v_tar)).']');
2493 2493
 
2494 2494
                 // ----- Jump to next file
2495 2495
                 if ($p_tar_mode === 'tar') {
@@ -2498,7 +2498,7 @@  discard block
 block discarded – undo
2498 2498
                     gzseek($v_tar, gztell($v_tar) + (ceil($v_header['size'] / 512) * 512));
2499 2499
                 }
2500 2500
 
2501
-                TrFctMessage(__FILE__, __LINE__, 4, 'Position après jump [' . ($p_tar_mode === 'tar' ? ftell($v_tar) : gztell($v_tar)) . ']');
2501
+                TrFctMessage(__FILE__, __LINE__, 4, 'Position après jump ['.($p_tar_mode === 'tar' ? ftell($v_tar) : gztell($v_tar)).']');
2502 2502
             }
2503 2503
 
2504 2504
             if ($p_tar_mode === 'tar') {
@@ -2509,7 +2509,7 @@  discard block
 block discarded – undo
2509 2509
 
2510 2510
             // ----- File name and properties are logged if listing mode or file is extracted
2511 2511
             if ($v_extract_file) {
2512
-                TrFctMessage(__FILE__, __LINE__, 2, 'Memorize info about file ' . $v_header['filename'] . '');
2512
+                TrFctMessage(__FILE__, __LINE__, 2, 'Memorize info about file '.$v_header['filename'].'');
2513 2513
 
2514 2514
                 // ----- Log extracted files
2515 2515
                 if (($v_file_dir = dirname($v_header['filename'])) == $v_header['filename']) {
@@ -2566,10 +2566,10 @@  discard block
 block discarded – undo
2566 2566
 
2567 2567
         // ----- Look for path to remove
2568 2568
         if (($p_remove_path != '') && (0 === strpos($v_header['filename'], $p_remove_path))) {
2569
-            TrFctMessage(__FILE__, __LINE__, 3, "Found path '$p_remove_path' to remove in file " . $v_header['filename'] . '');
2569
+            TrFctMessage(__FILE__, __LINE__, 3, "Found path '$p_remove_path' to remove in file ".$v_header['filename'].'');
2570 2570
             // ----- Remove the path
2571 2571
             $v_header['filename'] = substr($v_header['filename'], $p_remove_path_size);
2572
-            TrFctMessage(__FILE__, __LINE__, 3, 'Resulting file is ' . $v_header['filename'] . '');
2572
+            TrFctMessage(__FILE__, __LINE__, 3, 'Resulting file is '.$v_header['filename'].'');
2573 2573
         }
2574 2574
 
2575 2575
         // ----- Add the path to the file
@@ -2583,22 +2583,22 @@  discard block
 block discarded – undo
2583 2583
 
2584 2584
             // ----- Add the path
2585 2585
             if (0 === strpos($v_header['filename'], '/')) {
2586
-                $v_header['filename'] = $p_path . $v_header['filename'];
2586
+                $v_header['filename'] = $p_path.$v_header['filename'];
2587 2587
             } else {
2588
-                $v_header['filename'] = $p_path . '/' . $v_header['filename'];
2588
+                $v_header['filename'] = $p_path.'/'.$v_header['filename'];
2589 2589
             }
2590 2590
         }
2591 2591
 
2592 2592
         // ----- Trace
2593
-        TrFctMessage(__FILE__, __LINE__, 2, 'Extracting file (with path) ' . $v_header['filename'] . ", size '" . $v_header['size'] . "'");
2593
+        TrFctMessage(__FILE__, __LINE__, 2, 'Extracting file (with path) '.$v_header['filename'].", size '".$v_header['size']."'");
2594 2594
 
2595 2595
         // ----- Check that the file does not exists
2596 2596
         if (file_exists($v_header['filename'])) {
2597
-            TrFctMessage(__FILE__, __LINE__, 2, 'File ' . $v_header['filename'] . ' already exists');
2597
+            TrFctMessage(__FILE__, __LINE__, 2, 'File '.$v_header['filename'].' already exists');
2598 2598
 
2599 2599
             // ----- Look if file is a directory
2600 2600
             if (is_dir($v_header['filename'])) {
2601
-                TrFctMessage(__FILE__, __LINE__, 2, 'Existing file ' . $v_header['filename'] . ' is a directory');
2601
+                TrFctMessage(__FILE__, __LINE__, 2, 'Existing file '.$v_header['filename'].' is a directory');
2602 2602
 
2603 2603
                 // ----- Change the file status
2604 2604
                 $v_header['status'] = 'already_a_directory';
@@ -2609,7 +2609,7 @@  discard block
 block discarded – undo
2609 2609
             } // ----- Look if file is write protected
2610 2610
             else {
2611 2611
                 if (!s_writable($v_header['filename'])) {
2612
-                    TrFctMessage(__FILE__, __LINE__, 2, 'Existing file ' . $v_header['filename'] . ' is write protected');
2612
+                    TrFctMessage(__FILE__, __LINE__, 2, 'Existing file '.$v_header['filename'].' is write protected');
2613 2613
 
2614 2614
                     // ----- Change the file status
2615 2615
                     $v_header['status'] = 'write_protected';
@@ -2621,7 +2621,7 @@  discard block
 block discarded – undo
2621 2621
                 else {
2622 2622
                     if (filemtime($v_header['filename']) > $v_header['mtime']) {
2623 2623
                         TrFctMessage(__FILE__, __LINE__, 2,
2624
-                                     'Existing file ' . $v_header['filename'] . ' is newer (' . date('l dS of F Y h:i:s A', filemtime($v_header['filename'])) . ') than the extracted file (' . date('l dS of F Y h:i:s A', $v_header['mtime']) . ')');
2624
+                                     'Existing file '.$v_header['filename'].' is newer ('.date('l dS of F Y h:i:s A', filemtime($v_header['filename'])).') than the extracted file ('.date('l dS of F Y h:i:s A', $v_header['mtime']).')');
2625 2625
 
2626 2626
                         // ----- Change the file status
2627 2627
                         $v_header['status'] = 'newer_exist';
@@ -2645,7 +2645,7 @@  discard block
 block discarded – undo
2645 2645
             }
2646 2646
 
2647 2647
             if (($v_result = PclTarHandlerDirCheck($v_dir_to_check)) != 1) {
2648
-                TrFctMessage(__FILE__, __LINE__, 2, 'Unable to create path for ' . $v_header['filename'] . '');
2648
+                TrFctMessage(__FILE__, __LINE__, 2, 'Unable to create path for '.$v_header['filename'].'');
2649 2649
 
2650 2650
                 // ----- Change the file status
2651 2651
                 $v_header['status'] = 'path_creation_fail';
@@ -2660,7 +2660,7 @@  discard block
 block discarded – undo
2660 2660
         if ($v_extract_file && ($v_header['typeflag'] != '5')) {
2661 2661
             // ----- Open the destination file in write mode
2662 2662
             if (($v_dest_file = @fopen($v_header['filename'], 'wb')) == 0) {
2663
-                TrFctMessage(__FILE__, __LINE__, 2, 'Error while opening ' . $v_header['filename'] . ' in write binary mode');
2663
+                TrFctMessage(__FILE__, __LINE__, 2, 'Error while opening '.$v_header['filename'].' in write binary mode');
2664 2664
 
2665 2665
                 // ----- Change the file status
2666 2666
                 $v_header['status'] = 'write_error';
@@ -2673,12 +2673,12 @@  discard block
 block discarded – undo
2673 2673
                     gzseek($v_tar, gztell($v_tar) + (ceil($v_header['size'] / 512) * 512));
2674 2674
                 }
2675 2675
             } else {
2676
-                TrFctMessage(__FILE__, __LINE__, 2, 'Start extraction of ' . $v_header['filename'] . '');
2676
+                TrFctMessage(__FILE__, __LINE__, 2, 'Start extraction of '.$v_header['filename'].'');
2677 2677
 
2678 2678
                 // ----- Read data
2679 2679
                 $n = floor($v_header['size'] / 512);
2680 2680
                 for ($i = 0; $i < $n; ++$i) {
2681
-                    TrFctMessage(__FILE__, __LINE__, 3, 'Read complete 512 bytes block number ' . ($i + 1));
2681
+                    TrFctMessage(__FILE__, __LINE__, 3, 'Read complete 512 bytes block number '.($i + 1));
2682 2682
                     if ($p_tar_mode === 'tar') {
2683 2683
                         $v_content = fread($v_tar, 512);
2684 2684
                     } else {
@@ -2687,7 +2687,7 @@  discard block
 block discarded – undo
2687 2687
                     fwrite($v_dest_file, $v_content, 512);
2688 2688
                 }
2689 2689
                 if (($v_header['size'] % 512) != 0) {
2690
-                    TrFctMessage(__FILE__, __LINE__, 3, 'Read last ' . ($v_header['size'] % 512) . ' bytes in a 512 block');
2690
+                    TrFctMessage(__FILE__, __LINE__, 3, 'Read last '.($v_header['size'] % 512).' bytes in a 512 block');
2691 2691
                     if ($p_tar_mode === 'tar') {
2692 2692
                         $v_content = fread($v_tar, 512);
2693 2693
                     } else {
@@ -2708,7 +2708,7 @@  discard block
 block discarded – undo
2708 2708
             clearstatcache();
2709 2709
             if (filesize($v_header['filename']) != $v_header['size']) {
2710 2710
                 // ----- Error log
2711
-                PclErrorLog(-7, 'Extracted file ' . $v_header['filename'] . " does not have the correct file size '" . filesize($v_filename) . "' ('" . $v_header['size'] . "' expected). Archive may be corrupted.");
2711
+                PclErrorLog(-7, 'Extracted file '.$v_header['filename']." does not have the correct file size '".filesize($v_filename)."' ('".$v_header['size']."' expected). Archive may be corrupted.");
2712 2712
 
2713 2713
                 // ----- Return
2714 2714
                 TrFctEnd(__FILE__, __LINE__, PclErrorCode(), PclErrorString());
@@ -2719,7 +2719,7 @@  discard block
 block discarded – undo
2719 2719
             // ----- Trace
2720 2720
             TrFctMessage(__FILE__, __LINE__, 2, 'Extraction done');
2721 2721
         } else {
2722
-            TrFctMessage(__FILE__, __LINE__, 2, 'Extraction of file ' . $v_header['filename'] . ' skipped.');
2722
+            TrFctMessage(__FILE__, __LINE__, 2, 'Extraction of file '.$v_header['filename'].' skipped.');
2723 2723
 
2724 2724
             // ----- Jump to next file
2725 2725
             TrFctMessage(__FILE__, __LINE__, 2, 'Jump to next file');
@@ -2773,7 +2773,7 @@  discard block
 block discarded – undo
2773 2773
             }
2774 2774
 
2775 2775
             // ----- Open a temporary file in write mode
2776
-            $v_temp_tarname = uniqid('pcltar-', true) . '.tmp';
2776
+            $v_temp_tarname = uniqid('pcltar-', true).'.tmp';
2777 2777
             TrFctMessage(__FILE__, __LINE__, 2, "Creating temporary archive file $v_temp_tarname");
2778 2778
             if (($v_temp_tar = @fopen($v_temp_tarname, 'wb')) == 0) {
2779 2779
                 // ----- Close tar file
@@ -2802,7 +2802,7 @@  discard block
 block discarded – undo
2802 2802
             }
2803 2803
 
2804 2804
             // ----- Open a temporary file in write mode
2805
-            $v_temp_tarname = uniqid('pcltar-', true) . '.tmp';
2805
+            $v_temp_tarname = uniqid('pcltar-', true).'.tmp';
2806 2806
             TrFctMessage(__FILE__, __LINE__, 2, "Creating temporary archive file $v_temp_tarname");
2807 2807
             if (($v_temp_tar = @gzopen($v_temp_tarname, 'wb')) == 0) {
2808 2808
                 // ----- Close tar file
@@ -2859,7 +2859,7 @@  discard block
 block discarded – undo
2859 2859
                 continue;
2860 2860
             }
2861 2861
 
2862
-            TrFctMessage(__FILE__, __LINE__, 2, 'Found file ' . $v_header['filename'] . ", size '" . $v_header['size'] . "'");
2862
+            TrFctMessage(__FILE__, __LINE__, 2, 'Found file '.$v_header['filename'].", size '".$v_header['size']."'");
2863 2863
 
2864 2864
             // ----- Look for filenames to delete
2865 2865
             for ($i = 0, $v_delete_file = false; ($i < count($p_file_list)) && (!$v_delete_file); ++$i) {
@@ -2867,12 +2867,12 @@  discard block
 block discarded – undo
2867 2867
                 //        if ($p_file_list[$i] == $v_header['filename'])
2868 2868
                 if (($v_len = strcmp($p_file_list[$i], $v_header['filename'])) <= 0) {
2869 2869
                     if ($v_len == 0) {
2870
-                        TrFctMessage(__FILE__, __LINE__, 3, 'Found that ' . $v_header['filename'] . ' need to be deleted');
2870
+                        TrFctMessage(__FILE__, __LINE__, 3, 'Found that '.$v_header['filename'].' need to be deleted');
2871 2871
                         $v_delete_file = true;
2872 2872
                     } else {
2873
-                        TrFctMessage(__FILE__, __LINE__, 3, 'Look if ' . $v_header['filename'] . " is a file in $p_file_list[$i]");
2873
+                        TrFctMessage(__FILE__, __LINE__, 3, 'Look if '.$v_header['filename']." is a file in $p_file_list[$i]");
2874 2874
                         if (substr($v_header['filename'], strlen($p_file_list[$i]), 1) === '/') {
2875
-                            TrFctMessage(__FILE__, __LINE__, 3, '' . $v_header['filename'] . " is a file in $p_file_list[$i]");
2875
+                            TrFctMessage(__FILE__, __LINE__, 3, ''.$v_header['filename']." is a file in $p_file_list[$i]");
2876 2876
                             $v_delete_file = true;
2877 2877
                         }
2878 2878
                     }
@@ -2881,7 +2881,7 @@  discard block
 block discarded – undo
2881 2881
 
2882 2882
             // ----- Copy files that do not need to be deleted
2883 2883
             if (!$v_delete_file) {
2884
-                TrFctMessage(__FILE__, __LINE__, 2, 'Keep file ' . $v_header['filename'] . '');
2884
+                TrFctMessage(__FILE__, __LINE__, 2, 'Keep file '.$v_header['filename'].'');
2885 2885
 
2886 2886
                 // ----- Write the file header
2887 2887
                 if ($p_tar_mode === 'tar') {
@@ -2893,7 +2893,7 @@  discard block
 block discarded – undo
2893 2893
                 // ----- Write the file data
2894 2894
                 $n = ceil($v_header['size'] / 512);
2895 2895
                 for ($i = 0; $i < $n; ++$i) {
2896
-                    TrFctMessage(__FILE__, __LINE__, 3, 'Read complete 512 bytes block number ' . ($i + 1));
2896
+                    TrFctMessage(__FILE__, __LINE__, 3, 'Read complete 512 bytes block number '.($i + 1));
2897 2897
                     if ($p_tar_mode === 'tar') {
2898 2898
                         $v_content = fread($v_tar, 512);
2899 2899
                         fwrite($v_temp_tar, $v_content, 512);
@@ -2904,7 +2904,7 @@  discard block
 block discarded – undo
2904 2904
                 }
2905 2905
 
2906 2906
                 // ----- File name and properties are logged if listing mode or file is extracted
2907
-                TrFctMessage(__FILE__, __LINE__, 2, 'Memorize info about file ' . $v_header['filename'] . '');
2907
+                TrFctMessage(__FILE__, __LINE__, 2, 'Memorize info about file '.$v_header['filename'].'');
2908 2908
 
2909 2909
                 // ----- Add the array describing the file into the list
2910 2910
                 $p_list_detail[$v_nb]           = $v_header;
@@ -2915,8 +2915,8 @@  discard block
 block discarded – undo
2915 2915
             } // ----- Look for file that is to be deleted
2916 2916
             else {
2917 2917
                 // ----- Trace
2918
-                TrFctMessage(__FILE__, __LINE__, 2, 'Start deletion of ' . $v_header['filename'] . '');
2919
-                TrFctMessage(__FILE__, __LINE__, 4, 'Position avant jump [' . ($p_tar_mode === 'tar' ? ftell($v_tar) : gztell($v_tar)) . ']');
2918
+                TrFctMessage(__FILE__, __LINE__, 2, 'Start deletion of '.$v_header['filename'].'');
2919
+                TrFctMessage(__FILE__, __LINE__, 4, 'Position avant jump ['.($p_tar_mode === 'tar' ? ftell($v_tar) : gztell($v_tar)).']');
2920 2920
 
2921 2921
                 // ----- Jump to next file
2922 2922
                 if ($p_tar_mode === 'tar') {
@@ -2925,7 +2925,7 @@  discard block
 block discarded – undo
2925 2925
                     gzseek($v_tar, gztell($v_tar) + (ceil($v_header['size'] / 512) * 512));
2926 2926
                 }
2927 2927
 
2928
-                TrFctMessage(__FILE__, __LINE__, 4, 'Position après jump [' . ($p_tar_mode === 'tar' ? ftell($v_tar) : gztell($v_tar)) . ']');
2928
+                TrFctMessage(__FILE__, __LINE__, 4, 'Position après jump ['.($p_tar_mode === 'tar' ? ftell($v_tar) : gztell($v_tar)).']');
2929 2929
             }
2930 2930
 
2931 2931
             // ----- Look for end of file
@@ -3011,7 +3011,7 @@  discard block
 block discarded – undo
3011 3011
             }
3012 3012
 
3013 3013
             // ----- Open a temporary file in write mode
3014
-            $v_temp_tarname = uniqid('pcltar-', true) . '.tmp';
3014
+            $v_temp_tarname = uniqid('pcltar-', true).'.tmp';
3015 3015
             TrFctMessage(__FILE__, __LINE__, 2, "Creating temporary archive file $v_temp_tarname");
3016 3016
             if (($v_temp_tar = @fopen($v_temp_tarname, 'wb')) == 0) {
3017 3017
                 // ----- Close tar file
@@ -3040,7 +3040,7 @@  discard block
 block discarded – undo
3040 3040
             }
3041 3041
 
3042 3042
             // ----- Open a temporary file in write mode
3043
-            $v_temp_tarname = uniqid('pcltar-', true) . '.tmp';
3043
+            $v_temp_tarname = uniqid('pcltar-', true).'.tmp';
3044 3044
             TrFctMessage(__FILE__, __LINE__, 2, "Creating temporary archive file $v_temp_tarname");
3045 3045
             if (($v_temp_tar = @gzopen($v_temp_tarname, 'wb')) == 0) {
3046 3046
                 // ----- Close tar file
@@ -3075,9 +3075,9 @@  discard block
 block discarded – undo
3075 3075
             }
3076 3076
             if ($p_add_dir != '') {
3077 3077
                 if (substr($p_add_dir, -1) === '/') {
3078
-                    $v_stored_list[$i] = $p_add_dir . $v_stored_list[$i];
3078
+                    $v_stored_list[$i] = $p_add_dir.$v_stored_list[$i];
3079 3079
                 } else {
3080
-                    $v_stored_list[$i] = $p_add_dir . '/' . $v_stored_list[$i];
3080
+                    $v_stored_list[$i] = $p_add_dir.'/'.$v_stored_list[$i];
3081 3081
                 }
3082 3082
                 TrFctMessage(__FILE__, __LINE__, 3, "Add path '$p_add_dir' in file '$p_file_list[$i]' = '$v_stored_list[$i]'");
3083 3083
             }
@@ -3132,7 +3132,7 @@  discard block
 block discarded – undo
3132 3132
                 continue;
3133 3133
             }
3134 3134
 
3135
-            TrFctMessage(__FILE__, __LINE__, 2, 'Found file ' . $v_header['filename'] . ", size '" . $v_header['size'] . "'");
3135
+            TrFctMessage(__FILE__, __LINE__, 2, 'Found file '.$v_header['filename'].", size '".$v_header['size']."'");
3136 3136
 
3137 3137
             // ----- Look for filenames to update
3138 3138
             for ($i = 0, $v_update_file = false, $v_found_file = false; ($i < count($v_stored_list)) && (!$v_update_file); ++$i) {
@@ -3141,8 +3141,8 @@  discard block
 block discarded – undo
3141 3141
                 // ----- Compare the file names
3142 3142
                 if ($v_stored_list[$i] == $v_header['filename']) {
3143 3143
                     TrFctMessage(__FILE__, __LINE__, 3, "File '$v_stored_list[$i]' is present in archive");
3144
-                    TrFctMessage(__FILE__, __LINE__, 3, "File '$v_stored_list[$i]' mtime=" . filemtime($p_file_list[$i]) . ' ' . date('l dS of F Y h:i:s A', filemtime($p_file_list[$i])));
3145
-                    TrFctMessage(__FILE__, __LINE__, 3, 'Archived mtime=' . $v_header['mtime'] . ' ' . date('l dS of F Y h:i:s A', $v_header['mtime']));
3144
+                    TrFctMessage(__FILE__, __LINE__, 3, "File '$v_stored_list[$i]' mtime=".filemtime($p_file_list[$i]).' '.date('l dS of F Y h:i:s A', filemtime($p_file_list[$i])));
3145
+                    TrFctMessage(__FILE__, __LINE__, 3, 'Archived mtime='.$v_header['mtime'].' '.date('l dS of F Y h:i:s A', $v_header['mtime']));
3146 3146
 
3147 3147
                     // ----- Store found informations
3148 3148
                     $v_found_file       = true;
@@ -3160,13 +3160,13 @@  discard block
 block discarded – undo
3160 3160
                     // ----- Flag the name in order not to add the file at the end
3161 3161
                     $v_found_list[$i] = 1;
3162 3162
                 } else {
3163
-                    TrFctMessage(__FILE__, __LINE__, 4, "File '$p_file_list[$i]' is not " . $v_header['filename'] . '');
3163
+                    TrFctMessage(__FILE__, __LINE__, 4, "File '$p_file_list[$i]' is not ".$v_header['filename'].'');
3164 3164
                 }
3165 3165
             }
3166 3166
 
3167 3167
             // ----- Copy files that do not need to be updated
3168 3168
             if (!$v_update_file) {
3169
-                TrFctMessage(__FILE__, __LINE__, 2, 'Keep file ' . $v_header['filename'] . '');
3169
+                TrFctMessage(__FILE__, __LINE__, 2, 'Keep file '.$v_header['filename'].'');
3170 3170
 
3171 3171
                 // ----- Write the file header
3172 3172
                 if ($p_tar_mode === 'tar') {
@@ -3178,7 +3178,7 @@  discard block
 block discarded – undo
3178 3178
                 // ----- Write the file data
3179 3179
                 $n = ceil($v_header['size'] / 512);
3180 3180
                 for ($j = 0; $j < $n; ++$j) {
3181
-                    TrFctMessage(__FILE__, __LINE__, 3, 'Read complete 512 bytes block number ' . ($j + 1));
3181
+                    TrFctMessage(__FILE__, __LINE__, 3, 'Read complete 512 bytes block number '.($j + 1));
3182 3182
                     if ($p_tar_mode === 'tar') {
3183 3183
                         $v_content = fread($v_tar, 512);
3184 3184
                         fwrite($v_temp_tar, $v_content, 512);
@@ -3189,7 +3189,7 @@  discard block
 block discarded – undo
3189 3189
                 }
3190 3190
 
3191 3191
                 // ----- File name and properties are logged if listing mode or file is extracted
3192
-                TrFctMessage(__FILE__, __LINE__, 2, 'Memorize info about file ' . $v_header['filename'] . '');
3192
+                TrFctMessage(__FILE__, __LINE__, 2, 'Memorize info about file '.$v_header['filename'].'');
3193 3193
 
3194 3194
                 // ----- Add the array describing the file into the list
3195 3195
                 $p_list_detail[$v_nb]           = $v_header;
@@ -3224,7 +3224,7 @@  discard block
 block discarded – undo
3224 3224
                 }
3225 3225
 
3226 3226
                 // ----- Trace
3227
-                TrFctMessage(__FILE__, __LINE__, 2, 'Skip old file ' . $v_header['filename'] . '');
3227
+                TrFctMessage(__FILE__, __LINE__, 2, 'Skip old file '.$v_header['filename'].'');
3228 3228
 
3229 3229
                 // ----- Jump to next file
3230 3230
                 if ($p_tar_mode === 'tar') {
@@ -3361,10 +3361,10 @@  discard block
 block discarded – undo
3361 3361
         if (strlen($v_binary_data) != 512) {
3362 3362
             $v_header['filename'] = '';
3363 3363
             $v_header['status']   = 'invalid_header';
3364
-            TrFctMessage(__FILE__, __LINE__, 2, 'Invalid block size : ' . strlen($v_binary_data));
3364
+            TrFctMessage(__FILE__, __LINE__, 2, 'Invalid block size : '.strlen($v_binary_data));
3365 3365
 
3366 3366
             // ----- Error log
3367
-            PclErrorLog(-10, 'Invalid block size : ' . strlen($v_binary_data));
3367
+            PclErrorLog(-10, 'Invalid block size : '.strlen($v_binary_data));
3368 3368
 
3369 3369
             // ----- Return
3370 3370
             TrFctEnd(__FILE__, __LINE__, PclErrorCode(), PclErrorString());
@@ -3394,9 +3394,9 @@  discard block
 block discarded – undo
3394 3394
 
3395 3395
         // ----- Extract the checksum for check
3396 3396
         $v_header['checksum'] = octdec(trim($v_data['checksum']));
3397
-        TrFctMessage(__FILE__, __LINE__, 3, 'File checksum : ' . $v_header['checksum'] . '');
3397
+        TrFctMessage(__FILE__, __LINE__, 3, 'File checksum : '.$v_header['checksum'].'');
3398 3398
         if ($v_header['checksum'] != $v_checksum) {
3399
-            TrFctMessage(__FILE__, __LINE__, 2, "File checksum is invalid : $v_checksum calculated, " . $v_header['checksum'] . ' expected');
3399
+            TrFctMessage(__FILE__, __LINE__, 2, "File checksum is invalid : $v_checksum calculated, ".$v_header['checksum'].' expected');
3400 3400
 
3401 3401
             $v_header['filename'] = '';
3402 3402
             $v_header['status']   = 'invalid_header';
@@ -3411,7 +3411,7 @@  discard block
 block discarded – undo
3411 3411
             }
3412 3412
 
3413 3413
             // ----- Error log
3414
-            PclErrorLog(-13, "Invalid checksum : $v_checksum calculated, " . $v_header['checksum'] . ' expected');
3414
+            PclErrorLog(-13, "Invalid checksum : $v_checksum calculated, ".$v_header['checksum'].' expected');
3415 3415
 
3416 3416
             // ----- Return
3417 3417
             TrFctEnd(__FILE__, __LINE__, PclErrorCode(), PclErrorString());
@@ -3422,22 +3422,22 @@  discard block
 block discarded – undo
3422 3422
 
3423 3423
         // ----- Extract the properties
3424 3424
         $v_header['filename'] = trim($v_data['filename']);
3425
-        TrFctMessage(__FILE__, __LINE__, 2, 'Name : ' . $v_header['filename'] . '');
3425
+        TrFctMessage(__FILE__, __LINE__, 2, 'Name : '.$v_header['filename'].'');
3426 3426
         $v_header['mode'] = octdec(trim($v_data['mode']));
3427
-        TrFctMessage(__FILE__, __LINE__, 2, "Mode : '" . decoct($v_header['mode']) . "'");
3427
+        TrFctMessage(__FILE__, __LINE__, 2, "Mode : '".decoct($v_header['mode'])."'");
3428 3428
         $v_header['uid'] = octdec(trim($v_data['uid']));
3429
-        TrFctMessage(__FILE__, __LINE__, 2, "Uid : '" . $v_header['uid'] . "'");
3429
+        TrFctMessage(__FILE__, __LINE__, 2, "Uid : '".$v_header['uid']."'");
3430 3430
         $v_header['gid'] = octdec(trim($v_data['gid']));
3431
-        TrFctMessage(__FILE__, __LINE__, 2, "Gid : '" . $v_header['gid'] . "'");
3431
+        TrFctMessage(__FILE__, __LINE__, 2, "Gid : '".$v_header['gid']."'");
3432 3432
         $v_header['size'] = octdec(trim($v_data['size']));
3433
-        TrFctMessage(__FILE__, __LINE__, 2, "Size : '" . $v_header['size'] . "'");
3433
+        TrFctMessage(__FILE__, __LINE__, 2, "Size : '".$v_header['size']."'");
3434 3434
         $v_header['mtime'] = octdec(trim($v_data['mtime']));
3435
-        TrFctMessage(__FILE__, __LINE__, 2, 'Date : ' . date('l dS of F Y h:i:s A', $v_header['mtime']));
3435
+        TrFctMessage(__FILE__, __LINE__, 2, 'Date : '.date('l dS of F Y h:i:s A', $v_header['mtime']));
3436 3436
         if (($v_header['typeflag'] = $v_data['typeflag']) == '5') {
3437 3437
             $v_header['size'] = 0;
3438
-            TrFctMessage(__FILE__, __LINE__, 2, "Size (folder) : '" . $v_header['size'] . "'");
3438
+            TrFctMessage(__FILE__, __LINE__, 2, "Size (folder) : '".$v_header['size']."'");
3439 3439
         }
3440
-        TrFctMessage(__FILE__, __LINE__, 2, 'File typeflag : ' . $v_header['typeflag'] . '');
3440
+        TrFctMessage(__FILE__, __LINE__, 2, 'File typeflag : '.$v_header['typeflag'].'');
3441 3441
         /* ----- All these fields are removed form the header because they do not carry interesting info
3442 3442
     $v_header[link] = trim($v_data[link]);
3443 3443
     TrFctMessage(__FILE__, __LINE__, 2, "Linkname : $v_header[linkname]");
@@ -3617,7 +3617,7 @@  discard block
 block discarded – undo
3617 3617
                             // ----- Ignore only the double '//' in path,
3618 3618
                             // but not the first and last '/'
3619 3619
                         } else {
3620
-                            $v_result = $v_list[$i] . ($i != (count($v_list) - 1) ? '/' . $v_result : '');
3620
+                            $v_result = $v_list[$i].($i != (count($v_list) - 1) ? '/'.$v_result : '');
3621 3621
                         }
3622 3622
                     }
3623 3623
                 }
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/11.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     public $entry;
20 20
 
21 21
     /**
22
-     * @param $calendar
22
+     * @param Calendar_Day $calendar
23 23
      */
24 24
     public function __construct($calendar)
25 25
     {
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     }
36 36
 
37 37
     /**
38
-     * @return mixed
38
+     * @return boolean
39 39
      */
40 40
     public function getEntry()
41 41
     {
Please login to merge, or discard this patch.
versions/extcal_2_04.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         global $xoopsDB;
31 31
 
32
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . "` ADD `event_nbmember` tinyint(4) NOT NULL default '0' AFTER `event_submitdate` ;";
32
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event')."` ADD `event_nbmember` tinyint(4) NOT NULL default '0' AFTER `event_submitdate` ;";
33 33
         $xoopsDB->query($sql);
34 34
     }
35 35
 
Please login to merge, or discard this patch.
class/colorTools.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -159,9 +159,9 @@
 block discarded – undo
159 159
         $tHex = array('', '', '', '');
160 160
 
161 161
         $tHex[0] = $aColors[0];
162
-        $tHex[1] = substr('00' . dechex($aColors[1]), -2);
163
-        $tHex[2] = substr('00' . dechex($aColors[2]), -2);
164
-        $tHex[3] = substr('00' . dechex($aColors[3]), -2);
162
+        $tHex[1] = substr('00'.dechex($aColors[1]), -2);
163
+        $tHex[2] = substr('00'.dechex($aColors[2]), -2);
164
+        $tHex[3] = substr('00'.dechex($aColors[3]), -2);
165 165
 
166 166
         $colorHexa = implode('', $tHex);
167 167
 
Please login to merge, or discard this patch.
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -255,6 +255,10 @@
 block discarded – undo
255 255
      * @param $max
256 256
      * @return mixed
257 257
      */
258
+
259
+    /**
260
+     * @param integer $min
261
+     */
258 262
     public static function bornerValeur($val, $min, $max)
259 263
     {
260 264
         if ($val < $min) {
Please login to merge, or discard this patch.
class/form/spin/formspin.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      */
204 204
     public function setMin($min)
205 205
     {
206
-        $this->_min = (int)$min;
206
+        $this->_min = (int) $min;
207 207
     }
208 208
     /*-----------------------------------------------------------------*/
209 209
     /**
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      */
222 222
     public function setMax($max)
223 223
     {
224
-        $this->_max = (int)$max;
224
+        $this->_max = (int) $max;
225 225
     }
226 226
 
227 227
     /*-----------------------------------------------------------------*/
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      */
243 243
     public function setSmallIncrement($smallIncrement)
244 244
     {
245
-        $this->_smallIncrement = (int)$smallIncrement;
245
+        $this->_smallIncrement = (int) $smallIncrement;
246 246
         if ($this->_smallIncrement == 0) {
247 247
             $this->_smallIncrement = 1;
248 248
         }
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
      */
265 265
     public function setLargeIncrement($largeIncrement)
266 266
     {
267
-        $this->_largeIncrement = (int)$largeIncrement;
267
+        $this->_largeIncrement = (int) $largeIncrement;
268 268
         if ($this->_largeIncrement == 0) {
269 269
             $this->_largeIncrement = 10;
270 270
         }
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
         $sFolderImg  = "{$sSpinFolder}/images/{$this->getImgFolder()}/";
406 406
 
407 407
         $prefixe  = $this->getName();
408
-        $prefixe2 = 'spin' . $prefixe;
408
+        $prefixe2 = 'spin'.$prefixe;
409 409
 
410 410
         $smallIncrement = $this->getSmallIncrement();
411 411
         $largeIncrement = $this->getLargeIncrement();
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
         $t = array();
425 425
 
426 426
         if ($this->_loadJS) {
427
-            $js  = $sSpinFolder . '/js/spin.js';
427
+            $js  = $sSpinFolder.'/js/spin.js';
428 428
             $t[] = "<script src='{$js}' type='text/javascript'></script>";
429 429
         }
430 430
 
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
         //-------------------------------------------------------
470 470
 
471 471
         $t[] = '  </tr>';
472
-        $t[] = '</table>' . "\n";
472
+        $t[] = '</table>'."\n";
473 473
         $t[] = '</div>';
474 474
         //-------------------------------------------
475 475
         $html = implode("\n", $t);
Please login to merge, or discard this patch.
Doc Comments   +16 added lines, -11 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     /**
179 179
      * Set the value.
180 180
      *
181
-     * @param  $value int
181
+     * @param  integer $value int
182 182
      */
183 183
     public function setValue($value)
184 184
     {
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     /**
198 198
      * Set the min value.
199 199
      *
200
-     * @param  $min int
200
+     * @param  integer $min int
201 201
      */
202 202
     public function setMin($min)
203 203
     {
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     /**
216 216
      * Set the max value - must be more great then min.
217 217
      *
218
-     * @param  $max int
218
+     * @param  integer $max int
219 219
      */
220 220
     public function setMax($max)
221 221
     {
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
      * Set the small increment when click a short time on up down nutton
236 236
      * must be  " > 0 ".
237 237
      *
238
-     * @param $smallIncrement
238
+     * @param integer $smallIncrement
239 239
      *
240 240
      * @internal param int $value
241 241
      */
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     /**
260 260
      * Set the large increment when click a long time on up down nutton.
261 261
      *
262
-     * @param  $largeIncrement int
262
+     * @param  integer $largeIncrement int
263 263
      */
264 264
     public function setLargeIncrement($largeIncrement)
265 265
     {
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
      * Set the size in nb car of the input text for the value
283 283
      * must be 2 car min.
284 284
      *
285
-     * @param  $size mixed
285
+     * @param  integer $size mixed
286 286
      */
287 287
     public function setSize($size)
288 288
     {
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
     /**
308 308
      * Set the shortname of the folder images.
309 309
      *
310
-     * @param  $folder string
310
+     * @param  string $folder string
311 311
      */
312 312
     public function setImgFolder($folder)
313 313
     {
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
     /**
328 328
      * Set the label of unites between value and buttons.
329 329
      *
330
-     * @param  $unite string
330
+     * @param  string $unite string
331 331
      */
332 332
     public function setUnite($unite)
333 333
     {
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
     /**
346 346
      * Set the style CSS of the text.
347 347
      *
348
-     * @param  $style string
348
+     * @param  string $style string
349 349
      */
350 350
     public function setStyleText($style)
351 351
     {
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
     /**
366 366
      * Set the style CSS of the frame.
367 367
      *
368
-     * @param  $style string
368
+     * @param  string $style string
369 369
      */
370 370
     public function setStyleBordure($style)
371 371
     {
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
     /**
386 386
      * Set  MinMaxVisible : show the button to go min and max value.
387 387
      *
388
-     * @param  $visible bool
388
+     * @param  boolean $visible bool
389 389
      */
390 390
     public function setMinMaxVisible($visible)
391 391
     {
@@ -494,6 +494,11 @@  discard block
 block discarded – undo
494 494
      * @param string $default
495 495
      * @return string
496 496
      */
497
+
498
+    /**
499
+     * @param string $attribut
500
+     * @param string $value
501
+     */
497 502
     public function htmlAddAttribut($attribut, $value, $default = '')
498 503
     {
499 504
         $r = '';
Please login to merge, or discard this patch.
include/notification.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
22 22
         $event        = $eventHandler->getEvent($itemId, 0, true);
23 23
         $item['name'] = $event->getVar('event_title');
24
-        $item['url']  = XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id');
24
+        $item['url']  = XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id');
25 25
 
26 26
         return $item;
27 27
     }
Please login to merge, or discard this patch.
language/english/main.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -1,34 +1,34 @@  discard block
 block discarded – undo
1 1
 <?php
2
-include_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php';
2
+include_once XOOPS_ROOT_PATH.'/language/'.$GLOBALS['xoopsConfig']['language'].'/calendar.php';
3 3
 define('_MD_CLEAR_CRITERIA', 'clear criteria');
4
-define('_MD_EXTCAL_1_FR', '1st ' . _CAL_FRIDAY);
5
-define('_MD_EXTCAL_1_MO', '1st ' . _CAL_MONDAY);
6
-define('_MD_EXTCAL_1_SA', '1st ' . _CAL_SATURDAY);
7
-define('_MD_EXTCAL_1_SU', '1st ' . _CAL_SUNDAY);
8
-define('_MD_EXTCAL_1_TH', '1st ' . _CAL_THURSDAY);
9
-define('_MD_EXTCAL_1_TU', '1st ' . _CAL_TUESDAY);
10
-define('_MD_EXTCAL_1_WE', '1st ' . _CAL_WEDNESDAY);
11
-define('_MD_EXTCAL_2_FR', '2nd ' . _CAL_FRIDAY);
12
-define('_MD_EXTCAL_2_MO', '2nd ' . _CAL_MONDAY);
13
-define('_MD_EXTCAL_2_SA', '2nd ' . _CAL_SATURDAY);
14
-define('_MD_EXTCAL_2_SU', '2nd ' . _CAL_SUNDAY);
15
-define('_MD_EXTCAL_2_TH', '2nd ' . _CAL_THURSDAY);
16
-define('_MD_EXTCAL_2_TU', '2nd ' . _CAL_TUESDAY);
17
-define('_MD_EXTCAL_2_WE', '2nd ' . _CAL_WEDNESDAY);
18
-define('_MD_EXTCAL_3_FR', '3rd ' . _CAL_FRIDAY);
19
-define('_MD_EXTCAL_3_MO', '3rd ' . _CAL_MONDAY);
20
-define('_MD_EXTCAL_3_SA', '3rd ' . _CAL_SATURDAY);
21
-define('_MD_EXTCAL_3_SU', '3rd ' . _CAL_SUNDAY);
22
-define('_MD_EXTCAL_3_TH', '3rd ' . _CAL_THURSDAY);
23
-define('_MD_EXTCAL_3_TU', '3rd ' . _CAL_TUESDAY);
24
-define('_MD_EXTCAL_3_WE', '3rd ' . _CAL_WEDNESDAY);
25
-define('_MD_EXTCAL_4_FR', '4th ' . _CAL_FRIDAY);
26
-define('_MD_EXTCAL_4_MO', '4th ' . _CAL_MONDAY);
27
-define('_MD_EXTCAL_4_SA', '4th ' . _CAL_SATURDAY);
28
-define('_MD_EXTCAL_4_SU', '4th ' . _CAL_SUNDAY);
29
-define('_MD_EXTCAL_4_TH', '4th ' . _CAL_THURSDAY);
30
-define('_MD_EXTCAL_4_TU', '4th ' . _CAL_TUESDAY);
31
-define('_MD_EXTCAL_4_WE', '4th ' . _CAL_WEDNESDAY);
4
+define('_MD_EXTCAL_1_FR', '1st '._CAL_FRIDAY);
5
+define('_MD_EXTCAL_1_MO', '1st '._CAL_MONDAY);
6
+define('_MD_EXTCAL_1_SA', '1st '._CAL_SATURDAY);
7
+define('_MD_EXTCAL_1_SU', '1st '._CAL_SUNDAY);
8
+define('_MD_EXTCAL_1_TH', '1st '._CAL_THURSDAY);
9
+define('_MD_EXTCAL_1_TU', '1st '._CAL_TUESDAY);
10
+define('_MD_EXTCAL_1_WE', '1st '._CAL_WEDNESDAY);
11
+define('_MD_EXTCAL_2_FR', '2nd '._CAL_FRIDAY);
12
+define('_MD_EXTCAL_2_MO', '2nd '._CAL_MONDAY);
13
+define('_MD_EXTCAL_2_SA', '2nd '._CAL_SATURDAY);
14
+define('_MD_EXTCAL_2_SU', '2nd '._CAL_SUNDAY);
15
+define('_MD_EXTCAL_2_TH', '2nd '._CAL_THURSDAY);
16
+define('_MD_EXTCAL_2_TU', '2nd '._CAL_TUESDAY);
17
+define('_MD_EXTCAL_2_WE', '2nd '._CAL_WEDNESDAY);
18
+define('_MD_EXTCAL_3_FR', '3rd '._CAL_FRIDAY);
19
+define('_MD_EXTCAL_3_MO', '3rd '._CAL_MONDAY);
20
+define('_MD_EXTCAL_3_SA', '3rd '._CAL_SATURDAY);
21
+define('_MD_EXTCAL_3_SU', '3rd '._CAL_SUNDAY);
22
+define('_MD_EXTCAL_3_TH', '3rd '._CAL_THURSDAY);
23
+define('_MD_EXTCAL_3_TU', '3rd '._CAL_TUESDAY);
24
+define('_MD_EXTCAL_3_WE', '3rd '._CAL_WEDNESDAY);
25
+define('_MD_EXTCAL_4_FR', '4th '._CAL_FRIDAY);
26
+define('_MD_EXTCAL_4_MO', '4th '._CAL_MONDAY);
27
+define('_MD_EXTCAL_4_SA', '4th '._CAL_SATURDAY);
28
+define('_MD_EXTCAL_4_SU', '4th '._CAL_SUNDAY);
29
+define('_MD_EXTCAL_4_TH', '4th '._CAL_THURSDAY);
30
+define('_MD_EXTCAL_4_TU', '4th '._CAL_TUESDAY);
31
+define('_MD_EXTCAL_4_WE', '4th '._CAL_WEDNESDAY);
32 32
 define('_MD_EXTCAL_ABSENT', 'Absent');
33 33
 define('_MD_EXTCAL_ACTION_COME', 'Register');
34 34
 define('_MD_EXTCAL_ACTION_DELEGATION', 'Delegate');
@@ -109,13 +109,13 @@  discard block
 block discarded – undo
109 109
 define('_MD_EXTCAL_JAN', 'Jan');
110 110
 define('_MD_EXTCAL_JUL', 'Jul');
111 111
 define('_MD_EXTCAL_JUN', 'Jun');
112
-define('_MD_EXTCAL_LAST_FR', 'Last ' . _CAL_FRIDAY);
113
-define('_MD_EXTCAL_LAST_MO', 'Last ' . _CAL_MONDAY);
114
-define('_MD_EXTCAL_LAST_SA', 'Last ' . _CAL_SATURDAY);
115
-define('_MD_EXTCAL_LAST_SU', 'Last ' . _CAL_SUNDAY);
116
-define('_MD_EXTCAL_LAST_TH', 'Last ' . _CAL_THURSDAY);
117
-define('_MD_EXTCAL_LAST_TU', 'Last ' . _CAL_TUESDAY);
118
-define('_MD_EXTCAL_LAST_WE', 'Last ' . _CAL_WEDNESDAY);
112
+define('_MD_EXTCAL_LAST_FR', 'Last '._CAL_FRIDAY);
113
+define('_MD_EXTCAL_LAST_MO', 'Last '._CAL_MONDAY);
114
+define('_MD_EXTCAL_LAST_SA', 'Last '._CAL_SATURDAY);
115
+define('_MD_EXTCAL_LAST_SU', 'Last '._CAL_SUNDAY);
116
+define('_MD_EXTCAL_LAST_TH', 'Last '._CAL_THURSDAY);
117
+define('_MD_EXTCAL_LAST_TU', 'Last '._CAL_TUESDAY);
118
+define('_MD_EXTCAL_LAST_WE', 'Last '._CAL_WEDNESDAY);
119 119
 define('_MD_EXTCAL_LIB_COME', 'Register');
120 120
 define('_MD_EXTCAL_LIB_NONE', 'None');
121 121
 define('_MD_EXTCAL_LIB_NOTCOME', 'Unsubscribe');
Please login to merge, or discard this patch.
class/ExtcalPersistableObjectHandler.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -536,7 +536,7 @@
 block discarded – undo
536 536
 
537 537
     /**
538 538
      * @param        $objects
539
-     * @param array  $externalKeys
539
+     * @param string[]  $externalKeys
540 540
      * @param string $format
541 541
      *
542 542
      * @return array
Please login to merge, or discard this patch.
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -83,10 +83,10 @@  discard block
 block discarded – undo
83 83
         if (is_array($this->keyName)) {
84 84
             $criteria = new CriteriaCompo();
85 85
             for ($i = 0, $iMax = count($this->keyName); $i < $iMax; ++$i) {
86
-                $criteria->add(new Criteria($this->keyName[$i], (int)$id[$i]));
86
+                $criteria->add(new Criteria($this->keyName[$i], (int) $id[$i]));
87 87
             }
88 88
         } else {
89
-            $criteria = new Criteria($this->keyName, (int)$id);
89
+            $criteria = new Criteria($this->keyName, (int) $id);
90 90
         }
91 91
         $criteria->setLimit(1);
92 92
         $objectArray = &$this->getObjects($criteria, false, true);
@@ -110,11 +110,11 @@  discard block
 block discarded – undo
110 110
     {
111 111
         $ret   = array();
112 112
         $limit = $start = 0;
113
-        $sql   = 'SELECT * FROM ' . $this->table;
113
+        $sql   = 'SELECT * FROM '.$this->table;
114 114
         if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
115
-            $sql .= ' ' . $criteria->renderWhere();
115
+            $sql .= ' '.$criteria->renderWhere();
116 116
             if ($criteria->getSort() != '') {
117
-                $sql .= ' ORDER BY ' . $criteria->getSort() . ' ' . $criteria->getOrder();
117
+                $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder();
118 118
             }
119 119
             $limit = $criteria->getLimit();
120 120
             $start = $criteria->getStart();
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
                     $ret[] = $obj;
150 150
                 } else {
151 151
                     $row  = array();
152
-                    $vars =& $obj->getVars();
152
+                    $vars = & $obj->getVars();
153 153
                     foreach (array_keys($vars) as $i) {
154 154
                         $row[$i] = $obj->getVar($i);
155 155
                     }
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                     $ret[$myrow[$this->keyName]] = $obj;
161 161
                 } else {
162 162
                     $row  = array();
163
-                    $vars =& $obj->getVars();
163
+                    $vars = & $obj->getVars();
164 164
                     foreach (array_keys($vars) as $i) {
165 165
                         $row[$i] = $obj->getVar($i);
166 166
                     }
@@ -193,15 +193,15 @@  discard block
 block discarded – undo
193 193
             $criteria->setSort($this->identifierName);
194 194
         }
195 195
 
196
-        $sql = 'SELECT ' . $this->keyName;
196
+        $sql = 'SELECT '.$this->keyName;
197 197
         if (!empty($this->identifierName)) {
198
-            $sql .= ', ' . $this->identifierName;
198
+            $sql .= ', '.$this->identifierName;
199 199
         }
200
-        $sql .= ' FROM ' . $this->table;
200
+        $sql .= ' FROM '.$this->table;
201 201
         if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
202
-            $sql .= ' ' . $criteria->renderWhere();
202
+            $sql .= ' '.$criteria->renderWhere();
203 203
             if ($criteria->getSort() != '') {
204
-                $sql .= ' ORDER BY ' . $criteria->getSort() . ' ' . $criteria->getOrder();
204
+                $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder();
205 205
             }
206 206
             $limit = $criteria->getLimit();
207 207
             $start = $criteria->getStart();
@@ -234,12 +234,12 @@  discard block
 block discarded – undo
234 234
         if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
235 235
             if ($criteria->groupby != '') {
236 236
                 $groupby = true;
237
-                $field   = $criteria->groupby . ', '; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used
237
+                $field   = $criteria->groupby.', '; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used
238 238
             }
239 239
         }
240
-        $sql = 'SELECT ' . $field . 'COUNT(*) FROM ' . $this->table;
240
+        $sql = 'SELECT '.$field.'COUNT(*) FROM '.$this->table;
241 241
         if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
242
-            $sql .= ' ' . $criteria->renderWhere();
242
+            $sql .= ' '.$criteria->renderWhere();
243 243
             if ($criteria->groupby != '') {
244 244
                 $sql .= $criteria->getGroupby();
245 245
             }
@@ -275,13 +275,13 @@  discard block
 block discarded – undo
275 275
         if (is_array($this->keyName)) {
276 276
             $clause = array();
277 277
             for ($i = 0, $iMax = count($this->keyName); $i < $iMax; ++$i) {
278
-                $clause[] = $this->keyName[$i] . ' = ' . $id[$i];
278
+                $clause[] = $this->keyName[$i].' = '.$id[$i];
279 279
             }
280 280
             $whereclause = implode(' AND ', $clause);
281 281
         } else {
282
-            $whereclause = $this->keyName . ' = ' . $id;
282
+            $whereclause = $this->keyName.' = '.$id;
283 283
         }
284
-        $sql = 'DELETE FROM ' . $this->table . ' WHERE ' . $whereclause;
284
+        $sql = 'DELETE FROM '.$this->table.' WHERE '.$whereclause;
285 285
         if (false !== $force) {
286 286
             $result = $this->db->queryF($sql);
287 287
         } else {
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
             }
313 313
 
314 314
             if (!($obj instanceof $this->className && class_exists($this->className))) {
315
-                $obj->setErrors(get_class($obj) . ' Differs from ' . $this->className);
315
+                $obj->setErrors(get_class($obj).' Differs from '.$this->className);
316 316
 
317 317
                 return false;
318 318
             }
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
 
324 324
         foreach ($obj->cleanVars as $k => $v) {
325 325
             if ($obj->vars[$k]['data_type'] == XOBJ_DTYPE_INT) {
326
-                $cleanvars[$k] = (int)$v;
326
+                $cleanvars[$k] = (int) $v;
327 327
             } elseif (is_array($v)) {
328 328
                 $cleanvars[$k] = $this->db->quoteString(implode(',', $v));
329 329
             } else {
@@ -333,12 +333,12 @@  discard block
 block discarded – undo
333 333
         if ($obj->isNew()) {
334 334
             if (!is_array($this->keyName)) {
335 335
                 if ($cleanvars[$this->keyName] < 1) {
336
-                    $cleanvars[$this->keyName] = $this->db->genId($this->table . '_' . $this->keyName . '_seq');
336
+                    $cleanvars[$this->keyName] = $this->db->genId($this->table.'_'.$this->keyName.'_seq');
337 337
                 }
338 338
             }
339
-            $sql = 'INSERT INTO ' . $this->table . ' (' . implode(',', array_keys($cleanvars)) . ') VALUES (' . implode(',', array_values($cleanvars)) . ')';
339
+            $sql = 'INSERT INTO '.$this->table.' ('.implode(',', array_keys($cleanvars)).') VALUES ('.implode(',', array_values($cleanvars)).')';
340 340
         } else {
341
-            $sql = 'UPDATE ' . $this->table . ' SET';
341
+            $sql = 'UPDATE '.$this->table.' SET';
342 342
             foreach ($cleanvars as $key => $value) {
343 343
                 if ((!is_array($this->keyName) && $key == $this->keyName)
344 344
                     || (is_array($this->keyName)
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
                 if (isset($notfirst)) {
350 350
                     $sql .= ',';
351 351
                 }
352
-                $sql .= ' ' . $key . ' = ' . $value;
352
+                $sql .= ' '.$key.' = '.$value;
353 353
                 $notfirst = true;
354 354
             }
355 355
             if (is_array($this->keyName)) {
@@ -358,12 +358,12 @@  discard block
 block discarded – undo
358 358
                     if ($i > 0) {
359 359
                         $whereclause .= ' AND ';
360 360
                     }
361
-                    $whereclause .= $this->keyName[$i] . ' = ' . $obj->getVar($this->keyName[$i]);
361
+                    $whereclause .= $this->keyName[$i].' = '.$obj->getVar($this->keyName[$i]);
362 362
                 }
363 363
             } else {
364
-                $whereclause = $this->keyName . ' = ' . $obj->getVar($this->keyName);
364
+                $whereclause = $this->keyName.' = '.$obj->getVar($this->keyName);
365 365
             }
366
-            $sql .= ' WHERE ' . $whereclause;
366
+            $sql .= ' WHERE '.$whereclause;
367 367
         }
368 368
         if (false !== $force) {
369 369
             $result = $this->db->queryF($sql);
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
      */
393 393
     public function updateAll($fieldname, $fieldvalue, CriteriaElement $criteria = null, $force = false)
394 394
     {
395
-        $setClause = $fieldname . ' = ';
395
+        $setClause = $fieldname.' = ';
396 396
         if (is_numeric($fieldvalue)) {
397 397
             $setClause .= $fieldvalue;
398 398
         } elseif (is_array($fieldvalue)) {
@@ -400,9 +400,9 @@  discard block
 block discarded – undo
400 400
         } else {
401 401
             $setClause .= $this->db->quoteString($fieldvalue);
402 402
         }
403
-        $sql = 'UPDATE ' . $this->table . ' SET ' . $setClause;
403
+        $sql = 'UPDATE '.$this->table.' SET '.$setClause;
404 404
         if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
405
-            $sql .= ' ' . $criteria->renderWhere();
405
+            $sql .= ' '.$criteria->renderWhere();
406 406
         }
407 407
         if (false !== $force) {
408 408
             $result = $this->db->queryF($sql);
@@ -426,9 +426,9 @@  discard block
 block discarded – undo
426 426
      */
427 427
     public function updateFieldValue($fieldname, $fieldvalue, $criteria = null, $force = true)
428 428
     {
429
-        $sql = 'UPDATE ' . $this->table . ' SET ' . $fieldname . ' = ' . $fieldvalue;
429
+        $sql = 'UPDATE '.$this->table.' SET '.$fieldname.' = '.$fieldvalue;
430 430
         if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
431
-            $sql .= ' ' . $criteria->renderWhere();
431
+            $sql .= ' '.$criteria->renderWhere();
432 432
         }
433 433
         if (false !== $force) {
434 434
             $result = $this->db->queryF($sql);
@@ -455,8 +455,8 @@  discard block
 block discarded – undo
455 455
     public function deleteAll(CriteriaElement $criteria = null, $force = true, $asObject = false)
456 456
     {
457 457
         if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
458
-            $sql = 'DELETE FROM ' . $this->table;
459
-            $sql .= ' ' . $criteria->renderWhere();
458
+            $sql = 'DELETE FROM '.$this->table;
459
+            $sql .= ' '.$criteria->renderWhere();
460 460
             if (!$this->db->query($sql)) {
461 461
                 return false;
462 462
             }
@@ -590,8 +590,8 @@  discard block
 block discarded – undo
590 590
      */
591 591
     public function updateCounter($fieldname, $criteria, $op = '+')
592 592
     {
593
-        $sql = 'UPDATE ' . $this->table . ' SET ' . $fieldname . ' = ' . $fieldname . $op . '1';
594
-        $sql .= ' ' . $criteria->renderWhere();
593
+        $sql = 'UPDATE '.$this->table.' SET '.$fieldname.' = '.$fieldname.$op.'1';
594
+        $sql .= ' '.$criteria->renderWhere();
595 595
         $result = $this->db->queryF($sql);
596 596
         if (!$result) {
597 597
             return false;
@@ -613,12 +613,12 @@  discard block
 block discarded – undo
613 613
         if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
614 614
             if ($criteria->groupby != '') {
615 615
                 $groupby = true;
616
-                $field   = $criteria->groupby . ', '; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used
616
+                $field   = $criteria->groupby.', '; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used
617 617
             }
618 618
         }
619
-        $sql = 'SELECT ' . $field . "SUM($sum) FROM " . $this->table;
619
+        $sql = 'SELECT '.$field."SUM($sum) FROM ".$this->table;
620 620
         if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
621
-            $sql .= ' ' . $criteria->renderWhere();
621
+            $sql .= ' '.$criteria->renderWhere();
622 622
             if ($criteria->groupby != '') {
623 623
                 $sql .= $criteria->getGroupby();
624 624
             }
@@ -654,12 +654,12 @@  discard block
 block discarded – undo
654 654
         if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
655 655
             if ($criteria->groupby != '') {
656 656
                 $groupby = true;
657
-                $field   = $criteria->groupby . ', '; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used
657
+                $field   = $criteria->groupby.', '; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used
658 658
             }
659 659
         }
660
-        $sql = 'SELECT ' . $field . "MAX($max) FROM " . $this->table;
660
+        $sql = 'SELECT '.$field."MAX($max) FROM ".$this->table;
661 661
         if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
662
-            $sql .= ' ' . $criteria->renderWhere();
662
+            $sql .= ' '.$criteria->renderWhere();
663 663
             if ($criteria->groupby != '') {
664 664
                 $sql .= $criteria->getGroupby();
665 665
             }
@@ -692,9 +692,9 @@  discard block
 block discarded – undo
692 692
     {
693 693
         $field = '';
694 694
 
695
-        $sql = 'SELECT ' . $field . "AVG($avg) FROM " . $this->table;
695
+        $sql = 'SELECT '.$field."AVG($avg) FROM ".$this->table;
696 696
         if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
697
-            $sql .= ' ' . $criteria->renderWhere();
697
+            $sql .= ' '.$criteria->renderWhere();
698 698
         }
699 699
         $result = $this->db->query($sql);
700 700
         if (!$result) {
Please login to merge, or discard this patch.
class/pear/Calendar/Decorator.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     /**
137 137
      * Returns the date as an associative array (helper method).
138 138
      *
139
-     * @param mixed $stamp timestamp (leave empty for current timestamp)
139
+     * @param integer $stamp timestamp (leave empty for current timestamp)
140 140
      *
141 141
      * @return array
142 142
      */
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      *
243 243
      * @param array $sDates array containing Calendar objects to select (optional)
244 244
      *
245
-     * @return bool
245
+     * @return boolean|null
246 246
      * @abstract
247 247
      */
248 248
     public function build($sDates = array())
Please login to merge, or discard this patch.