File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -43,14 +43,13 @@ class SearchController{
4343 /**
4444 * @var string Search query algorithm that needs to be used
4545 */
46- private string $ searchAlgorithm ;
46+ private string $ searchAlgorithm = '' ;
4747
4848 /**
4949 * @var string|array Search request query value
5050 */
5151 private string |array $ searchQuery = '' ;
5252
53-
5453 /**
5554 * @var array MYSQL database table rows to search form
5655 */
@@ -64,19 +63,25 @@ class SearchController{
6463 /**
6564 * @var string SQL LIKE query operator to be used
6665 */
67- private string $ operators ;
66+ private string $ operators = '' ;
6867
6968 /**
7069 * @var string SQL query prefix
7170 */
72- private string $ queryStart ;
71+ private string $ queryStart = '' ;
7372
7473 /**
7574 * @var string SQL query suffix
7675 */
77- private string $ queryEnd ;
76+ private string $ queryEnd = '' ;
7877
79- public function __construct (string $ algorithm = self ::OR ) {
78+ /**
79+ * Initializes SearchController constructor
80+ *
81+ * @param string $algorithm search algorithm
82+ */
83+ public function __construct (string $ algorithm = self ::OR )
84+ {
8085 $ this ->searchAlgorithm = $ algorithm ;
8186 $ this ->operators = self ::END_WITH_QUERY ;
8287 $ this ->queryStart = self ::LIKE ;
You can’t perform that action at this time.
0 commit comments