File tree Expand file tree Collapse file tree
assets/javascripts/views/pages Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ app.views.NodePage =
2323app .views .PerlPage =
2424app .views .PhalconPage =
2525app .views .PhaserPage =
26+ app .views .PhpPage =
2627app .views .PostgresPage =
2728app .views .RamdaPage =
2829app .views .ReactPage =
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ def other
2424 node . name = 'pre'
2525 node . inner_html = node . inner_html . gsub ( br , "\n " )
2626 node . content = node . content
27+ node [ 'data-language' ] = 'php'
2728 end
2829
2930 css ( '> h2:first-child.title' ) . each do |node |
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ def get_name
9494 end
9595
9696 def get_type
97- return 'Language Reference' if subpath . start_with? ( 'language.' )
97+ return 'Language Reference' if subpath . start_with? ( 'language.' ) || subpath . start_with? ( 'functions.' )
9898 return 'PCRE Reference' if subpath . start_with? ( 'regexp.' )
9999
100100 type = at_css ( '.up' ) . content . strip
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ class Php < FileScraper
44
55 self . name = 'PHP'
66 self . type = 'php'
7- self . release = 'up to 7.0.5 '
7+ self . release = 'up to 7.0.7 '
88 self . base_url = 'https://secure.php.net/manual/en/'
99 self . root_path = 'index.html'
1010 self . initial_paths = %w(
@@ -36,7 +36,7 @@ class Php < FileScraper
3636 options [ :only_patterns ] = [
3737 /\A language\. / ,
3838 /\A class\. / ,
39- /\A function \. / ,
39+ /\A functions? \. / ,
4040 /\A control-structures/ ,
4141 /\A regexp\. / ,
4242 /\A reserved\. exceptions/ ,
You can’t perform that action at this time.
0 commit comments