├── config └── .gitkeep ├── resources ├── .gitkeep └── translations │ ├── en_CA.UTF-8 │ └── LC_MESSAGES │ │ ├── messages.mo │ │ └── messages.po │ └── fr_CA.UTF-8 │ └── LC_MESSAGES │ ├── messages.mo │ └── messages.po ├── public ├── favicon.ico ├── style.min.css ├── index.php ├── style.css └── .htaccess ├── storage ├── cache │ └── .gitignore ├── files │ └── .gitignore ├── log │ └── .gitignore ├── tmp │ └── .gitignore └── trash │ └── .gitignore ├── .github └── FUNDING.yml ├── .env.testing-types ├── src ├── Modules │ ├── Frontend │ │ ├── Views │ │ │ ├── index │ │ │ │ └── index.phtml │ │ │ ├── error │ │ │ │ └── index.phtml │ │ │ └── index.phtml │ │ ├── Controller.php │ │ ├── Module.php │ │ └── Controllers │ │ │ └── IndexController.php │ ├── Admin │ │ ├── Views │ │ │ ├── index │ │ │ │ └── index.phtml │ │ │ ├── error │ │ │ │ └── index.phtml │ │ │ └── index.phtml │ │ ├── Controller.php │ │ ├── Module.php │ │ └── Controllers │ │ │ └── IndexController.php │ ├── Ws │ │ ├── Task.php │ │ └── Module.php │ ├── Oauth2 │ │ ├── Controller.php │ │ ├── Module.php │ │ └── Controllers │ │ │ ├── ClientController.php │ │ │ ├── GithubController.php │ │ │ ├── GoogleController.php │ │ │ ├── FacebookController.php │ │ │ ├── LinkedinController.php │ │ │ └── InstagramController.php │ ├── Api │ │ ├── Controller.php │ │ ├── Module.php │ │ ├── Controllers │ │ │ ├── DataController.php │ │ │ ├── FileController.php │ │ │ ├── FlagController.php │ │ │ ├── LangController.php │ │ │ ├── LogController.php │ │ │ ├── MenuController.php │ │ │ ├── MetaController.php │ │ │ ├── PageController.php │ │ │ ├── PostController.php │ │ │ ├── TypeController.php │ │ │ ├── AuditController.php │ │ │ ├── EmailController.php │ │ │ ├── FieldController.php │ │ │ ├── GroupController.php │ │ │ ├── IndexController.php │ │ │ ├── ProfileController.php │ │ │ ├── SessionController.php │ │ │ ├── SettingController.php │ │ │ ├── CategoryController.php │ │ │ ├── TranslateController.php │ │ │ ├── AuditDetailController.php │ │ │ ├── TranslateFieldController.php │ │ │ ├── TranslateTableController.php │ │ │ ├── PhalconMigrationsController.php │ │ │ ├── AuthController.php │ │ │ ├── ClamavController.php │ │ │ ├── AbstractController.php │ │ │ ├── ErrorController.php │ │ │ ├── TestController.php │ │ │ ├── TemplateController.php │ │ │ └── TableController.php │ │ └── Transformers │ │ │ └── RecordTransformer.php │ └── Cli │ │ ├── Module.php │ │ └── Tasks │ │ ├── AbstractTask.php │ │ └── UserTask.php ├── Ws │ ├── TaskInterface.php │ ├── Router.php │ ├── DispatcherInterface.php │ ├── Dispatcher.php │ ├── WebSocket.php │ └── Task.php ├── Mvc │ ├── Controller │ │ ├── Behavior │ │ │ ├── Model │ │ │ │ ├── Create.php │ │ │ │ ├── Delete.php │ │ │ │ ├── Restore.php │ │ │ │ └── Update.php │ │ │ ├── Skip │ │ │ │ ├── SkipBind.php │ │ │ │ ├── SkipCache.php │ │ │ │ ├── SkipGroup.php │ │ │ │ ├── SkipJoins.php │ │ │ │ ├── SkipLimit.php │ │ │ │ ├── SkipOrder.php │ │ │ │ ├── SkipHaving.php │ │ │ │ ├── SkipOffset.php │ │ │ │ ├── SkipColumns.php │ │ │ │ ├── SkipDistinct.php │ │ │ │ ├── SkipBindTypes.php │ │ │ │ ├── SkipConditions.php │ │ │ │ ├── SkipWhiteList.php │ │ │ │ ├── SkipFilterCondition.php │ │ │ │ ├── SkipSearchCondition.php │ │ │ │ ├── SkipIdentityCondition.php │ │ │ │ ├── SkipPermissionCondition.php │ │ │ │ └── SkipSoftDeleteCondition.php │ │ │ └── Query │ │ │ │ ├── RemoveBind.php │ │ │ │ ├── RemoveOffset.php │ │ │ │ ├── RemoveWith.php │ │ │ │ ├── RemoveGroup.php │ │ │ │ ├── RemoveJoins.php │ │ │ │ ├── RemoveColumn.php │ │ │ │ ├── RemoveHaving.php │ │ │ │ ├── RemoveMaxLimit.php │ │ │ │ ├── RemoveDistinct.php │ │ │ │ ├── RemoveLimit.php │ │ │ │ ├── RemoveConditions.php │ │ │ │ ├── RemoveCacheConfig.php │ │ │ │ ├── Fields │ │ │ │ ├── RemoveMapFields.php │ │ │ │ ├── RemoveSaveFields.php │ │ │ │ ├── RemoveExposeFields.php │ │ │ │ ├── RemoveFilterFields.php │ │ │ │ └── RemoveSearchFields.php │ │ │ │ ├── RemoveDefaultLimit.php │ │ │ │ └── Conditions │ │ │ │ ├── RemoveFilterConditions.php │ │ │ │ ├── RemoveSearchConditions.php │ │ │ │ ├── RemoveIdentityConditions.php │ │ │ │ ├── RemovePermissionConditions.php │ │ │ │ ├── RemoveSoftDeleteConditions.php │ │ │ │ ├── RemoveDefaultFilterCondition.php │ │ │ │ ├── RemoveDefaultSearchCondition.php │ │ │ │ ├── RemoveDefaultIdentityCondition.php │ │ │ │ ├── RemoveDefaultPermissionCondition.php │ │ │ │ └── RemoveDefaultSoftDeleteCondition.php │ │ ├── Traits │ │ │ ├── Abstracts │ │ │ │ ├── AbstractDebug.php │ │ │ │ ├── Query │ │ │ │ │ ├── AbstractSave.php │ │ │ │ │ ├── AbstractWith.php │ │ │ │ │ ├── AbstractJoins.php │ │ │ │ │ ├── AbstractColumn.php │ │ │ │ │ ├── AbstractHaving.php │ │ │ │ │ ├── AbstractDistinct.php │ │ │ │ │ └── AbstractGroup.php │ │ │ │ ├── AbstractStatusCode.php │ │ │ │ ├── AbstractBehavior.php │ │ │ │ ├── AbstractExpose.php │ │ │ │ └── AbstractParams.php │ │ │ ├── Interfaces │ │ │ │ ├── DebugInterface.php │ │ │ │ ├── CacheInterface.php │ │ │ │ ├── StatusCodeInterface.php │ │ │ │ ├── BehaviorInterface.php │ │ │ │ └── ExposeInterface.php │ │ │ └── Debug.php │ │ ├── RestfulInterface.php │ │ ├── Error.php │ │ └── Rest.php │ ├── View │ │ └── Error.php │ ├── Model │ │ ├── Traits │ │ │ ├── Abstracts │ │ │ │ ├── AbstractSave.php │ │ │ │ ├── AbstractInstance.php │ │ │ │ ├── AbstractIdentity.php │ │ │ │ ├── AbstractLocale.php │ │ │ │ ├── AbstractEntity.php │ │ │ │ ├── AbstractMetaData.php │ │ │ │ ├── AbstractInjectable.php │ │ │ │ ├── AbstractModelsManager.php │ │ │ │ ├── AbstractModelsCache.php │ │ │ │ ├── AbstractOptions.php │ │ │ │ ├── AbstractEventsManager.php │ │ │ │ └── AbstractBlameable.php │ │ │ ├── Instance.php │ │ │ ├── Expose.php │ │ │ └── Blameable │ │ │ │ └── BlameAt.php │ │ └── Interfaces │ │ │ ├── InstanceInterface.php │ │ │ ├── Blameable │ │ │ ├── BlameAtInterface.php │ │ │ ├── CreatedInterface.php │ │ │ ├── UpdatedInterface.php │ │ │ ├── DeletedInterface.php │ │ │ └── RestoredInterface.php │ │ │ ├── ExposeInterface.php │ │ │ ├── MetaDataInterface.php │ │ │ ├── HashInterface.php │ │ │ ├── AttributeInterface.php │ │ │ ├── JsonInterface.php │ │ │ ├── OptionsInterface.php │ │ │ ├── SlugInterface.php │ │ │ ├── SecurityInterface.php │ │ │ └── LocaleInterface.php │ ├── Controller.php │ ├── Dispatcher.php │ └── Dispatcher │ │ └── Rest.php ├── Cache │ └── Cache.php ├── Models │ ├── Enums │ │ ├── FileCategory.php │ │ ├── FileRelationCategory.php │ │ ├── SiteStatus.php │ │ ├── Oauth2Provider.php │ │ ├── WorkspaceStatus.php │ │ ├── TranslateTableTable.php │ │ ├── JobStatus.php │ │ ├── AuditEvent.php │ │ ├── AuditDetailEvent.php │ │ ├── LogType.php │ │ └── ValidatorType.php │ ├── Interfaces │ │ ├── JobInterface.php │ │ ├── LogInterface.php │ │ ├── DataInterface.php │ │ ├── FileInterface.php │ │ ├── FlagInterface.php │ │ ├── LangInterface.php │ │ ├── MenuInterface.php │ │ ├── MetaInterface.php │ │ ├── PageInterface.php │ │ ├── PostInterface.php │ │ ├── RoleInterface.php │ │ ├── SiteInterface.php │ │ ├── TypeInterface.php │ │ ├── UserInterface.php │ │ ├── AuditInterface.php │ │ ├── BackupInterface.php │ │ ├── ColumnInterface.php │ │ ├── EmailInterface.php │ │ ├── GroupInterface.php │ │ ├── Oauth2Interface.php │ │ ├── RecordInterface.php │ │ ├── TableInterface.php │ │ ├── FeatureInterface.php │ │ ├── ProfileInterface.php │ │ ├── SessionInterface.php │ │ ├── SettingInterface.php │ │ ├── CategoryInterface.php │ │ ├── RoleRoleInterface.php │ │ ├── SiteLangInterface.php │ │ ├── TemplateInterface.php │ │ ├── UserRoleInterface.php │ │ ├── UserTypeInterface.php │ │ ├── EmailFileInterface.php │ │ ├── GroupRoleInterface.php │ │ ├── GroupTypeInterface.php │ │ ├── TranslateInterface.php │ │ ├── UserGroupInterface.php │ │ ├── ValidatorInterface.php │ │ ├── WorkspaceInterface.php │ │ ├── AuditDetailInterface.php │ │ ├── RoleFeatureInterface.php │ │ ├── UserFeatureInterface.php │ │ ├── FileRelationInterface.php │ │ ├── GroupFeatureInterface.php │ │ ├── JobSchedulerInterface.php │ │ ├── PostCategoryInterface.php │ │ ├── WorkspaceLangInterface.php │ │ └── PhalconMigrationsInterface.php │ ├── Behaviors │ │ ├── SoftDeleteInterface.php │ │ ├── Blameable │ │ │ ├── UpdateInterface.php │ │ │ ├── CreatedInterface.php │ │ │ ├── DeletedInterface.php │ │ │ └── RestoredInterface.php │ │ └── BlameableInterface.php │ └── AbstractModel.php ├── Assets │ └── Manager.php ├── Exception │ ├── CliException.php │ ├── HttpException.php │ └── WsException.php ├── Filter │ ├── Validation.php │ └── Sanitize │ │ ├── Md5.php │ │ ├── IPv4.php │ │ ├── IPv6.php │ │ └── Json.php ├── Cli │ ├── TaskInterface.php │ ├── DispatcherInterface.php │ ├── Dispatcher.php │ ├── Console.php │ ├── Task.php │ └── ExceptionHandler.php ├── Di │ └── Injectable.php ├── Identity │ └── Traits │ │ ├── Interfaces │ │ ├── AclInterface.php │ │ ├── ImpersonationInterface.php │ │ ├── Oauth2Interface.php │ │ └── RoleInterface.php │ │ └── Abstracts │ │ ├── AbstractAcl.php │ │ ├── AbstractImpersonation.php │ │ ├── AbstractOauth2.php │ │ └── AbstractRole.php ├── Dispatcher │ ├── AbstractDispatcher.php │ └── DispatcherInterface.php ├── Http │ ├── Response.php │ └── ResponseInterface.php ├── Html │ ├── Escaper │ │ └── EscaperInterface.php │ └── TagFactory.php ├── Exception.php ├── Fractal │ ├── Manager.php │ └── Transformer.php ├── Config │ └── ConfigInterface.php ├── Provider │ ├── DatabaseDynamic │ │ └── ServiceProvider.php │ ├── DatabaseReadOnly │ │ └── ServiceProvider.php │ ├── ModelsCache │ │ └── ServiceProvider.php │ ├── Env │ │ └── ServiceProvider.php │ ├── Escaper │ │ └── ServiceProvider.php │ ├── Profiler │ │ └── ServiceProvider.php │ └── OCR │ │ └── ServiceProvider.php ├── Router │ └── RouterInterface.php ├── Acl │ └── AclInterface.php └── Support │ ├── Helper │ └── Str │ │ ├── Slugify.php │ │ └── RemoveNonPrintable.php │ └── Options │ └── ManagerInterface.php ├── .env.testing ├── .env.github ├── bin ├── skeleton.sh ├── php-cs-fixer.sh ├── phpdoc.sh ├── phpunit.sh ├── phpcbf.sh ├── phpstan.sh ├── database-faker.sh ├── phpunit-coverage.sh ├── scaffold-run.sh ├── phpcs.sh ├── psalm-sarif.sh ├── psalm.sh ├── declare-type-missing.sh ├── license-missing.sh ├── migration-list.sh ├── psalm-autofix.sh ├── migration-run.sh ├── migration-generate.sh ├── dos2unix.sh └── database-initialize.sh ├── phalcon-kit.bat ├── index.php ├── .run ├── database main.run.xml └── Everything.run.xml ├── devtools.php ├── phalcon-kit ├── patches └── phalcon-mvc-entity-interface.patch ├── phpcs-eol.xml ├── .gitignore └── phpstan.neon /config/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zemit-cms/core/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /storage/cache/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore all files in this directory 2 | * 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/files/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore all files in this directory 2 | * 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/log/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore all files in this directory 2 | * 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/tmp/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore all files in this directory 2 | * 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/trash/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore all files in this directory 2 | * 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: jturbide 4 | -------------------------------------------------------------------------------- /.env.testing-types: -------------------------------------------------------------------------------- 1 | TEST_BOOL_FALSE=false 2 | TEST_BOOL_TRUE=true 3 | TEST_STRING=string 4 | TEST_INT=123 5 | TEST_FLOAT=1.2 6 | TEST_VERSION=1.3.4 7 | -------------------------------------------------------------------------------- /resources/translations/en_CA.UTF-8/LC_MESSAGES/messages.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zemit-cms/core/HEAD/resources/translations/en_CA.UTF-8/LC_MESSAGES/messages.mo -------------------------------------------------------------------------------- /resources/translations/fr_CA.UTF-8/LC_MESSAGES/messages.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zemit-cms/core/HEAD/resources/translations/fr_CA.UTF-8/LC_MESSAGES/messages.mo -------------------------------------------------------------------------------- /public/style.min.css: -------------------------------------------------------------------------------- 1 | html{font-size:18px}h1{font-size:4rem}p{font-size:1rem}.container{position:relative;min-height:100vh}.box{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.text-center{text-align:center} -------------------------------------------------------------------------------- /src/Modules/Frontend/Views/index/index.phtml: -------------------------------------------------------------------------------- 1 |

Phalcon Kit

2 |

Phalcon vget(); ?>

3 |

Phalcon Kit vget(); ?>

4 | -------------------------------------------------------------------------------- /src/Modules/Admin/Views/index/index.phtml: -------------------------------------------------------------------------------- 1 |

Phalcon Kit

2 |

Admin

3 |

Phalcon vget(); ?>

4 |

Phalcon Kit vget(); ?>

5 | -------------------------------------------------------------------------------- /.env.testing: -------------------------------------------------------------------------------- 1 | # Locale 2 | #LOCALE_DEFAULT=fr 3 | #LOCALE_ALLOWED=en,fr,es,en_US,fr_CA 4 | 5 | # Database 6 | DATABASE_HOST=db 7 | DATABASE_DBNAME=phalcon_kit 8 | DATABASE_USERNAME=phalcon_kit 9 | DATABASE_PASSWORD="q.6(ECEH[zymY[h]" 10 | -------------------------------------------------------------------------------- /src/Modules/Frontend/Views/error/index.phtml: -------------------------------------------------------------------------------- 1 |

Phalcon Kit

2 |

translate->t('Oops! An error has occurred.'); ?>

3 |

response->getStatusCode() . ' ' . $this->response->getReasonPhrase(); ?>

4 | -------------------------------------------------------------------------------- /.env.github: -------------------------------------------------------------------------------- 1 | # Application 2 | APP_DEBUG=true 3 | APP_PROFILER=true 4 | APP_SEND_EMAIL=false 5 | APP_CACHE=false 6 | 7 | # Database 8 | DATABASE_HOST=127.0.0.1 9 | DATABASE_DBNAME=phalcon_kit 10 | DATABASE_USERNAME=root 11 | DATABASE_PASSWORD="" 12 | -------------------------------------------------------------------------------- /src/Modules/Admin/Views/error/index.phtml: -------------------------------------------------------------------------------- 1 |

Phalcon Kit

2 |

Admin

3 |

translate->t('Oops! An error has occurred.'); ?>

4 |

response->getStatusCode() . ' ' . $this->response->getReasonPhrase(); ?>

5 | -------------------------------------------------------------------------------- /bin/skeleton.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # This file is part of the Phalcon Kit. 4 | # 5 | # (c) Phalcon Kit Team 6 | # 7 | # For the full copyright and license information, please view the LICENSE.txt 8 | # file that was distributed with this source code. 9 | # 10 | 11 | pds-skeleton "$@" 12 | -------------------------------------------------------------------------------- /bin/php-cs-fixer.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # This file is part of the Phalcon Kit. 4 | # 5 | # (c) Phalcon Kit Team 6 | # 7 | # For the full copyright and license information, please view the LICENSE.txt 8 | # file that was distributed with this source code. 9 | # 10 | 11 | php-cs-fixer "$@" 12 | -------------------------------------------------------------------------------- /bin/phpdoc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # This file is part of the Phalcon Kit. 4 | # 5 | # (c) Phalcon Kit Team 6 | # 7 | # For the full copyright and license information, please view the LICENSE.txt 8 | # file that was distributed with this source code. 9 | # 10 | 11 | phpdoc -c phpdoc.xml "$@" 12 | -------------------------------------------------------------------------------- /bin/phpunit.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # This file is part of the Phalcon Kit. 4 | # 5 | # (c) Phalcon Kit Team 6 | # 7 | # For the full copyright and license information, please view the LICENSE.txt 8 | # file that was distributed with this source code. 9 | # 10 | 11 | phpunit --no-coverage "$@" 12 | -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | run(); 15 | -------------------------------------------------------------------------------- /.run/database main.run.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /bin/declare-type-missing.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # This file is part of the Phalcon Kit. 4 | # 5 | # (c) Phalcon Kit Team 6 | # 7 | # For the full copyright and license information, please view the LICENSE.txt 8 | # file that was distributed with this source code. 9 | # 10 | 11 | find ./src/ -type f -name "*.php" -exec grep -LZ "declare(strict_types=1);" {} + | xargs -0 -n1 echo 12 | -------------------------------------------------------------------------------- /devtools.php: -------------------------------------------------------------------------------- 1 | run(); 16 | -------------------------------------------------------------------------------- /patches/phalcon-mvc-entity-interface.patch: -------------------------------------------------------------------------------- 1 | --- a/src/Mvc/EntityInterface.php 2 | +++ b/src/Mvc/EntityInterface.php 3 | @@ -22,7 +22,7 @@ 4 | * @param string $attribute 5 | * @return mixed|null 6 | */ 7 | - public function readAttribute(string $attribute): mixed; 8 | + public function readAttribute(string $attribute); 9 | 10 | /** 11 | * Writes an attribute value by its name 12 | -------------------------------------------------------------------------------- /src/Modules/Ws/Task.php: -------------------------------------------------------------------------------- 1 | tag->getDoctype() ?> 2 | tag->getTagParams('html'); ?>> 3 | 4 | tag->renderTitle(); ?> 5 | tag->meta(); ?> 6 | tag->css('head'); ?> 7 | 8 | tag->getTagParams('body'); ?>> 9 |
10 |
11 | getContent(); ?> 12 |
13 |
14 | 15 | 16 | -------------------------------------------------------------------------------- /src/Assets/Manager.php: -------------------------------------------------------------------------------- 1 | tag->getDoctype() ?> 2 | tag->getTagParams('html'); ?>> 3 | 4 | tag->renderTitle(); ?> 5 | tag->meta(); ?> 6 | tag->css('head'); ?> 7 | 8 | tag->getTagParams('body'); ?>> 9 |
10 |
11 | getContent(); ?> 12 |
13 |
14 | 15 | 16 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | # 2 | # This file is part of the Phalcon Kit. 3 | # 4 | # (c) Phalcon Kit Team 5 | # 6 | # For the full copyright and license information, please view the LICENSE.txt 7 | # file that was distributed with this source code. 8 | # 9 | 10 | 11 | RewriteEngine On 12 | RewriteCond %{REQUEST_FILENAME} !-d 13 | RewriteCond %{REQUEST_FILENAME} !-f 14 | RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L] 15 | 16 | -------------------------------------------------------------------------------- /src/Models/Enums/FileRelationCategory.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /bin/dos2unix.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # This file is part of the Phalcon Kit. 4 | # 5 | # (c) Phalcon Kit Team 6 | # 7 | # For the full copyright and license information, please view the LICENSE.txt 8 | # file that was distributed with this source code. 9 | # 10 | 11 | BASE_DIR="${1:-./}" 12 | find "$BASE_DIR" -type f -name "*.php" | while read -r file; do 13 | if file "$file" | grep -q "CRLF"; then 14 | echo "Converting $file to Unix line endings..." 15 | dos2unix "$file" 16 | fi 17 | done 18 | -------------------------------------------------------------------------------- /src/Modules/Api/Controllers/AuditDetailController.php: -------------------------------------------------------------------------------- 1 | 1);\n" 18 | 19 | msgid "Phalcon Kit" 20 | msgstr "Phalcon Kit English" 21 | 22 | msgid "Powered by %phalcon-kit%" 23 | msgstr "Powered by %phalcon-kit%" 24 | -------------------------------------------------------------------------------- /src/Identity/Traits/Abstracts/AbstractImpersonation.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Custom ruleset to fix line endings. 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | src 12 | 13 | private/* 14 | resources/* 15 | public/* 16 | **vendor** 17 | 18 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Skip/SkipPermissionCondition.php: -------------------------------------------------------------------------------- 1 | getBind()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/RemoveOffset.php: -------------------------------------------------------------------------------- 1 | setOffset(0); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/RemoveWith.php: -------------------------------------------------------------------------------- 1 | getWith()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/RemoveGroup.php: -------------------------------------------------------------------------------- 1 | getGroup()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/RemoveJoins.php: -------------------------------------------------------------------------------- 1 | getJoins()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Model/Interfaces/JsonInterface.php: -------------------------------------------------------------------------------- 1 | toArray() : []; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/RemoveColumn.php: -------------------------------------------------------------------------------- 1 | getColumn()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/RemoveHaving.php: -------------------------------------------------------------------------------- 1 | getHaving()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/RemoveMaxLimit.php: -------------------------------------------------------------------------------- 1 | setMaxLimit(-1); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Cli/Task.php: -------------------------------------------------------------------------------- 1 | getConditions()?->remove('softDelete'); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/RemoveDistinct.php: -------------------------------------------------------------------------------- 1 | getDistinct()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/RemoveLimit.php: -------------------------------------------------------------------------------- 1 | setLimit($controller->getMaxLimit()); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /phpstan.neon: -------------------------------------------------------------------------------- 1 | includes: 2 | # - ./../../Tools/phpstan/vendor/phpstan/phpstan/conf/bleedingEdge.neon # Optional: For cutting-edge rules 3 | 4 | parameters: 5 | level: 5 6 | paths: 7 | - src 8 | # - tests 9 | scanFiles: 10 | - loader.php 11 | - index.php 12 | - devtools.php 13 | excludePaths: 14 | - */vendor/* # Exclude vendor directory 15 | fileExtensions: 16 | - php 17 | parallel: 18 | maximumNumberOfProcesses: 16 19 | treatPhpDocTypesAsCertain: false # Treat PHPDoc types as certain to be more strict 20 | polluteScopeWithLoopInitialAssignments: false # Optional: Configures scope behaviour in loops 21 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/RemoveConditions.php: -------------------------------------------------------------------------------- 1 | getConditions()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Models/Enums/LogType.php: -------------------------------------------------------------------------------- 1 | getCacheConfig()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Models/AbstractModel.php: -------------------------------------------------------------------------------- 1 | getMapFields()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/Fields/RemoveSaveFields.php: -------------------------------------------------------------------------------- 1 | getSaveFields()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Traits/Abstracts/Query/AbstractWith.php: -------------------------------------------------------------------------------- 1 | getExposeFields()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/Fields/RemoveFilterFields.php: -------------------------------------------------------------------------------- 1 | getFilterFields()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/Fields/RemoveSearchFields.php: -------------------------------------------------------------------------------- 1 | getSearchFields()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Traits/Abstracts/Query/AbstractJoins.php: -------------------------------------------------------------------------------- 1 | setMaxLimit(-1); 24 | $controller->setLimit(-1); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Traits/Abstracts/Query/AbstractDistinct.php: -------------------------------------------------------------------------------- 1 | getDI()->get('modelsCache'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Traits/Interfaces/ExposeInterface.php: -------------------------------------------------------------------------------- 1 | getFilterConditions()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/Conditions/RemoveSearchConditions.php: -------------------------------------------------------------------------------- 1 | getSearchConditions()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Traits/Abstracts/AbstractExpose.php: -------------------------------------------------------------------------------- 1 | 1);\n" 18 | 19 | msgid "Phalcon Kit" 20 | msgstr "Phalcon Kit Français" 21 | 22 | msgid "Powered by %phalcon-kit%" 23 | msgstr "Propulsé par %phalcon-kit%" 24 | 25 | msgid "Oops! An error has occurred." 26 | msgstr "Oups! Une erreur s'est produite." 27 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/Conditions/RemoveIdentityConditions.php: -------------------------------------------------------------------------------- 1 | getIdentityConditions()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Support/Helper/Str/RemoveNonPrintable.php: -------------------------------------------------------------------------------- 1 | getPermissionConditions()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/Conditions/RemoveSoftDeleteConditions.php: -------------------------------------------------------------------------------- 1 | getSoftDeleteConditions()?->clear(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Skip/SkipSoftDeleteCondition.php: -------------------------------------------------------------------------------- 1 | getConditions()?->remove('softDelete'); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Mvc/Model/Interfaces/Blameable/DeletedInterface.php: -------------------------------------------------------------------------------- 1 | [ ...] 26 | 27 | Options: 28 | task: user 29 | action: create, password, role 30 | 31 | 32 | DOC; 33 | } 34 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/Conditions/RemoveDefaultFilterCondition.php: -------------------------------------------------------------------------------- 1 | getFilterConditions()?->remove('default'); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/Conditions/RemoveDefaultSearchCondition.php: -------------------------------------------------------------------------------- 1 | getSearchConditions()?->remove('default'); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Model/Interfaces/SecurityInterface.php: -------------------------------------------------------------------------------- 1 | getIdentityConditions()?->remove('default'); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/Conditions/RemoveDefaultPermissionCondition.php: -------------------------------------------------------------------------------- 1 | getPermissionConditions()?->remove('default'); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Behavior/Query/Conditions/RemoveDefaultSoftDeleteCondition.php: -------------------------------------------------------------------------------- 1 | getSoftDeleteConditions()?->remove('default'); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Mvc/Model/Interfaces/LocaleInterface.php: -------------------------------------------------------------------------------- 1 | outputStream, 27 | (is_string($this->e) ? $this->e : (string) $this->e) . PHP_EOL 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Traits/Abstracts/Query/AbstractGroup.php: -------------------------------------------------------------------------------- 1 | setShared($this->getName(), Env::class); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Models/Behaviors/Blameable/UpdateInterface.php: -------------------------------------------------------------------------------- 1 | set($this->getName(), Escaper::class); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Models/Behaviors/Blameable/RestoredInterface.php: -------------------------------------------------------------------------------- 1 | setShared($this->getName(), Profiler::class); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Traits/Debug.php: -------------------------------------------------------------------------------- 1 | config->path('app.debug') ?? false; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/Provider/OCR/ServiceProvider.php: -------------------------------------------------------------------------------- 1 | setShared($this->getName(), TesseractOCR::class); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Modules/Api/Controllers/TableController.php: -------------------------------------------------------------------------------- 1 | setFilterFields(new Collection([ 28 | 'workspaceId', 29 | ])); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/Mvc/Controller/Rest.php: -------------------------------------------------------------------------------- 1 |