Closed makkinga closed 5 years ago
Thanks for all the work @makkinga!
One small issue, I just had a look at the diff and it looks like all spaces have been changed to tabs... Now, I don't want to start a tabs vs. spaces battle, but I'd prefer to stick with the existing spaces, mostly to be able to read a more accurate diff since now it shows all files are completely rewritten.
After that, I'm happy to merge this in!
@aryehraber I wouldn't mind a tabs vs spaces battle 😜 I'm in team spaces though. Not realy sure why that happened. Probably because I recently reinstalled PHPStorm. I'll have it updated asap
@aryehraber What coding standard should I use? I normally use PSR-2 but that means a lot of changes when I reformat the code. Mostly things like this:
funchtion showKittens() {
return $this->kittens();
}
funchtion showKittens()
{
return $this->kittens();
}
and
if ($foo === 'bar') $foo = 'foo'
if ($foo === 'bar') {
$foo = 'foo'
}
Yeah PSR-2 would be great! Most of the code should already follow it I think... If PHPStorm finds a lot of mistakes, feel free to autocorrect them. Though it's honestly not a big deal, as long as the spacing thing is fixed, I'm happy to leave it as is for now.
Tabs should be gone
Awesome, thanks!
Released in latest version: https://github.com/aryehraber/statamic-fetch/releases/tag/v4.3
Should show up in Statamic's Marketplace shortly. Thank again @makkinga!
Getting reports that fetching Collections no longer works after merging this, seeing the same on my local copy. Gonna have to revert to the prev version for now.
@aryehraber Nav needs to be rewritten because of the new handle routing