File tree 3 files changed +11
-10
lines changed 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 11
11
12
12
$ config ->setRules ([
13
13
'no_trailing_whitespace ' => true ,
14
+ 'visibility_required ' => true ,
14
15
'whitespace_after_comma_in_array ' => true ,
15
16
]);
16
17
Original file line number Diff line number Diff line change 3
3
namespace phpweb \News ;
4
4
5
5
class Entry {
6
- const CATEGORIES = [
6
+ public const CATEGORIES = [
7
7
'frontpage ' => 'PHP.net frontpage news ' ,
8
8
'releases ' => 'New PHP release ' ,
9
9
'conferences ' => 'Conference announcement ' ,
10
10
'cfp ' => 'Call for Papers ' ,
11
11
];
12
12
13
- const WEBROOT = "https://www.php.net " ;
14
- const PHPWEB = __DIR__ . '/../../ ' ;
15
- const ARCHIVE_FILE_REL = 'archive/archive.xml ' ;
16
- const ARCHIVE_FILE_ABS = self ::PHPWEB . self ::ARCHIVE_FILE_REL ;
17
- const ARCHIVE_ENTRIES_REL = 'archive/entries/ ' ;
18
- const ARCHIVE_ENTRIES_ABS = self ::PHPWEB . self ::ARCHIVE_ENTRIES_REL ;
19
- const IMAGE_PATH_REL = 'images/news/ ' ;
20
- const IMAGE_PATH_ABS = self ::PHPWEB . self ::IMAGE_PATH_REL ;
13
+ public const WEBROOT = "https://www.php.net " ;
14
+ public const PHPWEB = __DIR__ . '/../../ ' ;
15
+ public const ARCHIVE_FILE_REL = 'archive/archive.xml ' ;
16
+ public const ARCHIVE_FILE_ABS = self ::PHPWEB . self ::ARCHIVE_FILE_REL ;
17
+ public const ARCHIVE_ENTRIES_REL = 'archive/entries/ ' ;
18
+ public const ARCHIVE_ENTRIES_ABS = self ::PHPWEB . self ::ARCHIVE_ENTRIES_REL ;
19
+ public const IMAGE_PATH_REL = 'images/news/ ' ;
20
+ public const IMAGE_PATH_ABS = self ::PHPWEB . self ::IMAGE_PATH_REL ;
21
21
22
22
23
23
protected $ title = '' ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class Sorter {
15
15
private $ ratingWeight = 60 ;
16
16
private $ ageWeight = 2 ;
17
17
18
- function sort (array &$ notes ) {
18
+ public function sort (array &$ notes ) {
19
19
// First we make a pass over the data to get the min and max values
20
20
// for data normalization.
21
21
$ this ->findMinMaxValues ($ notes );
You can’t perform that action at this time.
0 commit comments