File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1111 ],
1212 "require" : {
1313 "php" : " >=5.3.0" ,
14- "illuminate/support" : " 4.x" ,
1514 "league/flysystem" : " 0.3.*"
1615 },
1716 "require-dev" : {
18- "mockery/mockery" : " dev-master@dev "
17+ "mockery/mockery" : " 0.9.5 "
1918 },
2019 "autoload" : {
2120 "psr-0" : {
Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ class PDF {
7575
7676 /**
7777 * Initialize temporary file names and folders
78+ *
79+ * @param $cmd
80+ * @param null $tmpFolder
7881 */
7982 public function __construct ($ cmd , $ tmpFolder = null )
8083 {
@@ -308,7 +311,9 @@ protected function addParam($key, $value = null)
308311 */
309312 protected function methodToParam ($ method )
310313 {
311- return snake_case ($ method , "- " );
314+ $ replace = '$1-$2 ' ;
315+
316+ return strtolower (preg_replace ('/(.)([A-Z])/ ' , $ replace , $ method ));
312317 }
313318
314319 /**
You can’t perform that action at this time.
0 commit comments