448191 Posted March 22, 2007 Share Posted March 22, 2007 LMAO Link to comment https://forums.phpfreaks.com/topic/40676-phpwasher-cleans-up-your-php-code/page/2/#findComment-212965 Share on other sites More sharing options...
Lumio Posted March 22, 2007 Share Posted March 22, 2007 hahaha and that said someone who writes php? lol Link to comment https://forums.phpfreaks.com/topic/40676-phpwasher-cleans-up-your-php-code/page/2/#findComment-213001 Share on other sites More sharing options...
Example303 Posted March 24, 2007 Share Posted March 24, 2007 I tryed it online, it did not work. Link to comment https://forums.phpfreaks.com/topic/40676-phpwasher-cleans-up-your-php-code/page/2/#findComment-214282 Share on other sites More sharing options...
redbullmarky Posted March 24, 2007 Share Posted March 24, 2007 I tryed it online, it did not work. why? what happened? what errors? what file did you try? please be more specific with your posts - and not just this one. Link to comment https://forums.phpfreaks.com/topic/40676-phpwasher-cleans-up-your-php-code/page/2/#findComment-214305 Share on other sites More sharing options...
Vinze Posted March 24, 2007 Author Share Posted March 24, 2007 I tryed it online, it did not work. why? what happened? what errors? what file did you try? please be more specific with your posts - and not just this one. Indeed, it would be far more helpful for me. I might not be able to work on PHPWasher now, but I'll look into everything later, so it'd be helpful if you posted the code you tried. Link to comment https://forums.phpfreaks.com/topic/40676-phpwasher-cleans-up-your-php-code/page/2/#findComment-214309 Share on other sites More sharing options...
cmgmyr Posted March 24, 2007 Share Posted March 24, 2007 i just went to your try online and the page was not available Link to comment https://forums.phpfreaks.com/topic/40676-phpwasher-cleans-up-your-php-code/page/2/#findComment-214310 Share on other sites More sharing options...
Vinze Posted March 24, 2007 Author Share Posted March 24, 2007 i just went to your try online and the page was not available You're right, there's a problem with that server atm. I hope it'll be back soon. Link to comment https://forums.phpfreaks.com/topic/40676-phpwasher-cleans-up-your-php-code/page/2/#findComment-214311 Share on other sites More sharing options...
mattd8752 Posted March 24, 2007 Share Posted March 24, 2007 I'm sorry to say, but honestly... I think it was pretty ugly. It made more of a mess of my script than I already had. Could you post the script you inserted? I'm a bit busy at the moment, but when I have time again I'll check back to this thread and try to solve all problems. I just used: <?php $x = "test"; if($x == $y){ echo "TEST"; } ?> Link to comment https://forums.phpfreaks.com/topic/40676-phpwasher-cleans-up-your-php-code/page/2/#findComment-214385 Share on other sites More sharing options...
Vinze Posted March 25, 2007 Author Share Posted March 25, 2007 I'm sorry to say, but honestly... I think it was pretty ugly. It made more of a mess of my script than I already had. Could you post the script you inserted? I'm a bit busy at the moment, but when I have time again I'll check back to this thread and try to solve all problems. I just used: <?php $x = "test"; if($x == $y){ echo "TEST"; } ?> That's weird, because except for an additional tab in front of ?> it worked fine for me. Link to comment https://forums.phpfreaks.com/topic/40676-phpwasher-cleans-up-your-php-code/page/2/#findComment-214682 Share on other sites More sharing options...
mattd8752 Posted March 25, 2007 Share Posted March 25, 2007 I guess it is just my opinion of how I think code should be indented. I guess I can see how some people do different styles of indentation which this fits. Link to comment https://forums.phpfreaks.com/topic/40676-phpwasher-cleans-up-your-php-code/page/2/#findComment-215021 Share on other sites More sharing options...
Vinze Posted March 26, 2007 Author Share Posted March 26, 2007 I guess it is just my opinion of how I think code should be indented. I guess I can see how some people do different styles of indentation which this fits. Ah, right, that's why you can configure that in the downloaded version. Guess I should also do that for the online version. What exactly would you like to have different? You can already change indentation method (e.g. to four spaces) or put the opening accolades on a separate line. Link to comment https://forums.phpfreaks.com/topic/40676-phpwasher-cleans-up-your-php-code/page/2/#findComment-215191 Share on other sites More sharing options...
mattd8752 Posted March 27, 2007 Share Posted March 27, 2007 Here was the full script I used (This is a direct copy from the washer): $y = 10; $x = $y; echo $x; if($x == $y){ echo "omg"; if($y == 10){ echo "OMG2"; } } Okay, makes sense but... I like to have it so that it would be like this: $y = 10; $x = $y; echo $x; if($x == $y){ echo "omg"; if($y == 10){ echo "OMG2"; } } See, as a personal preference I keep the Ifs lined up with it's output. But your PHP washer doesn't seem to give me that option. Also, one slight thing is: The output of the first line is like this: test.txt: <?php I think it should be: test.txt: <?php Or even without the underline, but on a separate line. Link to comment https://forums.phpfreaks.com/topic/40676-phpwasher-cleans-up-your-php-code/page/2/#findComment-215773 Share on other sites More sharing options...
Vinze Posted March 27, 2007 Author Share Posted March 27, 2007 Here was the full script I used (This is a direct copy from the washer): $y = 10; $x = $y; echo $x; if($x == $y){ echo "omg"; if($y == 10){ echo "OMG2"; } } Okay, makes sense but... I like to have it so that it would be like this: $y = 10; $x = $y; echo $x; if($x == $y){ echo "omg"; if($y == 10){ echo "OMG2"; } } See, as a personal preference I keep the Ifs lined up with it's output. But your PHP washer doesn't seem to give me that option. Hmm, that's interesting. Once I get to work on it again I'll add that option, it's not that difficult. Also, one slight thing is: The output of the first line is like this: test.txt: <?php I think it should be: test.txt: <?php Or even without the underline, but on a separate line. I'm aware of that, is also planned to be fixed Link to comment https://forums.phpfreaks.com/topic/40676-phpwasher-cleans-up-your-php-code/page/2/#findComment-215902 Share on other sites More sharing options...
mattd8752 Posted April 6, 2007 Share Posted April 6, 2007 I know a few people who indent like that, not to many, I wouldn't make it a priority, but it'd be interesting. Link to comment https://forums.phpfreaks.com/topic/40676-phpwasher-cleans-up-your-php-code/page/2/#findComment-222663 Share on other sites More sharing options...
Vinze Posted April 6, 2007 Author Share Posted April 6, 2007 I know a few people who indent like that, not to many, I wouldn't make it a priority, but it'd be interesting. It's not that much trouble, I just need to find the time Link to comment https://forums.phpfreaks.com/topic/40676-phpwasher-cleans-up-your-php-code/page/2/#findComment-222784 Share on other sites More sharing options...
Recommended Posts