Skip to content

Commit 08d4670

Browse files
author
Ethan Federman
committed
Set mockery/mockery to version 0.9.5 because this is the max version that is compatible with php 5.3. Removed the illuminate/support requirement and changed the snake_case call to use the same code without requiring the entire package.
1 parent 28e0c22 commit 08d4670

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
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": {

src/CanGelis/PDF/PDF.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)