Skip to content

Remove unnecessary fully quantified name #3570

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

Merged
merged 1 commit into from
Nov 25, 2015
Merged

Remove unnecessary fully quantified name #3570

merged 1 commit into from
Nov 25, 2015

Conversation

yahya-uddin
Copy link
Contributor

The class is unnessarily fully quantified and is an warning that is also flagged up in popular IDE's such as PHPStorm. It is also arguably bad practice as it can lead to problems if directories are moved in the future.

The class is unnessarily fully quantified and is an warning that is also flagged up in popular IDE's such as PHPStorm. It is also arguably bad practice as it can lead to problems if directories are moved in the future.
@crynobone crynobone mentioned this pull request Nov 25, 2015
taylorotwell added a commit that referenced this pull request Nov 25, 2015
Remove unnecessary fully quantified name
@taylorotwell taylorotwell merged commit 7b26399 into laravel:master Nov 25, 2015
@vlakoff
Copy link
Contributor

vlakoff commented Nov 25, 2015

I don't really like the "split namespace",
would PhpStorm choke on use App\Console\Commands\Inspire?

Also, I would rename the class to InspireCommand,
so we have InspireCommand in the code which is more explicit,
and consistency with the core commands.

@yahya-uddin
Copy link
Contributor Author

I agree with the renaming Inspire to InspireCommand, but I believe there is talk to remove it altogether

@yahya-uddin yahya-uddin deleted the patch-2 branch November 26, 2015 02:16
@yahya-uddin
Copy link
Contributor Author

I added a pull request based on our suggestion: #3574

@anteriovieira
Copy link
Contributor

I was wondering if it is not the case of passing the contents of the Inspiring::quote() function to the inspiring command. And completely remove the inspiring file Illuminate/Foundation/Inspiring.php.

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.

5 participants