100+ results results for '"$PATH"' (2910 ms)
88$tpl = new Smarty(); 89$tpl = initSmartyTpl($path, $tpl); 90Link.php https://gitlab.com/I-NOZex/quiz | PHP | 232 lines
127 $path = parse_url(substr($this->currentUri, strlen($baseUri)), PHP_URL_PATH); 128 $path = $this->canonicalizePath(substr($path, 0, strrpos($path, '/')).'/'.$uri); 129 129 130 return $baseUri.('' === $path || '/' !== $path[0] ? '/' : '').$path; 131 } 145 * 146 * @param string $path URI path 147 * 149 */ 150 protected function canonicalizePath($path) 151 { 151 { 152 if ('' === $path || '/' === $path) { 153 return $path;Logger.php https://gitlab.com/Erdrix/overviewCompanies | PHP | 186 lines
19 */ 20 private $path; 21 77 if ($this->path) { 78 $path = $this->path . DS . date('m-d-Y') . '.log'; 79 file_put_contents($path, 81 FILE_APPEND); 82 chmod($path, octdec('0' . $this->permission)); 83 }ConvertCurrency.php https://gitlab.com/CORP-RESELLER/codesamples-php | PHP | 156 lines
1<?php 2$path = '../../lib'; 3set_include_path(get_include_path() . PATH_SEPARATOR . $path);ZipStreamWrapper.php https://gitlab.com/team_fsn/fsn-php | PHP | 201 lines
75 * 76 * @param string $path resource name including scheme, e.g. 77 * @param string $mode only "r" is supported 81 */ 82 public function stream_open($path, $mode, $options, &$opened_path) { 83 // Check for mode 87 88 $pos = strrpos($path, '#'); 89 $url['host'] = substr($path, 6, $pos - 6); // 6: strlen('zip://') 89 $url['host'] = substr($path, 6, $pos - 6); // 6: strlen('zip://') 90 $url['fragment'] = substr($path, $pos + 1); 91lib-git-p4.sh https://gitlab.com/mayakarya/git | Shell | 246 lines
39 then 40 path=$(cygpath --windows "$path") 41 else 41 else 42 path=$(test-path-utils real_path "$path") 43 fi && 43 fi && 44 echo "$path" 45}DevController.php https://gitlab.com/brucealdridge/yii2 | PHP | 367 lines
351 } 352 $path = $dir . DIRECTORY_SEPARATOR . $file; 353 if (is_dir($path) && preg_match('/^yii2-(.*)$/', $file, $matches)) {Collection.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 461 lines
100 * Set path to this directory 101 * @param string $path - path to this directory 102 * @param bool $isRecursion - use or not recursion 104 */ 105 public function setPath($path, $isRecursion='') 106 { 141 * 142 * @param string $path - path to directory 143 * @return string - latest dir in the path 155 static public function getLastDir($path){ 156 if($path=='') $path = $this->getPath(); 157 $last = strrpos($path, "/"); 228 $this->getFilesPaths($paths); 229 return $paths; 230 }update.php https://gitlab.com/billyprice1/QuickBox | PHP | 196 lines
1<?php 2 $path = dirname(realpath($argv[0])); 3 if(chdir($path))TwigExtension.php https://gitlab.com/mohamedchiheb.bida/workshopFOS | PHP | 153 lines
62 // register user-configured paths 63 foreach ($config['paths'] as $path => $namespace) { 64 if (!$namespace) { 64 if (!$namespace) { 65 $twigFilesystemLoaderDefinition->addMethodCall('addPath', array($path)); 66 } else { 66 } else { 67 $twigFilesystemLoaderDefinition->addMethodCall('addPath', array($path, $namespace)); 68 }MemberRepository.php https://gitlab.com/tetrapak07/vimm-me | PHP | 194 lines
112 $memberId = $this->getThisMember()[0]['id']; 113 $path = 'uploads/' . $memberId . $param; 114 if (!File::exists($path)) { 114 if (!File::exists($path)) { 115 File::makeDirectory($path, $mode = 0777, true, true); 116 File::makeDirectory($path . '/tmp', $mode = 0777, true, true); 117 } 118 if (!File::exists($path)) { 119 return false; 120 } else { 121 return $path; 122 } 126 $memberId = $this->getThisMember()[0]['id']; 127 $path = 'uploads/' . $memberId . $param . '/tmp'; 128 if (!File::exists($path)) {flexvolume_test.go https://gitlab.com/github-cloud-corporation/kubernetes | Go | 417 lines
98 PATH=$2 99 /bin/mkdir -p $PATH 100 if [ $? -ne 0 ]; then 102 "status": "Failure", 103 "reason": "Failed to create $PATH" 104 }' 112 PATH=$2 113 /bin/rm -r $PATH 114 if [ $? -ne 0 ]; then 116 "status": "Failure", 117 "reason": "Failed to cleanup $PATH" 118 }'TemplateNameParserTest.php https://gitlab.com/cuza/Clinic_Recods | PHP | 89 lines
47 */ 48 public function testParse($name, $logicalName, $path, $ref) 49 { 53 $this->assertSame($logicalName, $template->getLogicalName()); 54 $this->assertSame($path, $template->getPath()); 55 }certificate_helper.rb https://gitlab.com/oyarzun/omnibus-gitlab | Ruby | 172 lines
126 unless rehash_status.zero? 127 LoggingHelper.warning("Rehashing of trusted certificates present in `/etc/gitlab/trusted-certs` failed. If on a FIPS-enabled machine, ensure `c_rehash` binary is available in $PATH.") 128 returnperl-5.14-no-sys-dirs.patch https://gitlab.com/Efraim/guix | Patch | 156 lines
12-paths='/bin /usr/bin /usr/local/bin /usr/ucb /usr/local /usr/lbin' 13-paths="$paths /opt/bin /opt/local/bin /opt/local /opt/lbin" 14-paths="$paths /usr/5bin /etc /usr/gnu/bin /usr/new /usr/new/bin /usr/nbin" 14-paths="$paths /usr/5bin /etc /usr/gnu/bin /usr/new /usr/new/bin /usr/nbin" 15-paths="$paths /opt/gnu/bin /opt/new /opt/new/bin /opt/nbin" 16-paths="$paths /sys5.3/bin /sys5.3/usr/bin /bsd4.3/bin /bsd4.3/usr/ucb" 16-paths="$paths /sys5.3/bin /sys5.3/usr/bin /bsd4.3/bin /bsd4.3/usr/ucb" 17-paths="$paths /bsd4.3/usr/bin /usr/bsd /bsd43/bin /opt/ansic/bin /usr/ccs/bin" 18-paths="$paths /etc /usr/lib /usr/ucblib /lib /usr/ccs/lib" 18-paths="$paths /etc /usr/lib /usr/ucblib /lib /usr/ccs/lib" 19-paths="$paths /sbin /usr/sbin /usr/libexec" 20-paths="$paths /system/gnu_library/bin" 22 23 for p in $paths 24 dokvm.sh https://gitlab.com/karrei/inel-imx6-kernel | Shell | 210 lines
34KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM 35PATH=${KVM}/bin:$PATH; export PATH 36builddir="${KVM}/b1"ImportMappingDoctrineCommand.php https://gitlab.com/matijabelec/bigpandadev | PHP | 137 lines
115 if ('annotation' === $type) { 116 $path = $destPath.'/'.str_replace('\\', '.', $className).'.php'; 117 } else { 117 } else { 118 $path = $destPath.'/'.str_replace('\\', '.', $className).'.orm.'.$type; 119 } 119 } 120 $output->writeln(sprintf(' > writing <comment>%s</comment>', $path)); 121 $code = $exporter->exportClassMetadata($class); 121 $code = $exporter->exportClassMetadata($class); 122 if (!is_dir($dir = dirname($path))) { 123 mkdir($dir, 0775, true); 124 } 125 file_put_contents($path, $code); 126 chmod($path, 0664);html.php https://gitlab.com/ricardosanchez/prueba | PHP | 224 lines
54 * @param JModel $model The model object. 55 * @param SplPriorityQueue $paths The paths queue. 56 * 58 */ 59 public function __construct(JModel $model, SplPriorityQueue $paths = null) 60 { 64 65 if (isset($paths)) 66 { 66 { 67 $paths->insert(JPATH_THEMES . '/' . $app->getTemplate() . '/html/' . $component . '/' . $this->getName(), 2); 68 } 69 70 parent::__construct($model, $paths); 71 }NestedArrayAccess.php https://gitlab.com/ricardosanchez/prueba | PHP | 190 lines
28 { 29 $path = explode($separator ?: $this->nestedSeparator, $name); 30 $current = $this->items; 30 $current = $this->items; 31 foreach ($path as $field) { 32 if (is_object($current) && isset($current->{$field})) { 55 { 56 $path = explode($separator ?: $this->nestedSeparator, $name); 57 $current = &$this->items; 57 $current = &$this->items; 58 foreach ($path as $field) { 59 if (is_object($current)) { 97 98 $path = explode($separator ?: $this->nestedSeparator, $name); 99 $var = array_pop($path);ups.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 187 lines
30 require_once (dirname ( __FILE__ ) . '/ups.class.php'); 31 $path = JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_pago' . DIRECTORY_SEPARATOR . 'helpers'; 32 require_once $path . '/ShippingCalculator.php'; 32 require_once $path . '/ShippingCalculator.php'; 33 require_once $path . '/helper.php'; 34 $ShippingCalculator = new ShippingCalculator;UnregisteredLocalFile.php https://gitlab.com/link233/bootmw | PHP | 227 lines
40 /** @var string */ 41 protected $path; 42 55 /** 56 * @param string $path Storage path 57 * @param string $mime 59 */ 60 static function newFromPath( $path, $mime ) { 61 return new self( false, false, $path, $mime ); 79 * @param FileRepo|bool $repo 80 * @param string|bool $path 81 * @param string|bool $mime 82 */ 83 function __construct( $title = false, $repo = false, $path = false, $mime = false ) { 84 if ( !( $title && $repo ) && !$path ) {elasticsearch.md https://gitlab.com/xhang/gitlab | Markdown | 246 lines
48 49this adds `gitlab-elasticsearch-indexer` to `$GOPATH/bin`, please make sure that is in your `$PATH`. After that GitLab will find it and you'll be able to enable it in the admin settings area. 50Cookie.php https://gitlab.com/x33n/respond | PHP | 513 lines
161 * 162 * @param string $path Path of the cookie 163 * 165 */ 166 public function setPath($path) 167 { 167 { 168 return $this->setData('path', $path); 169 } 408 * 409 * @param string $path Path to check against 410 * 412 */ 413 public function matchesPath($path) 414 {Fs.pm https://gitlab.com/kinwei/IFE-task7 | Perl | 503 lines
27 28=item SVN::Fs::contents_changed($root1, $path1, $root2, $path2) 29 31 32=item SVN::Fs::delete_fs($path) 33 52 53=item SVN::Fs::props_changed($root1, $path1, $root2, $path2) 54 218 219=item $root-E<gt>is_dir($path) 220 220 221True if there is a node at C<$path> which is a directory. 222Loader.php https://gitlab.com/florianocomercial/centreon | PHP | 321 lines
181 182 foreach (self::explodeIncludePath() as $path) { 183 if ($path == '.') { 188 } 189 $file = $path . '/' . $filename; 190 if (is_readable($file)) { 202 * 203 * @param string|null $path 204 * @return array 215 // intelligent in the approach. 216 $paths = preg_split('#:(?!//)#', $path); 217 } else { 217 } else { 218 $paths = explode(PATH_SEPARATOR, $path); 219 }html.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 394 lines
343 // Try to find a favicon by checking the template and root folder 344 $path = $directory . DS; 345 $dirs = array( $path, JPATH_BASE . DS ); 351 $path = str_replace( JPATH_BASE . DS, '', $dir ); 352 $path = str_replace( '\\', '/', $path ); 353 $this->addFavicon( JURI::base(true).'/'.$path . 'favicon.ico' );SourceTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 275 lines
165 /** 166 * @param string $path 167 * @param string $expected 169 */ 170 public function testGetContentType($path, $expected) 171 { 171 { 172 $this->assertEquals($expected, $this->object->getContentType($path)); 173 }class.php https://gitlab.com/alexprowars/bitrix | PHP | 326 lines
68 69 $pathTo = str_replace('#id#', $this->agreement->getId(), $this->arParams['PATH_TO_EDIT']); 70 if ($this->arParams['IFRAME']) 71 { 72 $pathTo .= strpos($pathTo, '?') === false ? '?' : '&'; 73 $pathTo .= 'IFRAME=Y'; 83 { 84 $pathTo .= strpos($pathTo, '?') === false ? '?' : '&'; 85 $pathTo .= 'IS_SAVED=Y'; 85 $pathTo .= 'IS_SAVED=Y'; 86 LocalRedirect($pathTo); 87 } 94 { 95 LocalRedirect($pathTo); 96 }PersonalInfoTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 300 lines
25 */ 26 protected $pathToDefaultTimezone = 'path/to/default/timezone'; 27S3.php https://gitlab.com/fabiorf/curso-zend1-aula1 | PHP | 332 lines
102 * 103 * @param string $path 104 * @param array $options 106 */ 107 public function fetchItem($path, $options = array()) 108 { 108 { 109 $fullPath = $this->_getFullPath($path, $options); 110 try { 150 * 151 * @param string $path 152 * @param array $options 154 */ 155 public function deleteItem($path, $options = array()) 156 {Common.ps1 https://gitlab.com/jslee1/azure-powershell | Powershell | 354 lines
19# 20# param [string] $path: The path to the transript file to read 21################################### 23{ 24 param([string] $path) 25 return Get-Content $path | 152# 153# param [string] $path: The relative path to the file 154# 158 param([string] $path) 159 $pathObj = Get-Item $path 160 return ($pathObj.FullName)config.php https://gitlab.com/e0/mautic | PHP | 358 lines
8//Note Mautic specific bundles so they can be applied as needed without having to specify them individually 9$buildBundles = function($namespace, $bundle) use ($container, $paths, $root, &$ormMappings, &$serializerMappings, &$ipLookupServices) { 10 $isPlugin = $isMautic = false; 14 $bundleBase = $bundle; 15 $relative = $paths['plugins'].'/'.$bundleBase; 16 } elseif (strpos($namespace, 'MauticAddon\\') !== false) { 23 $bundleBase = str_replace('Mautic', '', $bundle); 24 $relative = $paths['bundles'] . '/' . $bundleBase; 25 } 28 $baseNamespace = preg_replace('#\\\[^\\\]*$#', '', $namespace); 29 $directory = $paths['root'].'/'.$relative; 30 135 $key = $container->hasParameter('mautic.secret_key') ? $container->getParameter('mautic.secret_key') : uniqid(); 136 $sessionName = md5(md5($paths['local_config']).$key); 137}InstallController.php https://gitlab.com/billyprice1/phpservermon | PHP | 352 lines
36 * Full path to config file 37 * @var string $path_config 38 */ 38 */ 39 protected $path_config; 40 42 * Full path to old config file (2.0) 43 * @var string $path_config_old 44 */ 44 */ 45 protected $path_config_old; 46quotation_ticket.blade.php https://gitlab.com/laher01/factu40 | PHP | 286 lines
4 $invoice = $document->invoice; 5 //$path_style = app_path('CoreFacturalo'.DIRECTORY_SEPARATOR.'Templates'.DIRECTORY_SEPARATOR.'pdf'.DIRECTORY_SEPARATOR.'style.css'); 6 $accounts = \App\Models\Tenant\BankAccount::all(); 13 {{--<title>{{ $tittle }}</title>--}} 14 {{--<link href="{{ $path_style }}" rel="stylesheet" />--}} 15</head>timeserenu_nord.pl https://gitlab.com/gpskings/gpslibrary | Perl | 348 lines
30my ($year,$month,$day, $doy,$long,$lat,$height,$station,$N,$sigmamed,$ressq,$oversigma,$sc,$unctemp,$ind); 31my ($filbase, $path,$suff,$psfileb,$psend,$psfile ); 32my ($start, $stop,$pdata,$coeff, $coeffuns, $label,$title,$nuvvel); 46 47 ($filbase, $path,$suff ) = &fileparse($ARG,qw{enu.disp}); 48 $title = $filbase; #Station nameFtp.php https://gitlab.com/pthapa81/MeroSaaman-1.0 | PHP | 396 lines
151 */ 152 public function write($path, $contents, Config $config) 153 { 153 { 154 $mimetype = Util::guessMimeType($path, $contents); 155 $config = Util::ensureConfig($config); 158 rewind($stream); 159 $result = $this->writeStream($path, $stream, $config); 160 $result = fclose($stream) && $result; 166 if ($visibility = $config->get('visibility')) { 167 $this->setVisibility($path, $visibility); 168 } 175 */ 176 public function writeStream($path, $resource, Config $config) 177 {category.php https://gitlab.com/hazelnuts23/unitedfoodstuff | PHP | 196 lines
79 if (isset($this->request->get['path'])) { 80 $path = (int)$this->request->get['path']; 81 } else { 81 } else { 82 $path = 0; 83 } 84 $data['heading_title'] = 'PRODUCTS'; 85 $data['path'] = $path; 86 $data['name'] = 'All Products'; 86 $data['name'] = 'All Products'; 87 $data['href'] = $this->url->link('product/category', 'path=' . $path); 88 98 if (isset($this->request->get['path'])) { 99 $path = (int)$this->request->get['path']; 100 } else {UrlGenerator.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 496 lines
86 * 87 * @param string $path 88 * @param mixed $extra 96 // convenient since developers do not always have to check if it's valid. 97 if ($this->isValidUrl($path)) return $path; 98 133 { 134 if ($this->isValidUrl($path)) return $path; 135 248 * 249 * @param string $path 250 * @param array $parameters 471 { 472 return trim($root.'/'.trim($path.'/'.$tail, '/'), '/'); 473 }find_copyrights.pl https://gitlab.com/brian0218/rk3188_rk3066_r-box_android4.4.2_sdk | Perl | 161 lines
19while (@ARGV) { 20 my $path = shift @ARGV; 21 push @find_args, qw'-not ( -path', "*/$path/*", qw'-prune )'Driver.php https://gitlab.com/bipsahu/ptcs | PHP | 227 lines
56 // check application path first 57 foreach (get_instance()->load->get_package_paths(TRUE) as $path) 58 { 61 { 62 $filepath = $path.'libraries/'.$lib_name.'/drivers/'.$class.'.php'; 63menutypes.php https://gitlab.com/ppapadatis/Videolearn | PHP | 381 lines
187 // Get the views for this component. 188 $path = JPATH_SITE.'/components/'.$component.'/views'; 189 189 190 if (JFolder::exists($path)) { 191 $views = JFolder::folders($path); 201 // Determine if a metadata file exists for the view. 202 $file = $path.'/'.$view.'/metadata.xml'; 203 274 // Get the layouts from the view folder. 275 $path = JPATH_SITE.'/components/'.$component.'/views/'.$view.'/tmpl'; 276 if (JFolder::exists($path)) { 276 if (JFolder::exists($path)) { 277 $layouts = array_merge($layouts, JFolder::files($path, '.xml$', false, true)); 278 }file.php https://gitlab.com/ppapadatis/Videolearn | PHP | 302 lines
285 286 $pathSource = hwdMediaShareFiles::getPath($foldersSource, $filenameSource, $extSource); 287 288 jimport( 'joomla.filesystem.file' ); 289 if (JFile::exists($pathSource)) JFile::delete($pathSource); 290 }ImageEditor.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 446 lines
241 242 $path = Files::fixPath($pathinfo['dirname']); 243 $file = Files::escape($pathinfo['basename']); 280 281 $path = substr($pathA, 0, $index); 282 Return Files::fixPath($path).$file; 320 $pathinfo = pathinfo($file); 321 $path = Files::fixPath($pathinfo['dirname']); 322 $imgType = $this->getImageType($file); 331 332 $this->cleanUp($path,$pathinfo['basename']); 333 343 { 344 $path = Files::fixPath($path); 345Module.php https://gitlab.com/devtoannh/cafe | PHP | 284 lines
150 if (!$partial) { 151 $path = trim($path, self::URI_DELIMITER); 152 } else { 156 if ($path != '') { 157 $path = explode(self::URI_DELIMITER, $path); 158 163 164 if (count($path) && !empty($path[0])) { 165 $values[$this->_controllerKey] = array_shift($path); 167 168 if (count($path) && !empty($path[0])) { 169 $values[$this->_actionKey] = array_shift($path); 174 $key = urldecode($path[$i]); 175 $val = isset($path[$i + 1]) ? urldecode($path[$i + 1]) : null; 176 $params[$key] = (isset($params[$key]) ? (array_merge((array) $params[$key], array($val))): $val);gantryformhelper.class.php https://gitlab.com/ricardosanchez/prueba | PHP | 309 lines
144 // Derive the new path. 145 $path = $paths[$i] . '/' . strtolower(substr($type, 0, $pos)); 146 147 // If the path does not exist, add it. 148 if (!in_array($path, $paths)) { 149 array_unshift($paths, $path); 221 foreach ($new as $path) { 222 if (!in_array($path, $paths)) { 223 array_unshift($paths, trim($path)); 251 // traversal attempts on the local file system. 252 $path = realpath($path); // needed for substr() later 253 $fullname = realpath($fullname); 259 // traversal attempts. 260 if (file_exists($fullname) && substr($fullname, 0, strlen($path)) == $path) { 261 return $fullname;SessionManager.php https://gitlab.com/rmoshiur81/Larave-Grading | PHP | 212 lines
59 { 60 $path = $this->app['config']['session.files']; 61 63 64 return $this->buildSession(new FileSessionHandler($this->app['files'], $path, $lifetime)); 65 }CMB2_Utils.php https://gitlab.com/hunt9310/ras | PHP | 188 lines
158 */ 159 public function url( $path = '' ) { 160 if ( $this->url ) { 160 if ( $this->url ) { 161 return $this->url . $path; 162 } 184 185 return $this->url . $path; 186 }PropertyPathTest.php https://gitlab.com/martinstti/silex-microframework-rest | PHP | 203 lines
19 { 20 $path = new PropertyPath('reference.traversable[index].property'); 21 21 22 $this->assertEquals('reference.traversable[index].property', $path->__toString()); 23 } 57 */ 58 public function testUnexpectedCharacters($path) 59 { 59 { 60 new PropertyPath($path); 61 }Category.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 183 lines
69 */ 70 $pathIds = array_reverse($this->_appliedCategory->getPathIds()); 71 $curCategoryId = $this->getLayer()->getCurrentCategory()->getId(); 71 $curCategoryId = $this->getLayer()->getCurrentCategory()->getId(); 72 if (isset($pathIds[1]) && $pathIds[1] != $curCategoryId) { 73 return $pathIds[1];tar.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 189 lines
106 $buffer = $this->_metadata[$i]['data']; 107 $path = JPath::clean($destination.DS.$this->_metadata[$i]['name']); 108 // Make sure the destination folder exists 108 // Make sure the destination folder exists 109 if (!JFolder::create(dirname($path))) 110 { 113 } 114 if (JFile::write($path, $buffer) === false) 115 {MethodsTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 149 lines
114 /** 115 * @param string $path 116 * @return \RegexIterator 117 */ 118 private function collectFiles($path) 119 { 122 | \FilesystemIterator::SKIP_DOTS; 123 $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path, $flags)); 124 139 $ds = DIRECTORY_SEPARATOR; 140 $path = __DIR__ . $ds . str_repeat('..' . $ds, 5) . 'Magento'; 141 141 142 foreach ($this->collectFiles($path) as $file) { 143 $config = include $file->getPathname();converterhelper_test.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 145 lines
50 $descriptions = array(); 51 $path = testable_convert_helper::choose_conversion_path(backup::FORMAT_MOODLE1, $descriptions); 52 $this->assertEquals($path, array()); 68 ); 69 $path = testable_convert_helper::choose_conversion_path(backup::FORMAT_MOODLE1, $descriptions); 70 $this->assertEquals($path, array()); 71 72 $path = testable_convert_helper::choose_conversion_path('some_other_custom_format', $descriptions); 73 $this->assertEquals($path, array()); 75 // single step conversion 76 $path = testable_convert_helper::choose_conversion_path('yet_another_crazy_custom_format', $descriptions); 77 $this->assertEquals($path, array('converter')); 79 // no conversion needed - this is supposed to be detected by the caller 80 $path = testable_convert_helper::choose_conversion_path(backup::FORMAT_MOODLE, $descriptions); 81 $this->assertEquals($path, array());Config.php https://gitlab.com/strongpapazola/gempabmkg | PHP | 380 lines
131 132 foreach ($this->_config_paths as $path) 133 { 135 { 136 $file_path = $path.'config/'.$location.'.php'; 137 if (in_array($file_path, $this->is_loaded, TRUE))MigrateUpgradeFormStepsTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 147 lines
133 protected function assertFirstForm(WebAssert $session, string $expected): void { 134 $paths = [ 135 '', 140 ]; 141 foreach ($paths as $path) { 142 $this->drupalGet('/upgrade' . $path);MenuUiJavascriptTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 163 lines
114 * Optional parent menu link id. 115 * @param string $path 116 * The path to enter on the form. Defaults to the front page. 128 */ 129 protected function addMenuLink($parent = '', $path = '/', $menu_id = 'tools', $expanded = FALSE, $weight = '0') { 130 // View add menu link page. 134 $edit = [ 135 'link[0][uri]' => $path, 136 'title[0][value]' => $title,CookieJar.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 406 lines
130 $domain = $cookie->getDomain(); 131 $path = $cookie->getPath(); 132 if (! isset($this->cookies[$domain])) $this->cookies[$domain] = array(); 132 if (! isset($this->cookies[$domain])) $this->cookies[$domain] = array(); 133 if (! isset($this->cookies[$domain][$path])) $this->cookies[$domain][$path] = array(); 134 $this->cookies[$domain][$path][$cookie->getName()] = $cookie; 237 $path = $uri->getPath(); 238 $path = substr($path, 0, strrpos($path, '/')); 239 if (! $path) $path = '/'; 240 241 if (isset($this->cookies[$uri->getHost()][$path][$cookie_name])) { 242 $cookie = $this->cookies[$uri->getHost()][$path][$cookie_name]; 325 * @param array $dom_array 326 * @param string $path 327 * @return arrayclass.wpcom-json-api-site-settings-endpoint.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 349 lines
15 // POST /sites/%s/settings 16 function callback( $path = '', $blog_id = 0 ) { 17 $blog_id = $this->api->switch_to_blog_and_validate_user( $this->api->get_blog_id( $blog_id ) );ModelDefinition.php https://gitlab.com/fsavina/finncds-temporary | PHP | 436 lines
423 { 424 $path = $this->get ( 'storage.file' ); 425 if ( is_array ( $path ) ) 426 { 427 $path = Arr::get ( $path, 'path' ); 428 } 428 } 429 return $path ?: "finnegan/{$this->name}.json"; 430 }Registry.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 364 lines
207 foreach ((array)$entries as $entry) { 208 $path = $packageDir. DS .$entry; 209 $info = pathinfo($path); 209 $info = pathinfo($path); 210 if ($entry == '.' || $entry == '..' || is_dir($path) || $info['extension'] != 'xml') { 211 continue; 213 214 if (is_readable($path)) { 215 $data = file_get_contents($path);Css2Xpath.php https://gitlab.com/fabiorf/curso-zend1-aula1 | PHP | 169 lines
39 { 40 $path = (string) $path; 41 if (strstr($path, ',')) { 41 if (strstr($path, ',')) { 42 $paths = explode(',', $path); 43 $expressions = array(); 61 if (0 === strpos($pathSegment, '[contains(')) { 62 $paths[0] .= '*' . ltrim($pathSegment, '*'); 63 } else { 70 $paths[$key] .= '//*' . ltrim($pathSegment, '*'); 71 $paths[] = $xpath . $pathSegment; 72 } 74 foreach ($paths as $key => $xpath) { 75 $paths[$key] .= '//' . $pathSegment; 76 }PluginList.php https://gitlab.com/gideonmarked/yovelife | PHP | 206 lines
62 $pluginCodeObj = new PluginCode($pluginCode); 63 $path = $pluginCodeObj->toPluginInformationFilePath(); 64 if (!File::isFile(File::symbolizePath($path))) {ImportModel.php https://gitlab.com/gideonmarked/wellmarketing | PHP | 211 lines
68 $sessionKey = array_get($options, 'sessionKey'); 69 $path = $this->getImportFilePath($sessionKey); 70 $data = $this->processImportData($path, $matches, $options);BaseStringHelper.php https://gitlab.com/brucealdridge/yii2 | PHP | 271 lines
56 * 57 * @param string $path A path string. 58 * @param string $suffix If the name component ends in suffix this will also be cut off. 61 */ 62 public static function basename($path, $suffix = '') 63 { 64 if (($len = mb_strlen($suffix)) > 0 && mb_substr($path, -$len) == $suffix) { 65 $path = mb_substr($path, 0, -$len); 66 } 66 } 67 $path = rtrim(str_replace('\\', '/', $path), '/\\'); 68 if (($pos = mb_strrpos($path, '/')) !== false) { 68 if (($pos = mb_strrpos($path, '/')) !== false) { 69 return mb_substr($path, $pos + 1); 70 }ConfigListener.php https://gitlab.com/yousafsyed/easternglamor | PHP | 404 lines
143 foreach ($this->paths as $path) { 144 $this->addConfigByPath($path['path'], $path['type']); 145 } 283 if ($paths instanceof Traversable) { 284 $paths = ArrayUtils::iteratorToArray($paths); 285 } 299 300 foreach ($paths as $path) { 301 $this->addConfigPath($path, $type); 307 * 308 * @param string $path 309 * @param string $type 368 case self::STATIC_PATH: 369 $this->addConfig($path, ConfigFactory::fromFile($path)); 370 break;configuration.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 408 lines
102 $ns = $this->registry[$namespace]['data']; 103 $pathNodes = $count - 1; 104 104 105 for ($i = 1; $i < $pathNodes; $i ++) { 106 if((isset($ns->$nodes[$i]))) $ns =& $ns->$nodes[$i]; 164 165 $pathNodes = $count - 1; 166 166 167 if ($pathNodes < 0) { 168 $pathNodes = 0; 170 171 for ($i = 0; $i < $pathNodes; $i ++) 172 {Start-CodeCoverageRun.ps1 https://gitlab.com/unofficial-mirrors/PowerShell | Powershell | 379 lines
43 param( 44 [string] $Path, 45 [string] $DestinationPath 48 $Script:fileTable = [ordered]@{} 49 $Script:covData = [xml] (Get-Content -ReadCount 0 -Raw -Path $Path) 50 $totalCoverage = [PSCustomObject]::new() 89 [string] $Message, 90 $Path = "$env:Temp\CodeCoverageRunLogs.txt" 91 ) 93 $message = "{0:d} - {0:t} : {1}" -f ([datetime]::now),$message 94 Add-Content -Path $Path -Value $Message -PassThru -Force 95}Client.php https://gitlab.com/pr0055/symfonypizza | PHP | 204 lines
175 176 $path = str_replace("'", "\\'", $r->getFileName()); 177 192} 193require_once '$path'; 194class-wpseo-image-utils.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 485 lines
91 * @type string $alt Image's alt text. 92 * @type string $path Path of image. 93 * @type int $width Width of image. 223 * 224 * @param string $path The relative file path. 225 * 227 */ 228 public static function get_absolute_path( $path ) { 229 static $uploads; 235 // Add the uploads basedir if the path does not start with it. 236 if ( empty( $uploads['error'] ) && strpos( $path, $uploads['basedir'] ) !== 0 ) { 237 return $uploads['basedir'] . DIRECTORY_SEPARATOR . ltrim( $path, DIRECTORY_SEPARATOR ); 239 240 return $path; 241 }config.yaml https://gitlab.com/my-application.bjoernbartels.earth/application-base | YAML | 431 lines
173 set: 174 - '$path_info $fastcgi_path_info' 175 proxy: ''CookieJar.php https://gitlab.com/x33n/respond | PHP | 248 lines
86 87 public function clear($domain = null, $path = null, $name = null) 88 { 91 return; 92 } elseif (!$path) { 93 $this->cookies = array_filter( 94 $this->cookies, 95 function (SetCookie $cookie) use ($path, $domain) { 96 return !$cookie->matchesDomain($domain); 101 $this->cookies, 102 function (SetCookie $cookie) use ($path, $domain) { 103 return !($cookie->matchesPath($path) && 109 $this->cookies, 110 function (SetCookie $cookie) use ($path, $domain, $name) { 111 return !($cookie->getName() == $name &&t7407-submodule-foreach.sh https://gitlab.com/mayakarya/git | Shell | 382 lines
75 git submodule update --init -- sub1 sub3 && 76 git submodule foreach "echo \$toplevel-\$name-\$path-\$sha1" > ../actual && 77 git config foo.bar zar && 212 cd clone2 && 213 git submodule foreach -q --recursive "echo \$name-\$path" > ../actual 214 ) &&recaptchalib.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 277 lines
61 * @param string $host 62 * @param string $path 63 * @param array $data 66 */ 67function _recaptcha_http_post($host, $path, $data, $port = 80) { 68 70 71 $http_request = "POST $path HTTP/1.0\r\n"; 72 $http_request .= "Host: $host\r\n";UrlGenerator.php https://gitlab.com/puntodos/ean-landings | PHP | 327 lines
316 $targetDirs[] = $targetFile; 317 $path = str_repeat('../', count($sourceDirs)).implode('/', $targetDirs); 318 322 // (see http://tools.ietf.org/html/rfc3986#section-4.2). 323 return '' === $path || '/' === $path[0] 324 || false !== ($colonPos = strpos($path, ':')) && ($colonPos < ($slashPos = strpos($path, '/')) || false === $slashPos) 324 || false !== ($colonPos = strpos($path, ':')) && ($colonPos < ($slashPos = strpos($path, '/')) || false === $slashPos) 325 ? "./$path" : $path; 326 }quotation_a4.blade.php https://gitlab.com/laher01/factu40 | PHP | 334 lines
3 $customer = $document->customer; 4 //$path_style = app_path('CoreFacturalo'.DIRECTORY_SEPARATOR.'Templates'.DIRECTORY_SEPARATOR.'pdf'.DIRECTORY_SEPARATOR.'style.css'); 5 $accounts = \App\Models\Tenant\BankAccount::all(); 10 {{--<title>{{ $tittle }}</title>--}} 11 {{--<link href="{{ $path_style }}" rel="stylesheet" />--}} 12</head>minileven.php https://gitlab.com/Gashler/sg | PHP | 290 lines
101 if (!empty($url['path'])) { 102 $path = $url['path']; 103 } 104 else { 105 $path = '/'; 106 } 113 , time() + 300000 114 , $path 115 , $domain 126 , time() + 300000 127 , $path 128 , $domainsendpr.tcl https://gitlab.com/OpenSourceMirror/sourcenav | TCL | 348 lines
40 } else { 41 set _site(sendpr) [file join $Paths(bindir) send-pr] 42 # If it doesn't exist, try the user's path. This is a hack forObject.php https://github.com/Polansk/magento-pt_br.git | PHP | 262 lines
15 * 16 * @param string $path - path to directory 17 * @return none 18 */ 19 public function __construct($path) 20 { 20 { 21 parent::__construct($path); 22 $this->_path=$path; 22 $this->_path=$path; 23 $this->_filename=basename($path); 24 } 51 * 52 * @param array &$paths - array of paths 53 * @return nonePostgreSqlSchemaManager.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 410 lines
95 $names = $this->getSchemaNames(); 96 $paths = $this->getSchemaSearchPaths(); 97 97 98 $this->existingSchemaPaths = array_filter($paths, function ($v) use ($names) { 99 return in_array($v, $names);view.php https://gitlab.com/ppapadatis/Videolearn | PHP | 113 lines
45 46 unset($path, $title, $link); 47 // creating slide path 47 // creating slide path 48 $path = $uri->root().'modules/mod_image_show_gk4/cache/'.GKIS_Coffe_Image::translateName($this->config['image_show_data'][$i]->image, $this->config['module_id']); 49 60 61 <div class="gkIsSlide" style="z-index: <?php echo $i+1; ?>;" title="<?php echo $title; ?>"><a href="<?php echo $path; ?>">src</a><a href="<?php echo $link; ?>">link</a></div> 62 <?php endif; ?>Compiler.php https://gitlab.com/campus-academy/krowkaramel | PHP | 273 lines
125 $path = apply_filters('loco_compile_single_json', '', $pofile->getPath(), $domain ); 126 if( is_string($path) && '' !== $path ){ 127 $refs = $po->splitRefs( $this->getJsExtMap() ); 128 if( array_key_exists('js',$refs) && $refs['js'] instanceof Loco_gettext_Data ){ 129 $jsonfile = new Loco_fs_File($path); 130 try { 200 if( Loco_data_Settings::get()->jed_clean ){ 201 foreach( $this->files->getJsons() as $path ){ 202 $jsonfile = new Loco_fs_File($path);gcc-defs.exp https://gitlab.com/4144/gcc | Expect | 405 lines
207 208 if {![catch {open $path {RDWR CREAT EXCL} 0600} fd]} { 209 close $fdUrlMatcher.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 251 lines
87 */ 88 public function match($pathinfo) 89 { 91 92 if ($ret = $this->matchCollection(rawurldecode($pathinfo), $this->routes)) { 93 return $ret; 97 ? new MethodNotAllowedException(array_unique($this->allow)) 98 : new ResourceNotFoundException(sprintf('No routes found for "%s".', $pathinfo)); 99 } 122 * 123 * @param string $pathinfo The path info to be parsed 124 * @param RouteCollection $routes The set of routes 130 */ 131 protected function matchCollection($pathinfo, RouteCollection $routes) 132 {AppNameCommand.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 329 lines
109 * 110 * @param string $path 111 * @return void 112 */ 113 protected function replaceNamespace($path) 114 { 124 125 $this->replaceIn($path, $search, $replace); 126 } 226 { 227 if ($this->files->exists($path = $this->getPhpSpecConfigPath())) { 228 $this->replaceIn($path, $this->currentRoot, $this->argument('name')); 253 { 254 $this->files->put($path, str_replace($search, $replace, $this->files->get($path))); 255 }Stream.php https://gitlab.com/ricardosanchez/prueba | PHP | 239 lines
42 43 $this->handle = ($options & STREAM_REPORT_ERRORS) ? fopen($path, $mode) : @fopen($path, $mode); 44 151 152 return ($options & STREAM_REPORT_ERRORS) ? mkdir($path, $mode, $recursive) : @mkdir($path, $mode, $recursive); 153 } 162 163 return ($options & STREAM_REPORT_ERRORS) ? rmdir($path) : @rmdir($path); 164 } 175 // exist. This is consistent with PHP's plain filesystem stream wrapper. 176 return ($flags & STREAM_URL_STAT_QUIET || !file_exists($path)) ? @stat($path) : stat($path); 177 } 214 215 if ($mode == null || !$path || file_exists($path)) { 216 return $path;view.php https://gitlab.com/ricardosanchez/prueba | PHP | 282 lines
93 { 94 $path = array_reverse($viewobj->path); 95 $start = true; 97 98 foreach ($path as $element) 99 {ax_boost_base.m4 https://gitlab.com/Red54/airprobe-hopping | m4 | 334 lines
159 fi 160 for ac_boost_path in $path_list ; do 161 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; thenviewdiff.sh https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | Shell | 183 lines
61if test "x${PIX}" = "x" ; then 62 if test -f "$path_to_this/../pix/sphflake.pix" ; then 63 echo ...found .pix image files in $path_to_this/../pix 63 echo ...found .pix image files in $path_to_this/../pix 64 PIX="$path_to_this/../pix" 65 elif test -f "$path_to_this/sphflake.pix" ; then 65 elif test -f "$path_to_this/sphflake.pix" ; then 66 echo ...found .pix image files in $path_to_this 67 PIX="$path_to_this" 67 PIX="$path_to_this" 68 elif test -f "$path_to_this/../share/brlcad/pix/sphflake.pix" ; then 69 echo ...found .pix image files in $path_to_this/../share/brlcad/pix 69 echo ...found .pix image files in $path_to_this/../share/brlcad/pix 70 PIX="$path_to_this/../share/brlcad/pix" 71 fiPage.php https://bitbucket.org/acidel/buykoala.git | PHP | 168 lines
87 88 protected function _buildMenuArray(Varien_Simplexml_Element $parent=null, $path='', $level=0) 89 { 113 $menuArr['level'] = $level; 114 $menuArr['path'] = $path . $childName; 115 116 if ($child->children) { 117 $menuArr['children'] = $this->_buildMenuArray($child->children, $path.$childName.'/', $level+1); 118 }sale_note_ticket_58.blade.php https://gitlab.com/laher01/factu40 | PHP | 275 lines
4 $invoice = $document->invoice; 5 //$path_style = app_path('CoreFacturalo'.DIRECTORY_SEPARATOR.'Templates'.DIRECTORY_SEPARATOR.'pdf'.DIRECTORY_SEPARATOR.'style.css'); 6 $tittle = $document->series.'-'.str_pad($document->number, 8, '0', STR_PAD_LEFT); 13 {{--<title>{{ $tittle }}</title>--}} 14 {{--<link href="{{ $path_style }}" rel="stylesheet" />--}} 15</head>content_intro_m.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 320 lines
31<? 32$path = "../images/content"; 33$pathdb = "images/content"; 65 $extsmall=getFileExtention($_FILES['txtImage']['name']); 66 if (makeUpload($_FILES['txtImage'],"$path/".$actConfig."_s".$oldid.$extsmall)){ 67 @chmod("$path/".$actConfig."_s".$oldid.$extsmall, 0777); 67 @chmod("$path/".$actConfig."_s".$oldid.$extsmall, 0777); 68 $sqlUpdateField = " image='$pathdb/".$actConfig."_s".$oldid.$extsmall."' "; 69 } 76 $extlarge=getFileExtention($_FILES['txtImageLarge']['name']); 77 if (makeUpload($_FILES['txtImageLarge'],"$path/".$actConfig."_l".$oldid.$extlarge)){ 78 @chmod("$path/".$actConfig."_l".$oldid.$extlarge, 0777); 79 if($sqlUpdateField != "") $sqlUpdateField .= ","; 80 $sqlUpdateField .= " image_large='$pathdb/".$actConfig."_l".$oldid.$extlarge."' "; 81 }UserAdminLanguageTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 204 lines
57 $this->setLanguageNegotiation(); 58 $path = 'user/' . $this->adminUser->id() . '/edit'; 59 $this->drupalGet($path); 69 $this->addCustomLanguage(); 70 $path = 'user/' . $this->adminUser->id() . '/edit'; 71 72 // Checks with user administration pages language negotiation disabled. 73 $this->drupalGet($path); 74 // Ensure administration pages language settings widget is not available. 78 $this->setLanguageNegotiation(); 79 $this->drupalGet($path); 80 // Ensure administration pages language settings widget is available. 99 $this->setLanguageNegotiation(); 100 $path = 'user/' . $this->adminUser->id() . '/edit'; 101 $this->drupalGet($path);cmpVERSION.pl https://gitlab.com/storedmirrors/perl5 | Perl | 228 lines
122 # on the directory name: 123 my ($path) = shift =~ m!^(.*)/!; 124 my ($last) = $path =~ m!([^-/]+)\z!; 124 my ($last) = $path =~ m!([^-/]+)\z!; 125 return "$path/$last"; 126 }, 129 # look for a .pm in lib/ based on that: 130 my ($path) = shift =~ m!^(.*)/!; 131 my ($last) = $path =~ m!([^/]+)\z!; 133 $last =~ tr !-!/!; 134 return "$path/lib/$last"; 135 }) {class.wpcom-json-api-list-comments-endpoint.php https://gitlab.com/hunt9310/ras | PHP | 270 lines
103 // /sites/%s/comments/%d/replies/ -> $blog_id, $comment_id 104 function callback( $path = '', $blog_id = 0, $object_id = 0 ) { 105 $blog_id = $this->api->switch_to_blog_and_validate_user( $this->api->get_blog_id( $blog_id ) ); 117 118 if ( false !== strpos( $path, '/posts/' ) ) { 119 // We're looking for comments of a particular postStorage.php https://gitlab.com/yousafsyed/easternglamor | PHP | 316 lines
114 { 115 $path = str_replace($this->getStorageRoot(), '', $path); 116 return $this->urlEncoder->encode($path); 128 if (!strstr($path, $this->getStorageRoot())) { 129 $path = $this->getStorageRoot() . $path; 130 } 208 $nodes = explode('/', trim($node, '/')); 209 $pathPieces = array_merge($pathPieces, $nodes); 210 } 225 if ($path && $path !== self::NODE_ROOT) { 226 $path = $this->convertIdToPath($path); 227 227 228 if ($this->mediaDirectoryWrite->isDirectory($path) && 0 === strpos($path, $currentPath)) { 229 $currentPath = $this->mediaDirectoryWrite->getRelativePath($path);application.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 377 lines
358 $options = array(); 359 $pathway =& parent::getPathway('site', $options); 360 return $pathway;Dockerfile https://gitlab.com/peter.tiedemann/thrift | Dockerfile | 191 lines
106RUN curl -sSL https://storage.googleapis.com/golang/go1.4.3.linux-amd64.tar.gz | tar -C /usr/local/ -xz 107ENV PATH /usr/local/go/bin:$PATH 108 166 apt-get update && apt-get install -y dart 167ENV PATH /usr/lib/dart/bin:$PATH 168socserv.ajax.php https://gitlab.com/Rad1calDreamer/honey | PHP | 130 lines
45 if($tooltipPathToUser) 46 $pathToUser = str_replace("#user_id#", $userId, $tooltipPathToUser)."edit/?current_fieldset=SOCSERV#soc-serv-title-id"; 47 else 47 else 48 $pathToUser = "/company/personal/user/$userId/edit/?current_fieldset=SOCSERV#soc-serv-title-id"; 49 $arResult["SETUP_MESSAGE"] = GetMessage(("JS_CORE_SS_SETUP_ACCOUNT"), array("#class#" => "class=\"bx-ss-soc-serv-setup-link\"", "#link#" => $pathToUser));RouteCompilerTest.php https://gitlab.com/ealexis.t/trends | PHP | 267 lines
199 */ 200 public function testCompileWithHost($name, $arguments, $prefix, $regex, $variables, $pathVariables, $tokens, $hostRegex, $hostVariables, $hostTokens) 201 { 208 $this->assertEquals($variables, $compiled->getVariables(), $name.' (variables)'); 209 $this->assertEquals($pathVariables, $compiled->getPathVariables(), $name.' (path variables)'); 210 $this->assertEquals($tokens, $compiled->getTokens(), $name.' (tokens)');Export-Counter.Tests.ps1 https://gitlab.com/unofficial-mirrors/PowerShell | Powershell | 229 lines
50 $filePath = "" 51 $pathParam = "" 52 $formatParam = "" 70 { 71 $pathParam = $filePath 72 } 74 { 75 $pathParam = "-Path $filePath" 76 } 76 } 77 $cmd = "$cmdletName $pathParam $formatParam -InputObject `$counterValues $($testCase.Parameters) -ErrorAction Stop" 78 # Use $cmd to debug a test failurepantheon-cache.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 437 lines
43 */ 44 public $paths = array(); 45 355 public function enqueue_urls( $urls ) { 356 $paths = array(); 357 $urls = array_filter( (array) $urls, 'is_string' ); 360 $parsed = parse_url( $full_url ); 361 $path = $parsed['path'] . $parsed['query']; 362 if ( '' == $path ) { 364 } 365 $path = '^' . preg_quote( $path ) . '$'; 366 $paths[] = $path; 368 369 $this->paths = array_merge( $this->paths, $paths ); 370 }class-wp-filesystem-ftpext.php https://gitlab.com/morganestes/wordpress-develop | PHP | 594 lines
411 /** 412 * @param string $path 413 * @param mixed $chmod 418 public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) { 419 $path = untrailingslashit( $path ); 420 if ( empty( $path ) ) { 431 /** 432 * @param string $path 433 * @param bool $recursive 435 */ 436 public function rmdir( $path, $recursive = false ) { 437 return $this->delete( $path, $recursive ); 533 $limit_file = basename( $path ); 534 $path = dirname( $path ) . '/'; 535 } else {tempmanager.php https://gitlab.com/wuhang2003/core | PHP | 277 lines
127 // Build a name without postfix 128 $path = $this->buildFileNameWithSuffix($uniqueFileName . '-folder', $postFix); 129 mkdir($path, 0700); 129 mkdir($path, 0700); 130 $this->current[] = $path; 131 131 132 return $path . '/'; 133 } else { 190 if (substr($file, 0, 7) === self::TMP_PREFIX) { 191 $path = $this->tmpBaseDir . '/' . $file; 192 $mtime = filemtime($path); 193 if ($mtime < $cutOfTime) { 194 $files[] = $path; 195 }AdminStoreCommander.php https://gitlab.com/ptisky/API_prestashop | PHP | 183 lines
67 68 $path = ''; 69 $domains = null;