@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | } |
127 | 127 | |
128 | 128 | /** |
129 | - * @param $topLevelObject string |
|
129 | + * @param string $topLevelObject string |
|
130 | 130 | * @param $crudAction string |
131 | 131 | * |
132 | 132 | * Based on the values provided in the $topLevelObject and $crudAction |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | |
282 | 282 | /** |
283 | 283 | * @param $jsonStructures array |
284 | - * @param $objectDefiner string |
|
284 | + * @param string $objectDefiner string |
|
285 | 285 | * |
286 | 286 | * While the {@link generateSqlFromStructure()} method above generates sql string |
287 | 287 | * from only valid top level objects, this method generates sql statements from valid |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | /** |
353 | 353 | * @param $encloserPre string |
354 | 354 | * @param $encloserPost string |
355 | - * @param $enclosee string |
|
355 | + * @param string $enclosee string |
|
356 | 356 | * |
357 | 357 | * Checks to see if a string ($enclosee) is enclosed by special characters |
358 | 358 | * such as '{' and '}' and '[' and ']'. |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | */ |
112 | 112 | public function __construct($jsonStructureFile, $sqlVendor) |
113 | 113 | { |
114 | - if (is_array($jsonStructureFile)){ |
|
114 | + if (is_array($jsonStructureFile)) { |
|
115 | 115 | $this->jsonStructure = $jsonStructureFile; |
116 | 116 | } |
117 | 117 | else { |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | if ($toSetValue && !is_bool($jsonStructure[$topLevelObject][$_string])) { |
335 | 335 | $jsyn[$i] = $jsonStructure[$topLevelObject][$_string]; |
336 | 336 | } else { |
337 | - if ($replaceWithComma){ |
|
337 | + if ($replaceWithComma) { |
|
338 | 338 | $string = ", $string"; |
339 | 339 | } |
340 | 340 | $jsyn[$i] = (isset($jsonStructure[$topLevelObject][$_string]) && $jsonStructure[$topLevelObject][$_string] == true) ? strtoupper($string) : null; |
@@ -113,8 +113,7 @@ |
||
113 | 113 | { |
114 | 114 | if (is_array($jsonStructureFile)){ |
115 | 115 | $this->jsonStructure = $jsonStructureFile; |
116 | - } |
|
117 | - else { |
|
116 | + } else { |
|
118 | 117 | $this->jsonStructure = self::getObjectFromJsonFile($jsonStructureFile); |
119 | 118 | } |
120 | 119 | $this->sqlVendor = $sqlVendor; |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | private $sqlSyntax; |
36 | 36 | |
37 | 37 | /** |
38 | - * @param $jsynFile string | PathUtil |
|
38 | + * @param string $jsynFile string | PathUtil |
|
39 | 39 | * @param $sqlSyntax string |
40 | 40 | * |
41 | 41 | * @return null |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | /** |
87 | - * @return Array |
|
87 | + * @return string |
|
88 | 88 | */ |
89 | 89 | public function getJsyn() |
90 | 90 | { |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | /** |
112 | 112 | * Returns the extracted jsyn as a string |
113 | 113 | * |
114 | - * @return null |
|
114 | + * @return string |
|
115 | 115 | */ |
116 | 116 | public function __toString() |
117 | 117 | { |
@@ -65,13 +65,13 @@ discard block |
||
65 | 65 | return; |
66 | 66 | } |
67 | 67 | |
68 | - /** |
|
69 | - * @param $sqlSyntax string |
|
70 | - * |
|
71 | - * Setter function for the sqlSyntax global property |
|
72 | - * |
|
73 | - * @return null |
|
74 | - */ |
|
68 | + /** |
|
69 | + * @param $sqlSyntax string |
|
70 | + * |
|
71 | + * Setter function for the sqlSyntax global property |
|
72 | + * |
|
73 | + * @return null |
|
74 | + */ |
|
75 | 75 | public function setSqlSyntax($sqlSyntax) |
76 | 76 | { |
77 | 77 | $this->sqlSyntax = $sqlSyntax; |
@@ -83,20 +83,20 @@ discard block |
||
83 | 83 | return; |
84 | 84 | } |
85 | 85 | |
86 | - /** |
|
87 | - * @return Array |
|
88 | - */ |
|
86 | + /** |
|
87 | + * @return Array |
|
88 | + */ |
|
89 | 89 | public function getJsyn() |
90 | 90 | { |
91 | 91 | return $this->jsyn; |
92 | 92 | } |
93 | 93 | |
94 | - /** |
|
95 | - * Performs extraction of the appropriate sql syntax |
|
96 | - * fromthe supplied jsyn file. |
|
97 | - * |
|
98 | - * @return null |
|
99 | - */ |
|
94 | + /** |
|
95 | + * Performs extraction of the appropriate sql syntax |
|
96 | + * fromthe supplied jsyn file. |
|
97 | + * |
|
98 | + * @return null |
|
99 | + */ |
|
100 | 100 | public function formatJsyn() |
101 | 101 | { |
102 | 102 | for ($i = 0; $i < count($this->jsyn); ++$i) { |