Completed
Push — master ( a52629...cbc88e )
by Joao
04:07
created
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.
Switch Indentation   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -76,59 +76,59 @@
 block discarded – undo
76 76
         for ($i = 0; $i < $len; $i++) {
77 77
             $ch = $fmt[$i];
78 78
             switch ($ch) {
79
-                case 'Y':
80
-                case 'y':
81
-                    $s .= 'YYYY';
82
-                    break;
83
-                case 'Q':
84
-                case 'q':
85
-                    $s .= 'Q';
86
-                    break;
87
-
88
-                case 'M':
89
-                    $s .= 'Mon';
90
-                    break;
91
-
92
-                case 'm':
93
-                    $s .= 'MM';
94
-                    break;
95
-                case 'D':
96
-                case 'd':
97
-                    $s .= 'DD';
98
-                    break;
99
-
100
-                case 'H':
101
-                    $s.= 'HH24';
102
-                    break;
103
-
104
-                case 'h':
105
-                    $s .= 'HH';
106
-                    break;
107
-
108
-                case 'i':
109
-                    $s .= 'MI';
110
-                    break;
111
-
112
-                case 's':
113
-                    $s .= 'SS';
114
-                    break;
115
-
116
-                case 'a':
117
-                case 'A':
118
-                    $s .= 'AM';
119
-                    break;
120
-
121
-                default:
122
-                    // handle escape characters...
123
-                    if ($ch == '\\') {
124
-                        $i++;
125
-                        $ch = substr($fmt, $i, 1);
126
-                    }
127
-                    if (strpos('-/.:;, ', $ch) !== false) {
128
-                        $s .= $ch;
129
-                    } else {
130
-                        $s .= '"' . $ch . '"';
131
-                    }
79
+            case 'Y':
80
+            case 'y':
81
+                $s .= 'YYYY';
82
+                break;
83
+            case 'Q':
84
+            case 'q':
85
+                $s .= 'Q';
86
+                break;
87
+
88
+            case 'M':
89
+                $s .= 'Mon';
90
+                break;
91
+
92
+            case 'm':
93
+                $s .= 'MM';
94
+                break;
95
+            case 'D':
96
+            case 'd':
97
+                $s .= 'DD';
98
+                break;
99
+
100
+            case 'H':
101
+                $s.= 'HH24';
102
+                break;
103
+
104
+            case 'h':
105
+                $s .= 'HH';
106
+                break;
107
+
108
+            case 'i':
109
+                $s .= 'MI';
110
+                break;
111
+
112
+            case 's':
113
+                $s .= 'SS';
114
+                break;
115
+
116
+            case 'a':
117
+            case 'A':
118
+                $s .= 'AM';
119
+                break;
120
+
121
+            default:
122
+                // handle escape characters...
123
+                if ($ch == '\\') {
124
+                    $i++;
125
+                    $ch = substr($fmt, $i, 1);
126
+                }
127
+                if (strpos('-/.:;, ', $ch) !== false) {
128
+                    $s .= $ch;
129
+                } else {
130
+                    $s .= '"' . $ch . '"';
131
+                }
132 132
             }
133 133
         }
134 134
         return $s . "')";
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.
src/Model/ObjectHandler.php 1 patch
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -185,7 +185,6 @@  discard block
 block discarded – undo
185 185
      * @param type $classMeta
186 186
      * @param type $prop
187 187
      * @param type $keyProp
188
-     * @param type $this->_config
189 188
      * @return null
190 189
      */
191 190
     protected function getPropInfo($classMeta, $prop, $keyProp)
@@ -287,6 +286,9 @@  discard block
 block discarded – undo
287 286
         return $node;
288 287
     }
289 288
 
289
+    /**
290
+     * @param DOMNode $node
291
+     */
290 292
     protected function createPropertyNodes($node, $properties, $classMeta)
291 293
     {
292 294
         if (!is_null($properties)) {
@@ -321,6 +323,10 @@  discard block
 block discarded – undo
321 323
                     // Check if the array is associative or dont.
322 324
                     $isAssoc = (bool) count(array_filter(array_keys($propMeta[ObjectHandler::PROP_VALUE]), 'is_string'));
323 325
                     $hasScalar = (bool) count(array_filter(array_values($propMeta[ObjectHandler::PROP_VALUE]),
326
+
327
+                                /**
328
+                                 * @param DOMNode $val
329
+                                 */
324 330
                                 function($val) {
325 331
                                 return !(is_object($val) || is_array($val));
326 332
                             }));
@@ -519,7 +525,7 @@  discard block
 block discarded – undo
519 525
      *
520 526
      * @param DOMNode $domnode
521 527
      * @param type $jsonFunction
522
-     * @return type
528
+     * @return string
523 529
      */
524 530
     public static function xml2json($domnode, $jsonFunction = "")
525 531
     {
Please login to merge, or discard this patch.
src/Repository/AnyDataset.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -308,6 +308,10 @@
 block discarded – undo
308 308
         return;
309 309
     }
310 310
 
311
+    /**
312
+     * @param SingleRow[] $seq
313
+     * @param string $field
314
+     */
311 315
     protected function quickSortExec($seq, $field)
312 316
     {
313 317
         if (!count($seq)) return $seq;
Please login to merge, or discard this patch.
src/Repository/DBIterator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     private $_rs;
21 21
 
22 22
     /**
23
-     * @param PDOStatement $recordset
23
+     * @param \PDOStatement $recordset
24 24
      * @return void
25 25
      */
26 26
     public function __construct($recordset)
Please login to merge, or discard this patch.