Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.

Use doctrine/cs to ensure code standards of this project #155

Closed
wants to merge 4 commits into from

Conversation

carusogabriel
Copy link
Contributor

No description provided.

/**
* @var string
*/
/** @var string */
private $type;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is safe to drop this write-only property in the class' constructor?

Copy link
Member

Choose a reason for hiding this comment

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

Seems like it since the property is private and nothing else uses it.

}

$success = $all ? $cacheProvider->deleteAll() : $cacheProvider->delete($cacheId);
$color = $success ? 'info' : 'error';
$success = $success ? 'succeeded' : 'failed';
$message = null;

if ( ! $all) {
if (! $all) {
$message = "Deletion of <$color>%s</$color> in <$color>%s</$color> has <$color>%s</$color>";
$message = sprintf($message, $cacheId, $cacheName, $success, true);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a way to remove these variables inside the string on line 55 without affect this one?

Copy link
Member

Choose a reason for hiding this comment

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

You would have to either move the variables down in to the sprintf or use string concatenation.

@alcaeus
Copy link
Member

alcaeus commented Apr 23, 2019

@carusogabriel please don't be discouraged here, but with the potential deprecation of this bundle (see #156) I'd rather avoid doing too much cosmetic work just to throw it away.

@carusogabriel
Copy link
Contributor Author

@alcaeus I have no problem in continue this one, but if this bundle is going to be deprecated, let's skip it 👍

@carusogabriel
Copy link
Contributor Author

Closing as per @alcaeus' comment.

@carusogabriel carusogabriel deleted the chore/use-doctrine-cs branch May 23, 2019 18:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants