improved code styles #158 (#172)

* use php-cs-fixer instead of phpcodesniffer
* updated scrutinizer config
* adjusted code yules to all files
* updated CONTRIBUTING guidelines
This commit is contained in:
Kevin Papst
2018-06-22 21:09:10 +02:00
committed by GitHub
parent 773d27bb0e
commit cd7cbeae88
142 changed files with 775 additions and 467 deletions

View File

@@ -27,7 +27,6 @@ use Symfony\Component\Validator\Constraints\Range;
*/
class UserPreferenceSubscriber implements EventSubscriberInterface
{
/**
* @var EventDispatcherInterface
*/
@@ -127,7 +126,7 @@ class UserPreferenceSubscriber implements EventSubscriberInterface
foreach ($event->getPreferences() as $preference) {
if (isset($prefs[$preference->getName()])) {
/** @var UserPreference $pref */
/* @var UserPreference $pref */
$prefs[$preference->getName()]
->setType($preference->getType())
->setConstraints($preference->getConstraints())
@@ -152,7 +151,7 @@ class UserPreferenceSubscriber implements EventSubscriberInterface
}
// ignore events like the toolbar where we do not have a token
if ($this->storage->getToken() === null) {
if (null === $this->storage->getToken()) {
return false;
}