Skip to content
Snippets Groups Projects
Commit e561b62f authored by Benjamin Bellamy's avatar Benjamin Bellamy :speech_balloon:
Browse files

Correction

parent ba576c62
Branches
No related tags found
No related merge requests found
......@@ -16,6 +16,6 @@
}
},
"scripts": {
"post-update-cmd": "Opawg\\UserAgent\\UserAgentsGenerate::generate"
"post-update-cmd": "php src/UserAgentsGenerate.php > src/UserAgents.php"
}
}
<?php
namespace Opawg\UserAgents;
#!/usr/bin/php
class UserAgentsGenerate {
public static function generate()
{
<?php
/*
* Load json and convert it to PHP object:
*/
......@@ -55,5 +52,3 @@ EOT;
print $rowstr;
print ";\n";
print "}\n";
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment