Loading src/Batch/ShopifyCollectionBatch.php +2 −2 Changes for src/Batch/ShopifyCollectionBatch.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -70,10 +70,10 @@ class ShopifyCollectionBatch { ]; } $this->batch = array( $this->batch = [ 'operations' => $this->operations, 'finished' => [__CLASS__, 'finished'], ); ]; return $this; } Loading src/Batch/ShopifyProductBatch.php +2 −2 Changes for src/Batch/ShopifyProductBatch.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -79,10 +79,10 @@ class ShopifyProductBatch { ]; } $this->batch = array( $this->batch = [ 'operations' => $this->operations, 'finished' => [__CLASS__, 'finished'], ); ]; return $this; } Loading src/Controller/ShopifyAddedToCart.php +2 −2 Changes for src/Controller/ShopifyAddedToCart.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -37,13 +37,13 @@ class ShopifyAddedToCart extends ControllerBase { } $title = $variant->label() == 'Default Title' ? '' : '- ' . $variant->label(); drupal_set_message(t('@quantity x @parent @title (@price) added to !cart_link.', array( drupal_set_message(t('@quantity x @parent @title (@price) added to !cart_link.', [ '@parent' => $product->label(), '@title' => $title, '@price' => shopify_currency_format($variant->price->value), '!cart_link' => \Drupal::l(t('your cart'), Url::fromUri('https://' . shopify_shop_info('domain') . '/cart', ['attributes' => ['target' => '_blank']])), '@quantity' => $quantity, ))); ])); return new Response('okay', Response::HTTP_OK); } Loading src/Entity/Form/ShopifyProductDeleteForm.php +1 −1 Changes for src/Entity/Form/ShopifyProductDeleteForm.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ class ShopifyProductDeleteForm extends ContentEntityConfirmFormBase { * {@inheritdoc} */ public function getQuestion() { return $this->t('Are you sure you want to delete entity %name?', array('%name' => $this->entity->label())); return $this->t('Are you sure you want to delete entity %name?', ['%name' => $this->entity->label()]); } /** Loading src/Entity/Form/ShopifyProductForm.php +2 −2 Changes for src/Entity/Form/ShopifyProductForm.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -35,12 +35,12 @@ class ShopifyProductForm extends ContentEntityForm { '#suffix' => t('<br /><strong>Modifications to Shopify products should be done on Shopify and synced to the Drupal site.</strong>'), ]; $form['langcode'] = array( $form['langcode'] = [ '#title' => $this->t('Language'), '#type' => 'language_select', '#default_value' => $entity->langcode->value, '#languages' => Language::STATE_ALL, ); ]; return $form; } Loading Loading
src/Batch/ShopifyCollectionBatch.php +2 −2 Changes for src/Batch/ShopifyCollectionBatch.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -70,10 +70,10 @@ class ShopifyCollectionBatch { ]; } $this->batch = array( $this->batch = [ 'operations' => $this->operations, 'finished' => [__CLASS__, 'finished'], ); ]; return $this; } Loading
src/Batch/ShopifyProductBatch.php +2 −2 Changes for src/Batch/ShopifyProductBatch.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -79,10 +79,10 @@ class ShopifyProductBatch { ]; } $this->batch = array( $this->batch = [ 'operations' => $this->operations, 'finished' => [__CLASS__, 'finished'], ); ]; return $this; } Loading
src/Controller/ShopifyAddedToCart.php +2 −2 Changes for src/Controller/ShopifyAddedToCart.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -37,13 +37,13 @@ class ShopifyAddedToCart extends ControllerBase { } $title = $variant->label() == 'Default Title' ? '' : '- ' . $variant->label(); drupal_set_message(t('@quantity x @parent @title (@price) added to !cart_link.', array( drupal_set_message(t('@quantity x @parent @title (@price) added to !cart_link.', [ '@parent' => $product->label(), '@title' => $title, '@price' => shopify_currency_format($variant->price->value), '!cart_link' => \Drupal::l(t('your cart'), Url::fromUri('https://' . shopify_shop_info('domain') . '/cart', ['attributes' => ['target' => '_blank']])), '@quantity' => $quantity, ))); ])); return new Response('okay', Response::HTTP_OK); } Loading
src/Entity/Form/ShopifyProductDeleteForm.php +1 −1 Changes for src/Entity/Form/ShopifyProductDeleteForm.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ class ShopifyProductDeleteForm extends ContentEntityConfirmFormBase { * {@inheritdoc} */ public function getQuestion() { return $this->t('Are you sure you want to delete entity %name?', array('%name' => $this->entity->label())); return $this->t('Are you sure you want to delete entity %name?', ['%name' => $this->entity->label()]); } /** Loading
src/Entity/Form/ShopifyProductForm.php +2 −2 Changes for src/Entity/Form/ShopifyProductForm.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -35,12 +35,12 @@ class ShopifyProductForm extends ContentEntityForm { '#suffix' => t('<br /><strong>Modifications to Shopify products should be done on Shopify and synced to the Drupal site.</strong>'), ]; $form['langcode'] = array( $form['langcode'] = [ '#title' => $this->t('Language'), '#type' => 'language_select', '#default_value' => $entity->langcode->value, '#languages' => Language::STATE_ALL, ); ]; return $form; } Loading