Skip to content

Commit cf931d3

Browse files
committed
stataic journey
1 parent c218032 commit cf931d3

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,11 @@ $ composer update componavt/piwidict
2323
```
2424

2525
See [componavt/piwidict](https://packagist.org/packages/componavt/piwidict) at packagist.org
26+
27+
28+
Cool Composer commands:
29+
``` bash
30+
$ composer clearcache
31+
$ composer dumpautoload -o
32+
$ composer update
33+
```

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"email": "andrew.krizhanovsky@gmail.com"
1111
}
1212
],
13-
"minimum-stability": "stable",
13+
"minimum-stability": "dev",
1414
"require": {
1515
"php": ">=7.0.4",
1616
"cijic/phpmorphy": "^0.3.0"

src/piwidict/sql/TLabelMeaning.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function getMeaning() {
3636
/** Gets TLabelMeaning object by property $property_name with value $property_value.
3737
* @return TLabelMeaning or NULL in case of error
3838
*/
39-
public function getLabelMeaning($property_name, $property_value,$meaning_obj=NULL) {
39+
public static function getLabelMeaning($property_name, $property_value,$meaning_obj=NULL) {
4040
$link_db = Piwidict::getDatabaseConnection();
4141

4242
$query = "SELECT * FROM label_meaning WHERE `$property_name`='$property_value'";

src/piwidict/sql/TPage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function getByTitleIfExists(String $page_title) : array {
195195
/** Gets a count of record for request with $condition .
196196
* @return Int
197197
*/
198-
public function countPage(String $condition) : int {
198+
public static function countPage(String $condition) : int {
199199
$link_db = Piwidict::getDatabaseConnection();
200200

201201
$query = "SELECT id FROM page WHERE $condition";

0 commit comments

Comments
 (0)