Peter Gribanov

Results 25 issues of Peter Gribanov

https://github.com/neonxp/Stemmer https://github.com/wamania/php-stemmer https://yandex.ru/dev/mystem/

feature

[4.4. Присвоения в условных операциях](https://github.com/index0h/php-conventions#44-%D0%BF%D1%80%D0%B8%D1%81%D0%B2%D0%BE%D0%B5%D0%BD%D0%B8%D1%8F-%D0%B2-%D1%83%D1%81%D0%BB%D0%BE%D0%B2%D0%BD%D1%8B%D1%85-%D0%BE%D0%BF%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D1%8F%D1%85) Использовать операцию присвоения в условиях **конечно не рекомендуется**, но бывают кейсы в которых использование присвоения в условиях позволяет избавится от многоуровневой вложенности и сделать код...

[3.4. Модификаторы доступа для свойств](https://github.com/index0h/php-conventions#34-%D0%BC%D0%BE%D0%B4%D0%B8%D1%84%D0%B8%D0%BA%D0%B0%D1%82%D0%BE%D1%80%D1%8B-%D0%B4%D0%BE%D1%81%D1%82%D1%83%D0%BF%D0%B0-%D0%B4%D0%BB%D1%8F-%D1%81%D0%B2%D0%BE%D0%B9%D1%81%D1%82%D0%B2) Очень странно, что вы игнорируете часть стандартных функций языка без которых нельзя сделать некоторые вещи.

[3.5. Именование методов](https://github.com/index0h/php-conventions#35-%D0%B8%D0%BC%D0%B5%D0%BD%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5-%D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D0%BE%D0%B2) Названия методов ДОЛЖНЫ описывать предназначение их использования внешним кодом, а не детали реализации. ```php // Не правильно public function findUserById(int $id): ?User ``` ```php // Правильно public...

[1.3. Выравнивание присвоений переменных и элементов массива](https://github.com/index0h/php-conventions#13-%D0%B2%D1%8B%D1%80%D0%B0%D0%B2%D0%BD%D0%B8%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5-%D0%BF%D1%80%D0%B8%D1%81%D0%B2%D0%BE%D0%B5%D0%BD%D0%B8%D0%B9-%D0%BF%D0%B5%D1%80%D0%B5%D0%BC%D0%B5%D0%BD%D0%BD%D1%8B%D1%85-%D0%B8-%D1%8D%D0%BB%D0%B5%D0%BC%D0%B5%D0%BD%D1%82%D0%BE%D0%B2-%D0%BC%D0%B0%D1%81%D1%81%D0%B8%D0%B2%D0%B0) Довольно спорное решение. Я бы сказал вкусовщина. Я когда-то очень давно применял этот подход и результат мне не понравился. Улучшается читаемость только если...

Maybe we should use spoilers for examples? This is just an idea. --- ### Avoid conditionals This seems like an impossible task. Upon first hearing this, most people say, "how...

Found a problem with file compression. ``` # pngquant pngquant_fail.png error: IDAT: incorrect data check (libpng failed) error: cannot decode image pngquant_fail.png ``` The file is perfectly normal. Opens correctly...

I want to put the filter configurations into modules, but in this case the global settings of `resolvers` and `loaders` will no longer apply to all filters. ### Preconditions ```...

Level: Enhancement ✨

If there are more input variables on the string than specified by `max_input_vars` directive, then further input variables are truncated from the request. If a request signature based on a...

Reason symfony/symfony#41514 and symfony/symfony#41516 The `text_empty_data.rst.inc` file is a copy of `empty_data.rst.inc`: ```diff ``empty_data`` ~~~~~~~~~~~~~~ **type**: ``mixed`` .. This file should only be included with start-after or end-before that's set...

Form
Status: Reviewed
Waiting Code Merge