Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Commit

Permalink
Fix CS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hamrant committed Oct 16, 2020
1 parent 1e575af commit 050f9fc
Show file tree
Hide file tree
Showing 23 changed files with 34 additions and 25 deletions.
1 change: 1 addition & 0 deletions .phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<arg value="s" />
<rule ref="Drupal">
<exclude name="Drupal.InfoFiles.AutoAddedKeys.Version"/>
<exclude name="Drupal.Commenting.Deprecated"/>
</rule>
<rule ref="DrupalPractice" />
<arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,md,yml" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Symfony\Component\HttpFoundation\RequestStack;

/**
* Class VirtualYDaxkoBarcodeLoginForm.
* Class VirtualYDaxkoBarcodeLogin Form.
*
* @package Drupal\openy_gc_auth_daxko_barcode\Form
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Drupal\openy_gc_auth\GCUserAuthorizer;

/**
* Class DaxkoLinkController.
* Class DaxkoLink Controller.
*/
class DaxkoLinkController extends ControllerBase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Drupal\openy_gc_auth\GCUserAuthorizer;

/**
* Class VirtualYExampleLoginForm.
* Class VirtualYExampleLogin Form.
*
* @package Drupal\openy_gc_auth_example\Form
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Symfony\Component\HttpFoundation\RequestStack;

/**
* Class VirtualYPersonifyTryAgainForm.
* Class VirtualYPersonifyTryAgain Form.
*
* @package Drupal\openy_gc_personify\Form
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

/**
* Class VirtualYLoginRedirect.
* Class VirtualYLogin Redirect.
*/
class VirtualYLoginRedirect implements EventSubscriberInterface {

Expand Down
2 changes: 1 addition & 1 deletion modules/openy_gc_auth/src/GCUserAuthorizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\EventDispatcher\EventDispatcherInterface;

/**
* GCUserAuthorizer class.
* User Authorizer class.
*/
class GCUserAuthorizer {

Expand Down
4 changes: 2 additions & 2 deletions modules/openy_gc_log/openy_gc_log.module
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ use Drupal\Core\Routing\RouteMatchInterface;
function openy_gc_log_preprocess_paragraph(array &$variables) {
/** @var \Drupal\paragraphs\Entity\Paragraph $paragraph */
$paragraph = $variables['paragraph'];

if (!in_array($paragraph->bundle(), ['gated_content', 'gated_content_login'])) {
$paragraphs_list = ['gated_content', 'gated_content_login'];
if (!in_array($paragraph->bundle(), $paragraphs_list)) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion modules/openy_gc_log/src/Controller/LogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Drupal\openy_gc_log\Logger;

/**
* Class LogController.
* Log Controller class.
*/
class LogController extends ControllerBase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

/**
* Class GCLogUserLoginSubscriber.
* Class GCLogUserLogin Subscriber.
*
* @package Drupal\openy_gc_log\EventSubscriber
*/
Expand Down
6 changes: 4 additions & 2 deletions modules/openy_gc_log/src/Field/PayloadFieldItemList.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Drupal\openy_gc_log\Entity\LogEntityInterface;

/**
* Class PayloadFieldItemList.
* Class Payload Field ItemList.
*
* Computed field for LogEntity.
* Composed from event_type related fields.
Expand All @@ -24,7 +24,9 @@ class PayloadFieldItemList extends FieldItemList {
* @inheritDoc
*/
protected function computeValue() {
/* @var \Drupal\openy_gc_log\Entity\LogEntity $log */
/**
* @var \Drupal\openy_gc_log\Entity\LogEntity $log
*/
$log = $this->getEntity();

$value = '';
Expand Down
2 changes: 1 addition & 1 deletion modules/openy_gc_log/src/Form/LogEntitySettingsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Drupal\Core\Form\FormStateInterface;

/**
* Class LogEntitySettingsForm.
* Class LogEntity Settings Form.
*
* @ingroup openy_gc_log
*/
Expand Down
2 changes: 1 addition & 1 deletion modules/openy_gc_log/src/LogArchiver.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Drupal\file\Entity\File;

/**
* LogArchiver service.
* Log Archiver service.
*/
class LogArchiver {

Expand Down
4 changes: 3 additions & 1 deletion modules/openy_gc_log/src/LogEntityListBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ public function buildHeader() {
* {@inheritdoc}
*/
public function buildRow(EntityInterface $entity) {
/* @var \Drupal\openy_gc_log\Entity\LogEntity $entity */
/**
* @var \Drupal\openy_gc_log\Entity\LogEntity $entity
*/
$row['id'] = $entity->id();
$row['email'] = $entity->get('email')->value;
$row['event_type'] = $entity->get('event_type')->value;
Expand Down
2 changes: 1 addition & 1 deletion modules/openy_gc_log/src/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Drupal\openy_gc_log\Entity\LogEntity;

/**
* Logger service.
* Service Logger.
*/
class Logger {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Symfony\Component\HttpFoundation\Request;

/**
* Class DownloadsIncrementController.
* Class DownloadsIncrement Controller.
*
* @package Drupal\openy_gc_shared_content_server\Controller
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ public static function create(ContainerInterface $container) {
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state) {
/* @var \Drupal\openy_gc_shared_content_server\Entity\SharedContentSource $entity */
/**
* @var \Drupal\openy_gc_shared_content_server\Entity\SharedContentSource $entity
*/
$form = parent::buildForm($form, $form_state);

return $form;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Drupal\Core\Form\FormStateInterface;

/**
* Class SharedContentSourceSettingsForm.
* SharedContentSource Settings Form Class.
*
* @ingroup openy_gc_shared_content_server
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ public function buildHeader() {
* {@inheritdoc}
*/
public function buildRow(EntityInterface $entity) {
/* @var \Drupal\openy_gc_shared_content_server\Entity\SharedContentSource $entity */
/**
* @var \Drupal\openy_gc_shared_content_server\Entity\SharedContentSource $entity
*/
$row['id'] = $entity->id();
$row['status'] = $entity->getStatus() == 1 ? $this->t('Approved') : $this->t('Unapproved');
$row['name'] = Link::createFromRoute(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Drupal\Core\Plugin\Discovery\ContainerDeriverInterface;

/**
* Class SourceMigrationDeriver.
* SourceMigration Deriver Class.
*
* @package Drupal\openy_gc_shared_content
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Drupal\Core\Entity\EntityTypeManagerInterface;

/**
* SourceRepository.
* Source Repository class.
*/
class SourceRepository {

Expand Down
4 changes: 2 additions & 2 deletions openy_gated_content.module
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ function openy_gated_content_preprocess_paragraph(&$variables) {
if (!isset($variables['paragraph'])) {
return;
}

if (!in_array($variables['paragraph']->getType(), ['gated_content', 'gated_content_login'])) {
$paragraphs_list = ['gated_content', 'gated_content_login'];
if (!in_array($variables['paragraph']->getType(), $paragraphs_list)) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/SegmentContentAccessCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Symfony\Component\HttpFoundation\RequestStack;

/**
* Class SegmentContentAccessCheck.
* Class Segment Content Access Check.
*
* @package Drupal\openy_gated_content
*/
Expand Down

0 comments on commit 050f9fc

Please sign in to comment.