mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
Merge pull request #112 from php-flasher/format
update phpstorm autocomplete files
This commit is contained in:
@@ -8,6 +8,7 @@ lint:
|
||||
find src -name "composer.json" -exec $(COMPOSER) normalize {} \;
|
||||
$(COMPOSER) validate --strict
|
||||
find src -name "composer.json" -exec $(COMPOSER) validate --strict {} \;
|
||||
find packs -name "composer.json" -exec $(COMPOSER) normalize {} \;
|
||||
|
||||
## Fix files with php-cs-fixer
|
||||
fix:
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
name: Auto Closer PR
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened]
|
||||
|
||||
jobs:
|
||||
run:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: superbrothers/close-pull-request@v3
|
||||
with:
|
||||
comment: |
|
||||
Hi, thank you for your contribution.
|
||||
|
||||
Unfortunately, this repository is read-only. It's a split from our main monorepo repository.
|
||||
|
||||
We'd like to kindly ask you to move the contribution there - https://github.com/php-flasher/php-flasher.
|
||||
|
||||
We'll check it, review it and give you feed back right way.
|
||||
|
||||
Thank you.
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "php-flasher/laravel-pack",
|
||||
"description": "A pack for the Laravel framework",
|
||||
"type": "flasher-pack",
|
||||
"license": "MIT",
|
||||
"type": "flasher-pack",
|
||||
"keywords": [
|
||||
"php-flasher",
|
||||
"flash-messages",
|
||||
@@ -41,5 +41,10 @@
|
||||
"php-flasher/flasher-pnotify-laravel": "*",
|
||||
"php-flasher/flasher-sweetalert-laravel": "*",
|
||||
"php-flasher/flasher-toastr-laravel": "*"
|
||||
},
|
||||
"minimum-stability": "stable",
|
||||
"prefer-stable": true,
|
||||
"config": {
|
||||
"sort-packages": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
name: Auto Closer PR
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened]
|
||||
|
||||
jobs:
|
||||
run:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: superbrothers/close-pull-request@v3
|
||||
with:
|
||||
comment: |
|
||||
Hi, thank you for your contribution.
|
||||
|
||||
Unfortunately, this repository is read-only. It's a split from our main monorepo repository.
|
||||
|
||||
We'd like to kindly ask you to move the contribution there - https://github.com/php-flasher/php-flasher.
|
||||
|
||||
We'll check it, review it and give you feed back right way.
|
||||
|
||||
Thank you.
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "php-flasher/php-pack",
|
||||
"description": "A pack for PHP",
|
||||
"type": "flasher-pack",
|
||||
"license": "MIT",
|
||||
"type": "flasher-pack",
|
||||
"keywords": [
|
||||
"php-flasher",
|
||||
"flash-messages",
|
||||
@@ -41,5 +41,10 @@
|
||||
"php-flasher/flasher-pnotify": "*",
|
||||
"php-flasher/flasher-sweetalert": "*",
|
||||
"php-flasher/flasher-toastr": "*"
|
||||
},
|
||||
"minimum-stability": "stable",
|
||||
"prefer-stable": true,
|
||||
"config": {
|
||||
"sort-packages": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
name: Auto Closer PR
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened]
|
||||
|
||||
jobs:
|
||||
run:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: superbrothers/close-pull-request@v3
|
||||
with:
|
||||
comment: |
|
||||
Hi, thank you for your contribution.
|
||||
|
||||
Unfortunately, this repository is read-only. It's a split from our main monorepo repository.
|
||||
|
||||
We'd like to kindly ask you to move the contribution there - https://github.com/php-flasher/php-flasher.
|
||||
|
||||
We'll check it, review it and give you feed back right way.
|
||||
|
||||
Thank you.
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "php-flasher/symfony-pack",
|
||||
"description": "A pack for the Symfony framework",
|
||||
"license": "MIT",
|
||||
"type": "flasher-pack",
|
||||
"keywords": [
|
||||
"php-flasher",
|
||||
@@ -25,7 +26,6 @@
|
||||
"rtl",
|
||||
"dark-mode"
|
||||
],
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Younes KHOUBZA",
|
||||
@@ -41,5 +41,10 @@
|
||||
"php-flasher/flasher-pnotify-symfony": "*",
|
||||
"php-flasher/flasher-sweetalert-symfony": "*",
|
||||
"php-flasher/flasher-toastr-symfony": "*"
|
||||
},
|
||||
"minimum-stability": "stable",
|
||||
"prefer-stable": true,
|
||||
"config": {
|
||||
"sort-packages": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
namespace PHPSTORM_META;
|
||||
|
||||
override(\Illuminate\Foundation\Application::make(0), map([
|
||||
'' => '@',
|
||||
'config' => \Illuminate\Contracts\Config\Repository::class,
|
||||
'session' => \Illuminate\Session\SessionManager::class,
|
||||
'view' => \Illuminate\View\Factory::class,
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace PHPSTORM_META;
|
||||
|
||||
use Flasher\Prime\Notification\NotificationInterface;
|
||||
|
||||
expectedArguments(\noty(), 1, 'success', 'error', 'info', 'warning');
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace PHPSTORM_META;
|
||||
|
||||
expectedArguments(\noty(), 1, 'success', 'error', 'info', 'warning');
|
||||
expectedArguments(\Flasher\Noty\Prime\NotyBuilder::layout(), 0, 'top', 'topLeft', 'topCenter', 'topRight', 'center', 'centerLeft', 'centerRight', 'bottom', 'bottomLeft', 'bottomCenter', 'bottomRight');
|
||||
expectedArguments(\Flasher\Noty\Prime\NotyBuilder::theme(), 0, 'relax', 'mint', 'metroui');
|
||||
expectedArguments(\Flasher\Noty\Prime\NotyBuilder::timeout(), 0, false, 1000, 3000, 3500, 5000);
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace PHPSTORM_META;
|
||||
|
||||
use Flasher\Prime\Notification\NotificationInterface;
|
||||
|
||||
expectedArguments(\notyf(), 1, 'success', 'error', 'info', 'warning');
|
||||
@@ -2,7 +2,8 @@
|
||||
|
||||
namespace PHPSTORM_META;
|
||||
|
||||
expectedArguments(\Flasher\Notyf\Prime\NotyfBuilder::duration(), 0, 2000, 3000, 4000, 5000);
|
||||
expectedArguments(\notyf(), 1, 'success', 'error', 'info', 'warning');
|
||||
expectedArguments(\Flasher\Notyf\Prime\NotyfBuilder::duration(), 0, 1000, 2000, 3000, 4000, 5000);
|
||||
expectedArguments(\Flasher\Notyf\Prime\NotyfBuilder::position(), 0, 'x', 'y');
|
||||
expectedArguments(\Flasher\Notyf\Prime\NotyfBuilder::position(), 1, 'top', 'right', 'bottom', 'left', 'center');
|
||||
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace PHPSTORM_META;
|
||||
|
||||
use Flasher\Prime\Notification\NotificationInterface;
|
||||
|
||||
expectedArguments(\pnotify(), 1, 'success', 'error', 'info', 'warning');
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace PHPSTORM_META;
|
||||
|
||||
expectedArguments(\pnotify(), 1, 'success', 'error', 'info', 'warning');
|
||||
expectedArguments(\Flasher\Pnotify\Prime\PnotifyBuilder::styling(), 0, 'brighttheme', 'bootstrap3', 'fontawesome');
|
||||
expectedArguments(\Flasher\Pnotify\Prime\PnotifyBuilder::type(), 0, 'notice', 'info', 'success', 'error');
|
||||
expectedArguments(\Flasher\Pnotify\Prime\PnotifyBuilder::animation(), 0, 'none', 'fade');
|
||||
|
||||
@@ -2,26 +2,23 @@
|
||||
|
||||
namespace PHPSTORM_META;
|
||||
|
||||
use Flasher\Prime\Notification\NotificationInterface;
|
||||
|
||||
registerArgumentsSet('notificationTypes', NotificationInterface::SUCCESS, NotificationInterface::ERROR, NotificationInterface::WARNING, NotificationInterface::INFO);
|
||||
|
||||
override(Envelope::get(0), type(0));
|
||||
|
||||
expectedArguments(\Flasher\Prime\Notification\NotificationBuilderInterface::type(), 0, argumentsSet('notificationTypes'));
|
||||
expectedArguments(\Flasher\Prime\Notification\NotificationBuilderInterface::addFlash(), 0, argumentsSet('notificationTypes'));
|
||||
expectedArguments(\Flasher\Prime\Notification\NotificationInterface::setType(), 0, argumentsSet('notificationTypes'));
|
||||
|
||||
expectedReturnValues(\Flasher\Prime\Notification\NotificationInterface::getType(), argumentsSet('notificationTypes'));
|
||||
|
||||
override(\Flasher\Prime\FlasherInterface::create(), map([
|
||||
'' => '@',
|
||||
'flasher' => \Flasher\Prime\Factory\FlasherFactory::class,
|
||||
'theme.*' => \Flasher\Prime\Factory\FlasherFactory::class,
|
||||
'flasher' => \Flasher\Prime\Factory\NotificationFactory::class,
|
||||
'theme.' => \Flasher\Prime\Factory\NotificationFactory::class,
|
||||
]));
|
||||
|
||||
override(\Flasher\Prime\FlasherInterface::using(), map([
|
||||
'' => '@',
|
||||
'flasher' => \Flasher\Prime\Factory\FlasherFactory::class,
|
||||
'theme.*' => \Flasher\Prime\Factory\FlasherFactory::class,
|
||||
'flasher' => \Flasher\Prime\Factory\NotificationFactory::class,
|
||||
'theme.' => \Flasher\Prime\Factory\NotificationFactory::class,
|
||||
]));
|
||||
|
||||
registerArgumentsSet('types', 'success', 'error', 'warning', 'info');
|
||||
expectedArguments(\Flasher\Prime\Notification\NotificationBuilderInterface::type(), 0, argumentsSet('types'));
|
||||
expectedArguments(\Flasher\Prime\Notification\NotificationBuilderInterface::addFlash(), 0, argumentsSet('types'));
|
||||
expectedArguments(\Flasher\Prime\Notification\NotificationInterface::setType(), 0, argumentsSet('types'));
|
||||
expectedReturnValues(\Flasher\Prime\Notification\NotificationInterface::getType(), argumentsSet('types'));
|
||||
|
||||
|
||||
expectedArguments(\Flasher\Prime\Notification\NotificationBuilderInterface::handler(), 0, 'flasher', 'toastr', 'noty', 'notyf', 'pnotify', 'sweetalert');
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace PHPSTORM_META;
|
||||
|
||||
use Flasher\Prime\Notification\NotificationInterface;
|
||||
|
||||
expectedArguments(\sweetAlert(), 1, 'success', 'error', 'info', 'warning');
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace PHPSTORM_META;
|
||||
|
||||
expectedArguments(\sweetalert(), 1, 'success', 'error', 'info', 'warning');
|
||||
expectedArguments(\Flasher\SweetAlert\Prime\SweetAlertBuilder::icon(), 0, 'warning', 'error', 'success', 'info', 'question');
|
||||
expectedArguments(\Flasher\SweetAlert\Prime\SweetAlertBuilder::showClass(), 0, 'popup', 'backdrop', 'icon');
|
||||
expectedArguments(\Flasher\SweetAlert\Prime\SweetAlertBuilder::hideClass(), 0, 'popup', 'backdrop', 'icon');
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace PHPSTORM_META;
|
||||
|
||||
use Flasher\Prime\Notification\NotificationInterface;
|
||||
|
||||
expectedArguments(\toastr(), 1, 'success', 'error', 'info', 'warning');
|
||||
@@ -2,15 +2,17 @@
|
||||
|
||||
namespace PHPSTORM_META;
|
||||
|
||||
expectedArguments(\toastr(), 1, 'success', 'error', 'info', 'warning');
|
||||
expectedArguments(\Flasher\Toastr\Prime\ToastrBuilder::showMethod(), 0, 'fadeIn', 'fadeOut', 'slideDown', 'show');
|
||||
expectedArguments(\Flasher\Toastr\Prime\ToastrBuilder::hideMethod(), 0, 'fadeIn', 'fadeOut', 'slideDown', 'show');
|
||||
expectedArguments(\Flasher\Toastr\Prime\ToastrBuilder::showEasing(), 0, 'swing', 'linear');
|
||||
expectedArguments(\Flasher\Toastr\Prime\ToastrBuilder::hideEasing(), 0, 'swing', 'linear');
|
||||
expectedArguments(\Flasher\Toastr\Prime\ToastrBuilder::positionClass(), 0, 'toast-top-right', 'toast-top-center', 'toast-bottom-center', 'toast-top-full-width', 'toast-bottom-full-width', 'toast-top-left', 'toast-bottom-right', 'toast-bottom-left');
|
||||
|
||||
$mapping = map([
|
||||
'toastr' => \Flasher\Toastr\Prime\ToastrFactory::class
|
||||
]);
|
||||
override(\Flasher\Prime\FlasherInterface::create(), map([
|
||||
'toastr' => \Flasher\Toastr\Prime\ToastrFactory::class,
|
||||
]));
|
||||
|
||||
override(\Flasher\Prime\FlasherInterface::create(), map($mapping));
|
||||
override(\Flasher\Prime\FlasherInterface::using(), map($mapping));
|
||||
override(\Flasher\Prime\FlasherInterface::using(), map([
|
||||
'toastr' => \Flasher\Toastr\Prime\ToastrFactory::class,
|
||||
]));
|
||||
|
||||
Reference in New Issue
Block a user