Completed
Push — master ( 497518...867338 )
by Joao
04:19
created
src/Database/DBBaseFunctions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
     /**
56 56
      * Return if the database provider have a top or similar function
57
-     * @return unknown_type
57
+     * @return boolean
58 58
      */
59 59
     function hasTop()
60 60
     {
Please login to merge, or discard this patch.
src/Database/DBDblibFunctions.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
     /**
45 45
      * Return if the database provider have a top or similar function
46
-     * @return unknown_type
46
+     * @return boolean
47 47
      */
48 48
     function hasTop()
49 49
     {
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,12 +68,16 @@
 block discarded – undo
68 68
      */
69 69
     function sqlDate($fmt, $col = false)
70 70
     {
71
-        if (!$col) $col = "getdate()";
71
+        if (!$col) {
72
+            $col = "getdate()";
73
+        }
72 74
         $s = '';
73 75
 
74 76
         $len = strlen($fmt);
75 77
         for ($i = 0; $i < $len; $i++) {
76
-            if ($s) $s .= '+';
78
+            if ($s) {
79
+                $s .= '+';
80
+            }
77 81
             $ch = $fmt[$i];
78 82
             switch ($ch) {
79 83
                 case 'Y':
Please login to merge, or discard this patch.
src/Database/DBMysqlFunctions.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
     /**
52 52
      * Return if the database provider have a top or similar function
53
-     * @return unknown_type
53
+     * @return boolean
54 54
      */
55 55
     function hasTop()
56 56
     {
Please login to merge, or discard this patch.
Braces   +11 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,7 +75,9 @@  discard block
 block discarded – undo
75 75
      */
76 76
     function sqlDate($fmt, $col = false)
77 77
     {
78
-        if (!$col) $col = $this->sysTimeStamp;
78
+        if (!$col) {
79
+            $col = $this->sysTimeStamp;
80
+        }
79 81
         $s = 'DATE_FORMAT(' . $col . ",'";
80 82
         $concat = false;
81 83
         $len = strlen($fmt);
@@ -90,8 +92,11 @@  discard block
 block discarded – undo
90 92
                 case 'q':
91 93
                     $s .= "'),Quarter($col)";
92 94
 
93
-                    if ($len > $i + 1) $s .= ",DATE_FORMAT($col,'";
94
-                    else $s .= ",('";
95
+                    if ($len > $i + 1) {
96
+                        $s .= ",DATE_FORMAT($col,'";
97
+                    } else {
98
+                        $s .= ",('";
99
+                    }
95 100
                     $concat = true;
96 101
                     break;
97 102
                 case 'M':
@@ -138,7 +143,9 @@  discard block
 block discarded – undo
138 143
             }
139 144
         }
140 145
         $s.="')";
141
-        if ($concat) $s = "CONCAT($s)";
146
+        if ($concat) {
147
+            $s = "CONCAT($s)";
148
+        }
142 149
         return $s;
143 150
     }
144 151
 
Please login to merge, or discard this patch.
src/Database/DBOci8Driver.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@
 block discarded – undo
185 185
 
186 186
     /**
187 187
      *
188
-     * @return handle
188
+     * @return resource|null
189 189
      */
190 190
     public function getDbConnection()
191 191
     {
Please login to merge, or discard this patch.
src/Database/DBPgsqlFunctions.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
     /**
46 46
      * Return if the database provider have a top or similar function
47
-     * @return unknown_type
47
+     * @return boolean
48 48
      */
49 49
     function hasTop()
50 50
     {
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,9 @@
 block discarded – undo
69 69
      */
70 70
     function sqlDate($fmt, $col = false)
71 71
     {
72
-        if (!$col) $col = $this->sysTimeStamp;
72
+        if (!$col) {
73
+            $col = $this->sysTimeStamp;
74
+        }
73 75
         $s = 'TO_CHAR(' . $col . ",'";
74 76
 
75 77
         $len = strlen($fmt);
Please login to merge, or discard this patch.
src/Database/DBSQLRelayDriver.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@
 block discarded – undo
25 25
     protected $_conn;
26 26
     protected $_transaction = false;
27 27
 
28
+    /**
29
+     * @param ConnectionManagement $connMngt
30
+     */
28 31
     public function __construct($connMngt)
29 32
     {
30 33
         $this->_connectionManagement = $connMngt;
Please login to merge, or discard this patch.
src/Database/SQLBind.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      *
34 34
      * @param ConnectionManagement $connData
35 35
      * @param string $sql
36
-     * @param array $param
36
+     * @param array $params
37 37
      * @return array An array with the adjusted SQL and PARAMs
38 38
      */
39 39
     public static function parseSQL(ConnectionManagement $connData, $sql, $params = null)
Please login to merge, or discard this patch.
src/Database/SQLHelper.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,6 @@  discard block
 block discarded – undo
32 32
     /**
33 33
      * Generate and Execute UPDATE and INSERTS
34 34
      *
35
-     * @param DBDataset $db
36 35
      * @param string $table
37 36
      * @param array $fields
38 37
      * @param SQLType $type
@@ -148,6 +147,9 @@  discard block
 block discarded – undo
148 147
         $this->_fieldDeliRight = $right;
149 148
     }
150 149
 
150
+    /**
151
+     * @param string $sql
152
+     */
151 153
     public static function createSafeSQL($sql, $list)
152 154
     {
153 155
         foreach ($list as $key => $value) {
Please login to merge, or discard this patch.
src/Enum/FixedTextDefinition.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      * @param string $fieldName
20 20
      * @param int $startPos
21 21
      * @param int $length
22
-     * @param bool $requiredValue
22
+     * @param string|boolean $requiredValue
23 23
      * @param array_of_FixedTextDefinition $subTypes
24 24
      */
25 25
     public function __construct($fieldName, $startPos, $length, $requiredValue = "", $subTypes = null)
Please login to merge, or discard this patch.