File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -46,16 +46,15 @@ public function loadSchema($filename)
4646 */
4747 public function loadTables ($ tables )
4848 {
49- return array_map (function ($ tableNode ){
50- $ columns = $ this ->loadColumns ($ tableNode ->xpath ('/ /column ' ));
49+ return array_map (function ($ tableNode ) {
50+ $ columns = $ this ->loadColumns ($ tableNode ->xpath ('. /column ' ));
5151 $ table = new Table ((string )$ tableNode ['name ' ], $ columns );
5252
5353 if ((string ) $ tableNode ['primaryKey ' ]) {
5454 $ table ->setPrimaryKey (
5555 [(string ) $ tableNode ['primaryKey ' ]]
5656 );
5757 }
58-
5958 return $ table ;
6059 }, $ tables );
6160 }
@@ -66,7 +65,7 @@ public function loadTables($tables)
6665 */
6766 public function loadColumns ($ columns )
6867 {
69- return array_map (function ($ columnNode ){
68+ return array_map (function ($ columnNode ) {
7069 // var_dump($columnNode);
7170 return $ this ->loadColumn ($ columnNode );
7271 }, $ columns );
You can’t perform that action at this time.
0 commit comments