Attached is the D7 upgrade for coder tough love. It includes a few extra changes for php warnings caused by checking unset variables.

Comments

douggreen’s picture

StatusFileSize
new6.04 KB

Doh, that patch was done incorrectly without diff -up, use this one instead.

This also fixes dependency on coder_review instead of coder.

podarok’s picture

subscribe

mgifford’s picture

Issue tags: +7x upgrade

patch fails against coder_tough_love-6.x-1.x-dev.tar.gz

Does it work against the CVS?

cor3huis’s picture

Priority: Normal » Major

Bump, could maintainer (please please) test against cvs and integrate.

IMHO It would be a waste if not done. Specifically now Drupal 7 is out there and others want to help upgrading modules to a Drupal 7 version, this module will benefit the quality of the module code for a Drupal 7 version.

Specifically since there is already a Coder module working for Drupal 7 http://drupal.org/project/coder

mparker17’s picture

Subscribe!

Freso’s picture

Subscribe. :)

rwohleb’s picture

subscribe

basicmagic.net’s picture

subscribe

pfrenssen’s picture

StatusFileSize
new5.86 KB

Rerolled patch against git.

cor3huis’s picture

Super, thanks! Now if only my day would have 48H ;) I could also test.

nancydru’s picture

sub

rickmanelius’s picture

subscribe

robin van emden’s picture

Patch works fine for me, first test-run seems to indicate no problems.

cweagans’s picture

Can we get this committed to a Drupal 7 branch and iterate from there?

attiks’s picture

Status: Needs review » Reviewed & tested by the community

works like a charm

mgifford’s picture

Ok, how do we get a release then?

cweagans’s picture

We need to talk to Morbus to get a release.

xjm’s picture

Status: Reviewed & tested by the community » Needs work

Alright, I've reviewed this patch. It seems to me the "extra changes" to prevent notices should also be backported to the 6.x branch, no? So it would be better to have those in a separate patch. Also, the change from 0 to unset() doesn't really make sense to me. Instead of all that, wouldn't it be better to use empty() instead? (And FALSE would be more self-documenting than 0, while we're at it.) Regardless, let's put that in a separate issue.

I've confirmed that the changed namespacing of _coder_error() to _coder_review_error() is only present in the 7.x-1.x branch of coder, so that change does belong in this patch.

xjm’s picture

StatusFileSize
new4.49 KB

Here's a patch for a port without the extra stuff.

xjm’s picture

Status: Needs work » Needs review
xjm’s picture

Ah, there is already a patch for the notices in #340617: PHP notices and undefined variables oh my!.

naught101’s picture

Title: D7 upgrade » Coder Tought Love D7 upgrade

for tracker readability

cweagans’s picture

Title: Coder Tought Love D7 upgrade » Coder Tough Love D7 upgrade

For spelling. =P

aspilicious’s picture

StatusFileSize
new4.17 KB

Fatal errors, this one works...

xjm’s picture

Status: Needs review » Fixed
Issue tags: -7x upgrade +DatabaseSchemaObjectExistsException: Table <em class=

I've opened the 7.x-1.x branch and created a release node. A development snapshot should be available within 24 hours. Thanks @aspilicious et al!
http://drupal.org/commitlog/commit/7948/e58b9ad56c1453320965c8619c0303c2...

xjm’s picture

Issue tags: -DatabaseSchemaObjectExistsException: Table <em class=

No idea where THAT came from.

Freso’s picture

Status: Fixed » Needs review
Issue tags: +7x upgrade
StatusFileSize
new4.54 KB

I got an error "PHP Fatal error: Call to undefined function _coder_severity_name() in /srv/http/drupal7/sites/all/modules/coder_tough_love/coder_tough_love.module on line 211" using the patch from #19. Replacing _coder_severity_name calls with _coder_review_severity_name calls fixed it. Patch attached.

Freso’s picture

Status: Needs review » Fixed

Ha. Nevermind me then. :)

xjm’s picture

Looks like you and @aspilicious were testing it at the same time. :)

Status: Fixed » Closed (fixed)
Issue tags: -7x upgrade

Automatically closed -- issue fixed for 2 weeks with no activity.