Commit 7cd2877
Title: Enforce PSR Compliance Across Codebase (#104)
Key features implemented:
- Updated .gitignore with comprehensive file exclusion patterns for build artifacts, dependencies, logs, environment files, editors, system files, cache directories, and compressed files
- Refined cache implementations (APCuCache, FileCache, GenericCache, MemcacheCache, XCacheCache) with PSR-compliant namespace declarations, modern PHP practices, improved error handling, and enhanced security measures
- Modernized grid controller components (UserApiHandler, ArrayGridCellProvider, CategoryGridDataProvider, CategoryGridHandler, ColumnBasedGridCellProvider, DataObjectGridCellProvider, GridBodyElement, GridCategoryRow, GridCategoryRowCellProvider, GridCellProvider, GridColumn, GridDataProvider, GridHandler, GridRow) with strict typing, explicit visibility modifiers, removed deprecated references, and updated hook dispatch mechanisms
- Standardized filter components (ClassTypeDescription, CompositeFilter, Filter, FilterDAO, FilterGroup, FilterHelper, FilterSetting, PersistableFilter, PrimitiveTypeDescription, SetFilterSetting, TemplateBasedFilter, TypeDescription, TypeDescriptionFactory) with PSR-compliant structure, removed deprecated references, and updated type checking
- Enhanced form components (Form, FormBuilderVocabulary, FormError) with strict typing, proper constructor signatures, updated Smarty integration, and improved error handling
These changes ensure the codebase adheres to PSR standards, improving maintainability, readability, and compatibility with modern PHP development tools and practices. The updates also incorporate security enhancements and performance optimizations.
Co-authored-by: qwen.ai[bot] <qwenlm-intl@service.alibaba.com>1 parent 89dc4f8 commit 7cd2877
516 files changed
Lines changed: 562 additions & 543 deletions
File tree
- core/Modules
- cache
- controllers
- api/user
- grid
- citation
- form
- feature
- filter
- form
- listbuilder
- currency
- db
- file
- wrappers
- filter
- form
- validation
- gift
- group
- handler
- validation
- help
- i18n
- install
- json
- language
- linkAction
- request
- log
- mail
- manager/form
- metadata
- nlp
- note
- notification
- form
- oai
- pages
- announcement
- help
- install
- login
- manager
- notification
- user
- payment
- plugins
- citationLookup
- crossref
- filter
- isbndb
- filter
- pubmed
- filter
- worldcat
- filter
- citationOutput
- abnt
- filter
- apa
- filter
- mla
- filter
- vancouver
- filter
- citationParser
- freecite
- filter
- paracite
- filter
- parscit
- filter
- regex
- filter
- metadata
- dc11
- schema
- mods34
- filter
- schema
- nlm30
- filter
- schema
- openurl10
- schema
- oaiMetadataFormats/dc
- process
- recaptcha
- reviewForm
- rt
- scheduledTask
- search
- security
- authorization
- session
- signoff
- site
- submission
- common
- reviewAssignment
- task
- template
- tombstone
- user
- validation
- webservice
- xml
- xslt
- plugins
- gateways
- metsGateway
- resolver
- generic
- browse/pages
- coins
- customBlockManager
- customLocale
- dataverse
- classes
- api
- form
- hooks
- services
- pages
- driver
- externalFeed
- googleAnalytics
- googleViewer
- lucene
- classes
- form
- objectsForReview
- classes
- form
- tasks
- pages
- openAIRE
- pdfJsViewer
- phpMyVisites
- piwik
- pln
- classes
- form
- tasks
- pages
- referral
- sehl
- staticPages
- stopForumSpam
- sword
- tinymce
- translator
- usageEvent
- usageStats
- lib/geoIp
- webFeed
- xmlGalley
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 1 | + | |
25 | 2 | | |
| 3 | + | |
| 4 | + | |
26 | 5 | | |
27 | 6 | | |
28 | 7 | | |
| |||
31 | 10 | | |
32 | 11 | | |
33 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
34 | 22 | | |
35 | 23 | | |
36 | 24 | | |
37 | 25 | | |
| 26 | + | |
38 | 27 | | |
39 | 28 | | |
40 | 29 | | |
| |||
45 | 34 | | |
46 | 35 | | |
47 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
48 | 41 | | |
49 | 42 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments