@@ 48-51 (lines=4) @@ | ||
45 | ||
46 | // Format to CI Standards |
|
47 | $name = str_replace('.php', '', strtolower( $name ) ); |
|
48 | if (substr( $name, -4) == 'seed') |
|
49 | { |
|
50 | $name = substr($name, 0, strlen($name) - 4); |
|
51 | } |
|
52 | $name = ucfirst($name) .'Seeder'; |
|
53 | ||
54 | $data = [ |
@@ 197-200 (lines=4) @@ | ||
194 | $fullpath = str_replace( '//', '/', "{$location}{$module}/{$base}{$subpath}" ); |
|
195 | ||
196 | // If it starts with a '/' assume it's a full path already |
|
197 | if ( substr( $path, 0, 1 ) == '/' && strlen( $path ) > 1 ) |
|
198 | { |
|
199 | $fullpath = $path; |
|
200 | } |
|
201 | ||
202 | // Libraries are a special consideration since they are |
|
203 | // frequently ucfirst. |