New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strict standards fix #121
Strict standards fix #121
Changes from all commits
cfc8b4f
5b6cdf9
394b869
26b7e10
e3ac3a3
b3cb47a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Propel package. | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @license MIT License | ||
*/ | ||
|
||
namespace Propel\Generator\Builder\Util; | ||
|
||
use Propel\Generator\Model\Column; | ||
|
||
class ColumnValue | ||
{ | ||
|
||
private $col; | ||
|
||
private $val; | ||
|
||
public function __construct(Column $col, $val) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You missed the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh yes! I'm updating the PR ;) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both classes are in the same namespace in fact so no need for the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops you're right. |
||
{ | ||
$this->col = $col; | ||
$this->val = $val; | ||
} | ||
|
||
public function getColumn() | ||
{ | ||
return $this->col; | ||
} | ||
|
||
public function getValue() | ||
{ | ||
return $this->val; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Propel package. | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @license MIT License | ||
*/ | ||
|
||
namespace Propel\Generator\Builder\Util; | ||
|
||
use Propel\Generator\Model\Table; | ||
|
||
class DataRow | ||
{ | ||
private $table; | ||
private $columnValues; | ||
|
||
public function __construct(Table $table, $columnValues) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You missed the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch. |
||
{ | ||
$this->table = $table; | ||
$this->columnValues = $columnValues; | ||
} | ||
|
||
public function getTable() | ||
{ | ||
return $this->table; | ||
} | ||
|
||
public function getColumnValues() | ||
{ | ||
return $this->columnValues; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,18 +10,17 @@ | |
|
||
namespace Propel\Generator\Reverse; | ||
|
||
// TODO: to remove | ||
require_once 'phing/Task.php'; | ||
use Task; | ||
|
||
use PDO; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Personally I don't like such There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Personally, I like to use an absolute NS for core classes :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Personnaly I prefer using the following syntax for core classes:
|
||
use Propel\Generator\Model\Column; | ||
use Propel\Generator\Model\Database; | ||
use Propel\Generator\Model\Table; | ||
use Propel\Generator\Model\PropelTypes; | ||
use Propel\Generator\Model\ColumnDefaultValue; | ||
|
||
use \PDO; | ||
|
||
// TODO: to remove | ||
require_once 'phing/Task.php'; | ||
use \Task; | ||
|
||
/** | ||
* Mysql database schema parser. | ||
* | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a blank line between attributes declarations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed thanks.