Skip to content
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

Complying to coding standards #5

Merged
merged 1 commit into from Jul 8, 2013

Conversation

joshuapaling
Copy link
Contributor

Haven't changed anything other than complying to coding standards.

Signed-off-by: Joshua Paling joshua.paling@gmail.com

Signed-off-by: Joshua Paling <joshua.paling@gmail.com>
if(is_numeric($key)){
protected function _addUniquePaths($dataRow, $excludePaths, &$extract, $parentPath = '') {
foreach ($dataRow as $key => $value) {
$fullPath = ($parentPath !== '')? $parentPath . '.' . $key : $key;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing space before ?

@dereuromark
Copy link
Member

👍

@@ -33,11 +33,11 @@ public function startup(Controller $controller) {
* @param array $excludePaths [description]
* @return array an array of Hash::extract() compatible paths
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think the additional spaces are needed (a single one before/after/between "return array" suffices):

@return array An array of Hash::extract() compatible paths

@joshuapaling
Copy link
Contributor Author

It passes the code sniffer with no errors, so presumably the issues you've mentioned are down to preference. Might fix them later.

@dereuromark
Copy link
Member

Well, there are just no "sniffs" for it yet :)

Sry for being a stickler.

@josegonzalez
Copy link
Member

Gotta sniff the fuck outta this
On Jul 2, 2013 8:54 PM, "Mark" notifications@github.com wrote:

Well, there are just no "sniffs" for it yet :)


Reply to this email directly or view it on GitHubhttps://github.com//pull/5#issuecomment-20389410
.

@joshuapaling
Copy link
Contributor Author

ha it's cool. Good to know for future reference.

@dereuromark
Copy link
Member

🎱

josegonzalez added a commit that referenced this pull request Jul 8, 2013
Complying to coding standards
@josegonzalez josegonzalez merged commit e0d7b43 into FriendsOfCake:master Jul 8, 2013
@josegonzalez
Copy link
Member

Merged, thanks for the pull request!

@josegonzalez
Copy link
Member

Alright, added phpcs to my tests. After a few goes, everything checks out on master :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants