Skip to content
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

Workflow: update PhpStorm meta files #4445

Merged
merged 7 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/update-phpstorm-meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Update PhpStorm Meta-Files

on:
# Run automatically every month.
schedule:
- cron: '0 0 1 * *'
workflow_call:
# Allow manually triggering the workflow.
workflow_dispatch:

jobs:
update_copyright:
name: Update Copyright
runs-on: [ubuntu-latest]

steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4

- name: Checkout code
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0

- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install dependencies
run: composer install --prefer-dist --no-progress --ignore-platform-req=ext-*

- name: Install n98/magerun
run: composer require --dev n98/magerun:dev-develop

- name: Update PhpStorm Meta-Files
run: php -f vendor/bin/n98-magerun dev:ide:phpstorm:meta

- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: update copyright
title: pdated PhpStorm Meta-Files
body: |
- Updated PhpStorm Meta-Files
Thanks to [n98/magerun][1]
[1]: https://github.com/netz98/n98-magerun
branch: phpstorm-meta
base: main
1 change: 0 additions & 1 deletion .phpstorm.meta.php/magento_blocks.meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,6 @@
'sales/recurring_profiles' => \Mage_Sales_Block_Recurring_Profiles::class,
'sales/reorder_sidebar' => \Mage_Sales_Block_Reorder_Sidebar::class,
'sales/widget_guest_form' => \Mage_Sales_Block_Widget_Guest_Form::class,
'sendfriend/send' => \Mage_Sendfriend_Block_Send::class,
'shipping/tracking_ajax' => \Mage_Shipping_Block_Tracking_Ajax::class,
'shipping/tracking_popup' => \Mage_Shipping_Block_Tracking_Popup::class,
'tag/all' => \Mage_Tag_Block_All::class,
Expand Down
1 change: 0 additions & 1 deletion .phpstorm.meta.php/magento_blocks_methods.meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,6 @@
'sales/recurring_profiles' => \Mage_Sales_Block_Recurring_Profiles::class,
'sales/reorder_sidebar' => \Mage_Sales_Block_Reorder_Sidebar::class,
'sales/widget_guest_form' => \Mage_Sales_Block_Widget_Guest_Form::class,
'sendfriend/send' => \Mage_Sendfriend_Block_Send::class,
'shipping/tracking_ajax' => \Mage_Shipping_Block_Tracking_Ajax::class,
'shipping/tracking_popup' => \Mage_Shipping_Block_Tracking_Popup::class,
'tag/all' => \Mage_Tag_Block_All::class,
Expand Down
56 changes: 27 additions & 29 deletions .phpstorm.meta.php/magento_helpers.meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
'adminnotification/data' => \Mage_AdminNotification_Helper_Data::class,
'adminnotification' => \Mage_AdminNotification_Helper_Data::class,
'admin/block' => \Mage_Admin_Helper_Block::class,
'admin/data' => \Mage_Admin_Helper_Data::class,
'admin' => \Mage_Admin_Helper_Data::class,
'admin/data' => \Mage_Admin_Helper_Data::class,
'admin/rules_fallback' => \Mage_Admin_Helper_Rules_Fallback::class,
'admin/variable' => \Mage_Admin_Helper_Variable::class,
'adminhtml/addresses' => \Mage_Adminhtml_Helper_Addresses::class,
Expand All @@ -17,27 +17,27 @@
'adminhtml/dashboard_abstract' => \Mage_Adminhtml_Helper_Dashboard_Abstract::class,
'adminhtml/dashboard_data' => \Mage_Adminhtml_Helper_Dashboard_Data::class,
'adminhtml/dashboard_order' => \Mage_Adminhtml_Helper_Dashboard_Order::class,
'adminhtml/data' => \Mage_Adminhtml_Helper_Data::class,
'adminhtml' => \Mage_Adminhtml_Helper_Data::class,
'adminhtml/data' => \Mage_Adminhtml_Helper_Data::class,
'adminhtml/help_mapping' => \Mage_Adminhtml_Helper_Help_Mapping::class,
'adminhtml/js' => \Mage_Adminhtml_Helper_Js::class,
'adminhtml/media_js' => \Mage_Adminhtml_Helper_Media_Js::class,
'adminhtml/rss' => \Mage_Adminhtml_Helper_Rss::class,
'adminhtml/sales' => \Mage_Adminhtml_Helper_Sales::class,
'api2/data' => \Mage_Api2_Helper_Data::class,
'api2' => \Mage_Api2_Helper_Data::class,
'api2/data' => \Mage_Api2_Helper_Data::class,
'api/data' => \Mage_Api_Helper_Data::class,
'api' => \Mage_Api_Helper_Data::class,
'authorizenet/admin' => \Mage_Authorizenet_Helper_Admin::class,
'authorizenet/data' => \Mage_Authorizenet_Helper_Data::class,
'authorizenet' => \Mage_Authorizenet_Helper_Data::class,
'bundle/catalog_product_configuration' => \Mage_Bundle_Helper_Catalog_Product_Configuration::class,
'bundle/data' => \Mage_Bundle_Helper_Data::class,
'bundle' => \Mage_Bundle_Helper_Data::class,
'captcha' => \Mage_Captcha_Helper_Data::class,
'bundle/data' => \Mage_Bundle_Helper_Data::class,
'captcha/data' => \Mage_Captcha_Helper_Data::class,
'cataloginventory/data' => \Mage_CatalogInventory_Helper_Data::class,
'captcha' => \Mage_Captcha_Helper_Data::class,
'cataloginventory' => \Mage_CatalogInventory_Helper_Data::class,
'cataloginventory/data' => \Mage_CatalogInventory_Helper_Data::class,
'cataloginventory/minsaleqty' => \Mage_CatalogInventory_Helper_Minsaleqty::class,
'catalogrule' => \Mage_CatalogRule_Helper_Data::class,
'catalogrule/data' => \Mage_CatalogRule_Helper_Data::class,
Expand All @@ -46,8 +46,8 @@
'catalog/category' => \Mage_Catalog_Helper_Category::class,
'catalog/category_flat' => \Mage_Catalog_Helper_Category_Flat::class,
'catalog/category_url_rewrite' => \Mage_Catalog_Helper_Category_Url_Rewrite::class,
'catalog/data' => \Mage_Catalog_Helper_Data::class,
'catalog' => \Mage_Catalog_Helper_Data::class,
'catalog/data' => \Mage_Catalog_Helper_Data::class,
'catalog/flat_abstract' => \Mage_Catalog_Helper_Flat_Abstract::class,
'catalog/image' => \Mage_Catalog_Helper_Image::class,
'catalog/map' => \Mage_Catalog_Helper_Map::class,
Expand All @@ -61,8 +61,8 @@
'catalog/product_url' => \Mage_Catalog_Helper_Product_Url::class,
'catalog/product_url_rewrite' => \Mage_Catalog_Helper_Product_Url_Rewrite::class,
'catalog/product_view' => \Mage_Catalog_Helper_Product_View::class,
'centinel/data' => \Mage_Centinel_Helper_Data::class,
'centinel' => \Mage_Centinel_Helper_Data::class,
'centinel/data' => \Mage_Centinel_Helper_Data::class,
'checkout/cart' => \Mage_Checkout_Helper_Cart::class,
'checkout/data' => \Mage_Checkout_Helper_Data::class,
'checkout' => \Mage_Checkout_Helper_Data::class,
Expand All @@ -71,8 +71,8 @@
'cms/data' => \Mage_Cms_Helper_Data::class,
'cms/page' => \Mage_Cms_Helper_Page::class,
'cms/wysiwyg_images' => \Mage_Cms_Helper_Wysiwyg_Images::class,
'configurableswatches' => \Mage_ConfigurableSwatches_Helper_Data::class,
'configurableswatches/data' => \Mage_ConfigurableSwatches_Helper_Data::class,
'configurableswatches' => \Mage_ConfigurableSwatches_Helper_Data::class,
'configurableswatches/list_price' => \Mage_ConfigurableSwatches_Helper_List_Price::class,
'configurableswatches/mediafallback' => \Mage_ConfigurableSwatches_Helper_Mediafallback::class,
'configurableswatches/productimg' => \Mage_ConfigurableSwatches_Helper_Productimg::class,
Expand All @@ -96,23 +96,23 @@
'core/unserializeArray' => \Mage_Core_Helper_UnserializeArray::class,
'core/url' => \Mage_Core_Helper_Url::class,
'core/url_rewrite' => \Mage_Core_Helper_Url_Rewrite::class,
'currencysymbol' => \Mage_CurrencySymbol_Helper_Data::class,
'currencysymbol/data' => \Mage_CurrencySymbol_Helper_Data::class,
'currencysymbol' => \Mage_CurrencySymbol_Helper_Data::class,
'customer/address' => \Mage_Customer_Helper_Address::class,
'customer/data' => \Mage_Customer_Helper_Data::class,
'customer' => \Mage_Customer_Helper_Data::class,
'dataflow/data' => \Mage_Dataflow_Helper_Data::class,
'dataflow' => \Mage_Dataflow_Helper_Data::class,
'directory' => \Mage_Directory_Helper_Data::class,
'directory/data' => \Mage_Directory_Helper_Data::class,
'directory' => \Mage_Directory_Helper_Data::class,
'directory/url' => \Mage_Directory_Helper_Url::class,
'downloadable/catalog_product_configuration' => \Mage_Downloadable_Helper_Catalog_Product_Configuration::class,
'downloadable' => \Mage_Downloadable_Helper_Data::class,
'downloadable/data' => \Mage_Downloadable_Helper_Data::class,
'downloadable' => \Mage_Downloadable_Helper_Data::class,
'downloadable/download' => \Mage_Downloadable_Helper_Download::class,
'downloadable/file' => \Mage_Downloadable_Helper_File::class,
'eav/data' => \Mage_Eav_Helper_Data::class,
'eav' => \Mage_Eav_Helper_Data::class,
'eav/data' => \Mage_Eav_Helper_Data::class,
'giftmessage/data' => \Mage_GiftMessage_Helper_Data::class,
'giftmessage' => \Mage_GiftMessage_Helper_Data::class,
'giftmessage/message' => \Mage_GiftMessage_Helper_Message::class,
Expand All @@ -121,64 +121,62 @@
'googleanalytics' => \Mage_GoogleAnalytics_Helper_Data::class,
'importexport/data' => \Mage_ImportExport_Helper_Data::class,
'importexport' => \Mage_ImportExport_Helper_Data::class,
'index/data' => \Mage_Index_Helper_Data::class,
'index' => \Mage_Index_Helper_Data::class,
'install' => \Mage_Install_Helper_Data::class,
'index/data' => \Mage_Index_Helper_Data::class,
'install/data' => \Mage_Install_Helper_Data::class,
'log/data' => \Mage_Log_Helper_Data::class,
'install' => \Mage_Install_Helper_Data::class,
'log' => \Mage_Log_Helper_Data::class,
'log/data' => \Mage_Log_Helper_Data::class,
'media' => \Mage_Media_Helper_Data::class,
'media/data' => \Mage_Media_Helper_Data::class,
'newsletter' => \Mage_Newsletter_Helper_Data::class,
'newsletter/data' => \Mage_Newsletter_Helper_Data::class,
'oauth/data' => \Mage_Oauth_Helper_Data::class,
'oauth' => \Mage_Oauth_Helper_Data::class,
'page/data' => \Mage_Page_Helper_Data::class,
'oauth/data' => \Mage_Oauth_Helper_Data::class,
'page' => \Mage_Page_Helper_Data::class,
'page/data' => \Mage_Page_Helper_Data::class,
'page/html' => \Mage_Page_Helper_Html::class,
'page/layout' => \Mage_Page_Helper_Layout::class,
'payment/data' => \Mage_Payment_Helper_Data::class,
'payment' => \Mage_Payment_Helper_Data::class,
'paypaluk/data' => \Mage_PaypalUk_Helper_Data::class,
'paypaluk' => \Mage_PaypalUk_Helper_Data::class,
'paypal/checkout' => \Mage_Paypal_Helper_Checkout::class,
'paypal' => \Mage_Paypal_Helper_Data::class,
'paypal/data' => \Mage_Paypal_Helper_Data::class,
'paypal' => \Mage_Paypal_Helper_Data::class,
'paypal/hss' => \Mage_Paypal_Helper_Hss::class,
'persistent' => \Mage_Persistent_Helper_Data::class,
'persistent/data' => \Mage_Persistent_Helper_Data::class,
'persistent' => \Mage_Persistent_Helper_Data::class,
'persistent/session' => \Mage_Persistent_Helper_Session::class,
'productalert' => \Mage_ProductAlert_Helper_Data::class,
'productalert/data' => \Mage_ProductAlert_Helper_Data::class,
'rating' => \Mage_Rating_Helper_Data::class,
'productalert' => \Mage_ProductAlert_Helper_Data::class,
'rating/data' => \Mage_Rating_Helper_Data::class,
'reports/data' => \Mage_Reports_Helper_Data::class,
'rating' => \Mage_Rating_Helper_Data::class,
'reports' => \Mage_Reports_Helper_Data::class,
'reports/data' => \Mage_Reports_Helper_Data::class,
'review' => \Mage_Review_Helper_Data::class,
'review/data' => \Mage_Review_Helper_Data::class,
'rss/catalog' => \Mage_Rss_Helper_Catalog::class,
'rss' => \Mage_Rss_Helper_Data::class,
'rss/data' => \Mage_Rss_Helper_Data::class,
'rss/order' => \Mage_Rss_Helper_Order::class,
'rule/data' => \Mage_Rule_Helper_Data::class,
'rule' => \Mage_Rule_Helper_Data::class,
'rule/data' => \Mage_Rule_Helper_Data::class,
'salesrule/coupon' => \Mage_SalesRule_Helper_Coupon::class,
'salesrule' => \Mage_SalesRule_Helper_Data::class,
'salesrule/data' => \Mage_SalesRule_Helper_Data::class,
'sales/data' => \Mage_Sales_Helper_Data::class,
'sales' => \Mage_Sales_Helper_Data::class,
'sales/data' => \Mage_Sales_Helper_Data::class,
'sales/guest' => \Mage_Sales_Helper_Guest::class,
'sales/reorder' => \Mage_Sales_Helper_Reorder::class,
'sendfriend/data' => \Mage_Sendfriend_Helper_Data::class,
'sendfriend' => \Mage_Sendfriend_Helper_Data::class,
'shipping' => \Mage_Shipping_Helper_Data::class,
'shipping/data' => \Mage_Shipping_Helper_Data::class,
'shipping' => \Mage_Shipping_Helper_Data::class,
'sitemap' => \Mage_Sitemap_Helper_Data::class,
'sitemap/data' => \Mage_Sitemap_Helper_Data::class,
'tag/data' => \Mage_Tag_Helper_Data::class,
'tag' => \Mage_Tag_Helper_Data::class,
'tax/data' => \Mage_Tax_Helper_Data::class,
'tax' => \Mage_Tax_Helper_Data::class,
'tax/data' => \Mage_Tax_Helper_Data::class,
'uploader' => \Mage_Uploader_Helper_Data::class,
'uploader/data' => \Mage_Uploader_Helper_Data::class,
'uploader/file' => \Mage_Uploader_Helper_File::class,
Expand Down
Loading
Loading