100+ results for 'php is_int'

Not the results you expected?

TraceableEventDispatcher.php (https://github.com/deviantintegral/symfony.git) PHP · 335 lines

1 <?php

2

3 /*

315 private function sortListenersByPriority($a, $b)

316 {

317 if (is_int($a['priority']) && !is_int($b['priority'])) {

318 return 1;

319 }

320

321 if (!is_int($a['priority']) && is_int($b['priority'])) {

322 return -1;

323 }

array-data-defs.h (https://github.com/tstarling/hiphop-php.git) C Header · 357 lines

1 /*

2 +----------------------------------------------------------------------+

3 | HipHop for PHP |

4 +----------------------------------------------------------------------+

5 | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |

6 +----------------------------------------------------------------------+

7 | This source file is subject to version 3.01 of the PHP license, |

8 | that is bundled with this package in the file LICENSE, and is |

9 | available through the world-wide-web at the following url: |

10 | http://www.php.net/license/3_01.txt |

11 | If you did not receive a copy of the PHP license and are unable to |

12 | obtain it through the world-wide-web, please send a note to |

13 | license@php.net so we can mail you a copy immediately. |

14 +----------------------------------------------------------------------+

15 */

String.class.php (https://github.com/treuter/xp-framework.git) PHP · 344 lines

1 <?php

2 /* This class is part of the XP framework

3 *

106 */

107 public function offsetSet($offset, $value) {

108 if (!is_int($offset)) {

109 throw new IllegalArgumentException('Incorrect type '.gettype($offset).' for index');

110 }

Select.php (https://github.com/deathsta/xnova-legacies.git) PHP · 332 lines

1 <?php

2

3 class Wootook_Core_Database_Sql_Select

54 if (is_array($column)) {

55 foreach ($column as $alias => $field) {

56 if (is_int($alias)) {

57 $this->_parts[self::COLUMNS][] = array(

58 'table' => $table,

toolset.settings.class.php (https://gitlab.com/Fraternal-Group/fraternal) PHP · 468 lines

1 <?php

2

3 /**

213

214 /**

215 * PHP dynamic setter.

216 *

217 * @param mixed $key

223

224 /**

225 * PHP dynamic setter.

226 *

227 * @param string $key

234

235 /**

236 * PHP dynamic fields unset() method support

237 * @param string $key

238 */

Properties.php (https://github.com/tmccormi/openemr.git) PHP · 629 lines

1 <?php

2

3 namespace PhpOffice\PhpSpreadsheet\Document;

4

5 class Properties

467 } elseif (is_float($propertyValue)) {

468 $propertyType = self::PROPERTY_TYPE_FLOAT;

469 } elseif (is_int($propertyValue)) {

470 $propertyType = self::PROPERTY_TYPE_INTEGER;

471 } elseif (is_bool($propertyValue)) {

485

486 /**

487 * Implement PHP __clone to create a deep clone, not just a shallow copy.

488 */

489 public function __clone()

CDFDataColumn.php (https://bitbucket.org/cleardemon/cdf.git) PHP · 439 lines

1 <?php

2

3 /**

6 */

7

8 require_once 'CDFIDataConnection.php';

9 require_once dirname(__FILE__) . '/../core/CDFDataHelper.php';

10 require_once dirname(__FILE__) . '/../core/CDFExceptions.php';

11

12 // Please use the constants and not the values directly!

67 protected function __construct($dataType, $name, $value = null, $opts = null)

68 {

69 if(!is_int($dataType) || !is_string($name))

70 throw new CDFInvalidArgumentException();

71

Isbn.php (https://github.com/ftaiolivista/Zend-Framework-Namespaced-.git) PHP · 284 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Isbn.php 22668 2010-07-25 14:50:46Z thomas $

20 */

21

28 * @see Zend_Validate_Abstract

29 */

30 require_once 'Zend/Validate/Abstract.php';

31

32 /**

85 * @see Zend_Validate_Exception

86 */

87 require_once 'Zend/Validate/Exception.php';

88 throw new Exception('Invalid options provided.');

89 }

session.php (https://gitlab.com/darmawan.fatria/df-skp-2014) PHP · 439 lines

1 <?php

2 /**

3 * Abstract class for managing user session tokens.

341 */

342 protected function prepare_session( $session ) {

343 if ( is_int( $session ) ) {

344 return array( 'expiration' => $session );

345 }

ExpandPropertiesTest.php (https://github.com/lkneschke/SabreDAV.git) PHP · 353 lines

1 <?php

2

3 require_once 'Sabre/HTTP/ResponseMock.php';

4

5 class Sabre_DAVACL_ExpandPropertiesTest extends PHPUnit_Framework_TestCase {

6

7 function getServer() {

85 foreach($check as $v1=>$v2) {

86

87 $xpath = is_int($v1)?$v2:$v1;

88

89 $result = $xml->xpath($xpath);

90

91 $count = 1;

92 if (!is_int($v1)) $count = $v2;

93

94 $this->assertEquals($count,count($result), 'we expected ' . $count . ' appearances of ' . $xpath . ' . We found ' . count($result) . '. Full response: ' . $server->httpResponse->body);

PrototypedArrayNode.php (https://github.com/meze/symfony.git) PHP · 280 lines

1 <?php

2

3 /*

187 foreach ($value as $k => $v) {

188 if (null !== $this->keyAttribute && is_array($v)) {

189 if (!isset($v[$this->keyAttribute]) && is_int($k)) {

190 $msg = sprintf('The attribute "%s" must be set for path "%s".', $this->keyAttribute, $this->getPath());

191 $ex = new InvalidConfigurationException($msg);

persistent_object_id_property.php (https://github.com/F5/zetacomponents.git) PHP · 253 lines

1 <?php

2 /**

3 * File containing the ezcPersistentObjectIdProperty class.

27 * Defines a persistent object id field.

28 *

29 * The column should be of type int both in PHP and in the database, usually.

30 * If you want to use a string ID, you need to use the {@link

31 * ezcPersistentManualGenerator} and set the ID property of the affected object

43 * value.

44 * @property string $propertyName The name of the PersistentObject property

45 * that holds the value in the PHP object.

46 * @property int $propertyType The type of the PHP property. See class

47 * constants ezcPersistentObjectProperty::PHP_TYPE_*.

48 * @property int $visibility The visibility of the property. This property is deprecated!

49 * @property ezcPersistentGeneratorDefinition $generator

Insert.php (https://github.com/kiranatama/sagalaya.git) PHP · 273 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

110 $this->columns($keys);

111 $values = array_values($values);

112 } elseif (is_int($firstKey)) {

113 $values = array_values($values);

114 }

Stream.php (https://gitlab.com/reasonat/test8) PHP · 328 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

116

117 $result = ftell($this->resource);

118 if (! is_int($result)) {

119 throw new RuntimeException('Error occurred during tell operation');

120 }

person.php (https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br) PHP · 302 lines

1 <?php

2

3 namespace Yoast\WP\SEO\Generators\Schema;

78

79 // It should to be an integer higher than 0.

80 if ( \is_int( $user_id ) && $user_id > 0 ) {

81 return $user_id;

82 }

Optimizer.php (https://github.com/clemherreman/behatdemo.git) PHP · 247 lines

1 <?php

2

3 /*

41 public function __construct($optimizers = -1)

42 {

43 if (!is_int($optimizers) || $optimizers > 2) {

44 throw new InvalidArgumentException(sprintf('Optimizer mode "%s" is not valid.', $optimizers));

45 }

MethodProphecySpec.php (https://gitlab.com/rocs/Streaming-Safe-for-Kids) PHP · 342 lines

1 <?php

2

3 namespace spec\Prophecy\Prophecy;

4

5 use PhpSpec\ObjectBehavior;

6 use Prophecy\Argument\ArgumentsWildcard;

7 use Prophecy\Call\Call;

base.item.items.class.php (http://php-ppcms.googlecode.com/svn/trunk/) PHP · 449 lines

1 <?php

2 /***************************************************************

3 * Copyright notice

8

9 //

10 include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'base.item.class.php');

11

12 class BaseItemItemsBase extends BaseItemBase {

335 } elseif( is_array($v) && sizeof($v) > 0 ) {

336 $query_str .= " and " . $p . $k . " in ('" . implode("','", $v) . "') ";

337 } elseif( is_int($v) ) {

338 $query_str .= " and " . $p . $k . " = '" . $v . "' ";

339 } elseif( is_numeric($v) ) {

423 } elseif( is_array($v) && sizeof($v) > 0 ) {

424 $query_str .= " and " . $p . $k . " in ('" . implode("','", $v) . "') ";

425 } elseif( is_int($v) ) {

426 $query_str .= " and " . $p . $k . " = '" . $v . "' ";

427 } elseif( is_numeric($v) ) {

dumper.php (https://github.com/h-kanjisan/swiftmailer.git) PHP · 359 lines

1 <?php

2 /**

3 * base include file for SimpleTest

4 * @package SimpleTest

5 * @subpackage UnitTester

6 * @version $Id: dumper.php 1782 2008-04-25 17:09:06Z pp11 $

7 */

8 /**

58 } elseif (is_string($value)) {

59 return "String";

60 } elseif (is_integer($value)) {

61 return "Integer";

62 } elseif (is_float($value)) {

Date.php (https://github.com/taste/zf2.git) PHP · 261 lines

1 <?php

2 /**

3 * Zend Framework

165 public function isValid($value)

166 {

167 if (!is_string($value) && !is_int($value) && !is_float($value) &&

168 !is_array($value) && !($value instanceof ZendDate\Date)) {

169 $this->_error(self::INVALID);

WebElement.php (https://github.com/pjwiseman/joomla-cms.git) PHP · 255 lines

1 <?php

2 // Copyright 2012-present Nearsoft, Inc

3

141 {

142 //We have to validate that timeOutSeconds is int, we have to add a new exception into the selenium exceptions and not use the exceptions that are outsite of the library

143 //if ( !is_int($timeOutSeconds) ) { throw new Not_Int_Exception("wait_for_element_until_is_present", "time_out_seconds"); }

144

145 $wait = new WebDriverWait($timeOutSeconds);

158 {

159 //We have to validate that timeOutSeconds is int, we have to add a new exception into the selenium exceptions and not use the exceptions that are outsite of the library

160 //if ( !is_int($timeOutSeconds) ) { throw new Not_Int_Exception("wait_for_element_until_is_present", "time_out_seconds"); }

161

162 $wait = new WebDriverWait($timeOutSeconds);

174 {

175 //We have to validate that timeOutSeconds is int, we have to add a new exception into the selenium exceptions and not use the exceptions that are outsite of the library

176 //if ( !is_int($timeOutSeconds) ) { throw new Not_Int_Exception("wait_for_element_until_is_present", "time_out_seconds"); }

177

178 $wait = new WebDriverWait($timeOutSeconds);

wincher-route.php (https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br) PHP · 277 lines

1 <?php

2

3 namespace Yoast\WP\SEO\Routes;

264 */

265 public function has_valid_website_id( $website_id ) {

266 return ! empty( $website_id ) && is_int( $website_id );

267 }

268

represent_as.h (https://github.com/paralect/mongo.git) C Header · 242 lines

57 // Signed integral types -> int64_t

58 template <typename T>

59 typename stdx::enable_if_t<std::is_integral<T>::value && std::is_signed<T>::value, int64_t>

60 upconvert(T t) {

61 MONGO_STATIC_ASSERT(sizeof(int64_t) >= sizeof(T));

65 // Unsigned integral types -> uint64_t

66 template <typename T>

67 typename stdx::enable_if_t<std::is_integral<T>::value && !std::is_signed<T>::value, uint64_t>

68 upconvert(T t) {

69 MONGO_STATIC_ASSERT(sizeof(uint64_t) >= sizeof(T));

203 // If Output is integral and number is a non-integral floating point value,

204 // return a disengaged optional.

205 if (std::is_floating_point<Input>::value && std::is_integral<Output>::value) {

206 if (!(std::trunc(number) == number)) {

207 return {};

dumper.php (https://github.com/quarkness/piwik.git) PHP · 360 lines

1 <?php

2 /**

3 * base include file for SimpleTest

4 * @package SimpleTest

5 * @subpackage UnitTester

6 * @version $Id: dumper.php 1723 2008-04-08 00:34:10Z lastcraft $

7 */

8 /**

58 } elseif (is_string($value)) {

59 return "String";

60 } elseif (is_integer($value)) {

61 return "Integer";

62 } elseif (is_float($value)) {

auth.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 160 lines

1 <?php

2

3 /**

17 }

18

19 require_once($CFG->libdir.'/authlib.php');

20

21 /**

91 * @return bool

92 */

93 function is_internal() {

94 return false;

95 }

118 * Prints a form for configuring this authentication plugin.

119 *

120 * This function is called from admin/auth.php, and outputs a full page with

121 * a form for configuring this plugin.

122 *

test_pack.c (https://github.com/ezzymny/moai-beta.git) C · 232 lines

48 /* integer */

49 value = json_pack("i", 1);

50 if(!json_is_integer(value) || json_integer_value(value) != 1)

51 fail("json_pack integer failed");

52 if(value->refcount != (ssize_t)1)

56 /* integer from json_int_t */

57 value = json_pack("I", (json_int_t)555555);

58 if(!json_is_integer(value) || json_integer_value(value) != 555555)

59 fail("json_pack json_int_t failed");

60 if(value->refcount != (ssize_t)1)

96 /* non-incref'd object */

97 value = json_pack("o", json_integer(1));

98 if(!json_is_integer(value) || json_integer_value(value) != 1)

99 fail("json_pack object failed");

100 if(value->refcount != (ssize_t)1)

persistent_object_property.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 261 lines

24 * the PHP object.

25 * @property int $propertyType

26 * The type of the PHP property. See class constants PHP_TYPE_*.

27 * @property ezcPersistentPropertyConverter|null $converter

28 * A converter object that will automatically perform converters on

40 {

41

42 const PHP_TYPE_STRING = 1;

43 const PHP_TYPE_INT = 2;

44 const PHP_TYPE_FLOAT = 3;

45 const PHP_TYPE_ARRAY = 4;

46 const PHP_TYPE_OBJECT = 5;

47 const PHP_TYPE_BOOL = 6;

48

49 /**

message.php (https://github.com/markn86/moodle.git) PHP · 128 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

70

71 public function load_settings(part_of_admin_tree $adminroot, $parentnodename, $hassiteconfig) {

72 global $CFG, $USER, $DB, $OUTPUT, $PAGE; // In case settings.php wants to refer to them.

73 $ADMIN = $adminroot; // May be used in settings.php.

74 $plugininfo = $this; // Also can be used inside settings.php.

75

76 if (!$this->is_installed_and_upgraded()) {

90 $settings = new admin_settingpage($section, $this->displayname,

91 'moodle/site:config', $this->is_enabled() === false);

92 include($this->full_path('settings.php')); // This may also set $settings to null.

93 }

94 }

OfflineTest.php (https://github.com/necrogami/zf2.git) PHP · 273 lines

1 <?php

2 /**

3 * Zend Framework

39 * @group Zend\Service\Rackspace\Files

40 */

41 class OfflineTest extends \PHPUnit_Framework_TestCase

42 {

43 /**

198 $size= $this->rackspace->getSizeContainers();

199 $this->assertTrue($size!==false);

200 $this->assertTrue(is_int($size));

201 }

202

205 $count= $this->rackspace->getCountObjects();

206 $this->assertTrue($count!==false);

207 $this->assertTrue(is_int($count));

208 }

209

Service.php (https://github.com/ArchiCroc/Tower-Web-Platform.git) PHP · 326 lines

1 <?php

2

3 /*

263 */

264 public function delete($mixed) {

265 if (is_int($mixed)) {

266 $object = new Core_Model_Acl_Group();

267 $object->id = $mixed;

Boolean.php (https://github.com/leerbag/zf2.git) PHP · 373 lines

1 <?php

2 /**

3 * Zend Framework

43 const EMPTY_ARRAY = 32;

44 const NULL = 64;

45 const PHP = 127;

46 const FALSE_STRING = 128;

47 const YES = 256;

56 self::EMPTY_ARRAY => 'array',

57 self::NULL => 'null',

58 self::PHP => 'php',

59 self::FALSE_STRING => 'false',

60 self::YES => 'yes',

67 * @var integer

68 */

69 protected $_type = self::PHP;

70

71 /**

TraceableEventDispatcher.php (https://github.com/changchang700/yii2cms.git) PHP · 327 lines

1 <?php

2

3 /*

307 private function sortListenersByPriority($a, $b)

308 {

309 if (\is_int($a['priority']) && !\is_int($b['priority'])) {

310 return 1;

311 }

312

313 if (!\is_int($a['priority']) && \is_int($b['priority'])) {

314 return -1;

315 }

sqlite_result.php (https://gitlab.com/betanurlaila/UI_onlineshop) PHP · 164 lines

1 <?php

2 /**

3 * CodeIgniter

4 *

5 * An open source application development framework for PHP

6 *

7 * This content is released under the MIT License (MIT)

56 public function num_rows()

57 {

58 return is_int($this->num_rows)

59 ? $this->num_rows

60 : $this->num_rows = @sqlite_num_rows($this->result_id);

class-wpseo-option-xml.php (https://gitlab.com/iamgraeme/royalmile) PHP · 259 lines

1 <?php

2 /**

3 * @package WPSEO\Internals\Options

188 if ( isset( $dirty[ $key ] ) && $dirty[ $key ] !== '' ) {

189 if ( $filtered_array = filter_var_array( explode( ',', $dirty[ $key ] ), FILTER_VALIDATE_INT ) ) {

190 $clean[ $key ] = implode( ',', array_filter( $filtered_array, 'is_integer' ) );

191

192 unset( $filtered_array );

ProblemsetIdentities.php (https://github.com/omegaup/omegaup.git) PHP · 416 lines

1 <?php

2 /** ************************************************************************ *

3 * !ATENCION! *

Boolean.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 375 lines

40 const EMPTY_ARRAY = 32;

41 const NULL = 64;

42 const PHP = 127;

43 const FALSE_STRING = 128;

44 const YES = 256;

53 self::EMPTY_ARRAY => 'array',

54 self::NULL => 'null',

55 self::PHP => 'php',

56 self::FALSE_STRING => 'false',

57 self::YES => 'yes',

142 $detected = 0;

143 foreach($type as $value) {

144 if (is_int($value)) {

145 $detected += $value;

146 } elseif (in_array($value, $this->_constants)) {

156 if (!is_int($type) || ($type < 0) || ($type > self::ALL)) {

157 // // // // // // // // // // require_once 'Zend/Filter/Exception.php';

158 throw new Zend_Filter_Exception('Unknown type');

159 }

HproseWriter.php (https://github.com/liu21st/thinkphp.git) PHP · 301 lines

1 <?php

2 /**********************************************************\

3 | |

12 /**********************************************************\

13 * *

14 * HproseWriter.php *

15 * *

16 * hprose writer library for php5. *

21 \**********************************************************/

22

23 require_once('HproseCommon.php');

24 require_once('HproseTags.php');

25 require_once('HproseClassManager.php');

26

27 class HproseSimpleWriter {

dumper.php (https://github.com/greevex/mzz-framework-blank-application.git) PHP · 360 lines

1 <?php

2 /**

3 * base include file for SimpleTest

4 * @package SimpleTest

5 * @subpackage UnitTester

6 * @version $Id: dumper.php 2460 2008-04-08 21:03:22Z mz $

7 */

8 /**

58 } elseif (is_string($value)) {

59 return "String";

60 } elseif (is_integer($value)) {

61 return "Integer";

62 } elseif (is_float($value)) {

DefaultChoiceListFactory.php (git://github.com/symfony/symfony.git) PHP · 302 lines

1 <?php

2

3 /*

168 // keys. We want to guarantee it's a string though.

169 $key = $keys[$value];

170 $nextIndex = \is_int($index) ? $index++ : $index($choice, $key, $value);

171

172 // BC normalize label to accept a false value

AbstractWriter.php (https://github.com/Ocramius/zf2.git) PHP · 355 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

79 if (isset($options['filters'])) {

80 $filters = $options['filters'];

81 if (is_int($filters) || is_string($filters) || $filters instanceof Filter\FilterInterface) {

82 $this->addFilter($filters);

83 } elseif (is_array($filters)) {

84 foreach ($filters as $filter) {

85 if (is_int($filter) || is_string($filter) || $filter instanceof Filter\FilterInterface) {

86 $this->addFilter($filter);

87 } elseif (is_array($filter)) {

121 public function addFilter($filter, array $options = null)

122 {

123 if (is_int($filter)) {

124 $filter = new Filter\Priority($filter);

125 }

FastPriorityQueue.php (https://gitlab.com/reasonat/test8) PHP · 343 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

13 use Countable;

14 use Serializable;

15 use SplPriorityQueue as PhpSplPriorityQueue;

16

17 /**

18 * This is an efficient implementation of an integer priority queue in PHP

19 *

20 * This class acts like a queue with insert() and extract(), removing the

25 class FastPriorityQueue implements Iterator, Countable, Serializable

26 {

27 const EXTR_DATA = PhpSplPriorityQueue::EXTR_DATA;

28 const EXTR_PRIORITY = PhpSplPriorityQueue::EXTR_PRIORITY;

Abstract.php (https://github.com/bhaumik25/zend-framework.git) PHP · 375 lines

1 <?php

2 /**

3 * Zend Framework

242 public function getWhitespace($indent)

243 {

244 if (is_int($indent)) {

245 $indent = str_repeat(' ', $indent);

246 }

259 {

260 if ($this->_captureLock) {

261 require_once 'Zend/View/Helper/Placeholder/Container/Exception.php';

262 throw new Zend_View_Helper_Placeholder_Container_Exception('Cannot nest placeholder captures for the same placeholder');

263 }

331 * Next Index

332 *

333 * as defined by the PHP manual

334 * @return int

335 */

AbstractWriter.php (https://bitbucket.org/alexandretaz/maniac_divers.git) PHP · 334 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

123 public function addFilter($filter, array $options = null)

124 {

125 if (is_int($filter)) {

126 $filter = new Filter\Priority($filter);

127 }

numinquire.h (https://github.com/qingguang/sdpd-blitz.git) C Header · 306 lines

129 inline T neghuge(T) BZ_THROW

130 {

131 return numeric_limits<T>::is_integer ? (numeric_limits<T>::min)()

132 : - (numeric_limits<T>::max)();

133 }

194

195 template<typename T>

196 inline bool is_integer(T) {

197 return numeric_limits<T>::is_integer;

PluralizationRules.php (https://bitbucket.org/laborautonomo/laborautonomo-site.git) PHP · 219 lines

1 <?php

2

3 /*

44 $return = call_user_func(self::$rules[$locale], $number);

45

46 if (!is_int($return) || $return < 0) {

47 return 0;

48 }

191 * Overrides the default plural rule for a given locale.

192 *

193 * @param string $rule A PHP callable

194 * @param string $locale The locale

195 *

base_object.c (https://github.com/mescher/mupdf.git) C · 802 lines

158 }

159

160 int fz_is_int(fz_obj *obj)

161 {

162 obj = fz_resolve_indirect(obj);

205 {

206 obj = fz_resolve_indirect(obj);

207 if (fz_is_int(obj))

208 return obj->u.i;

209 if (fz_is_real(obj))

217 if (fz_is_real(obj))

218 return obj->u.f;

219 if (fz_is_int(obj))

220 return obj->u.i;

221 return 0;

Call.php (https://bitbucket.org/mrajoelisolo/ci_twig.git) PHP · 178 lines

1 <?php

2

3 /*

96 $named = false;

97 foreach ($arguments as $name => $node) {

98 if (!is_int($name)) {

99 $named = true;

100 $name = $this->normalizeName($name);

FindOneAndReplace.php (https://github.com/markn86/moodle.git) PHP · 168 lines

1 <?php

2 /*

3 * Copyright 2015-2017 MongoDB, Inc.

23 use MongoDB\Exception\UnsupportedException;

24 use function is_array;

25 use function is_integer;

26 use function is_object;

27 use function MongoDB\is_first_key_operator;

124 }

125

126 if (! is_integer($options['returnDocument'])) {

127 throw InvalidArgumentException::invalidType('"returnDocument" option', $options['returnDocument'], 'integer');

128 }

plural-comparison.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 204 lines

1 <?php

2 /**

3 * Script for comparing different plural implementations.

16 $dir = dirname( __FILE__ ); $IP = "$dir/../../..";

17 }

18 require_once( "$IP/maintenance/Maintenance.php" );

19

20 /// Script for comparing different plural implementations.

185

186 public static function in( $num, $low, $high ) {

187 return is_int( $num ) && $num >= $low && $num <= $high;

188 }

189

193

194 public static function mod( $num, $mod ) {

195 if ( is_int( $num ) ) {

196 return (int) fmod( $num, $mod );

197 }

HttpResponse.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 234 lines

1 <?php

2 /**

3 * Zend Framework

23 * @see Zend_Feed_Pubsubhubbub

24 */

25 // require_once 'Zend/Feed/Pubsubhubbub.php';

26

27 /**

163 $ok = headers_sent($file, $line);

164 if ($ok && $throw) {

165 // require_once 'Zend/Feed/Pubsubhubbub/Exception.php';

166 throw new Zend_Feed_Pubsubhubbub_Exception('Cannot send headers; headers already sent in ' . $file . ', line ' . $line);

167 }

177 public function setHttpResponseCode($code)

178 {

179 if (!is_int($code) || (100 > $code) || (599 < $code)) {

180 // require_once 'Zend/Feed/Pubsubhubbub/Exception.php';

MethodProphecySpec.php (https://gitlab.com/zan_zan/laravel_sample) PHP · 381 lines

1 <?php

2

3 namespace spec\Prophecy\Prophecy;

4

5 use PhpSpec\ObjectBehavior;

6

7 class MethodProphecySpec extends ObjectBehavior

RepeatedTest.php (https://github.com/vivid-planet/library.git) PHP · 159 lines

45 */

46

47 require_once 'PHPUnit/Framework.php';

48 require_once 'PHPUnit/Extensions/TestDecorator.php';

49 require_once 'PHPUnit/Util/Filter.php';

50

51 PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');

52

53 /**

55 *

56 * @category Testing

57 * @package PHPUnit

58 * @author Sebastian Bergmann <sb@sebastian-bergmann.de>

59 * @copyright 2002-2009 Sebastian Bergmann <sb@sebastian-bergmann.de>

63 * @since Class available since Release 2.0.0

64 */

65 class PHPUnit_Extensions_RepeatedTest extends PHPUnit_Extensions_TestDecorator

66 {

67 /**

polls_m.php (https://github.com/vmichnowicz/polls.git) PHP · 246 lines

1 <?php defined('BASEPATH') or exit('No direct script access allowed');

2

3 /**

30

31 // If a poll ID was provided (and the ID is a valid integer)

32 if ( isset($id) AND ( is_int($id) OR ctype_digit($id) ) )

33 {

34 // Get only this poll

API.php (https://github.com/ktk070/Anopier.git) PHP · 335 lines

1 <?php

2 class ExtDirect_API {

3 private $_routerUrl = 'router.php';

87

88 foreach($classes as $name => $cSettings) {

89 if(is_int($name)) {

90 $name = $cSettings;

91 $cSettings = array();

210 $path = $settings['basePath'] . DIRECTORY_SEPARATOR .

211 $settings['subPath'] . DIRECTORY_SEPARATOR .

212 $class . '.php';

213 $path = str_replace('\\\\', '\\', $path);

214 } else {

246 }

247

248 public function setRouterUrl($routerUrl = 'router.php') {

249 if(isset($routerUrl)) {

250 $this->_routerUrl = $routerUrl;

manager.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 401 lines

1 <?php

2 namespace Elementor\Data\V2;

3

27 * @var boolean

28 */

29 private $is_internal = false;

30

31 /**

210 * If run_server() called means, that rest api is simulated from the backend.

211 */

212 $this->is_internal = true;

213

214 if ( ! $this->server ) {

236 $this->command_formats = [];

237 $this->server = false;

238 $this->is_internal = false;

239 $this->cache = [];

240 $wp_rest_server = false;

smarty_internal_compile_private_block_plugin.php (https://gitlab.com/garabedian.kevin/web2TB) PHP · 123 lines

1 <?php

2 /**

3 * Smarty Internal Plugin Compile Block Plugin

39 * @param array $parameter array with compilation parameter

40 * @param string $tag name of block plugin

41 * @param string $function PHP function name

42 *

43 * @return string compiled code

55

56 // compile code

57 $output = "<?php ";

58 if (is_array($callback)) {

59 $output .= "\$_block_plugin{$this->nesting} = isset({$callback[0]}) ? {$callback[0]} : null;\n";

89 'value' => 'ob_get_clean()')) . ";\n";

90 }

91 $output = "<?php " . $mod_content . "\$_block_repeat{$this->nesting}=false;\n" . $mod_pre .

92 "echo {$callback}({$_params}, " . $mod_content2 .

93 ", \$_smarty_tpl, \$_block_repeat{$this->nesting});\n" . $mod_post . "}\n";

DefinitionDecorator.php (https://github.com/meze/symfony.git) PHP · 202 lines

1 <?php

2

3 /*

165 }

166

167 $lastIndex = count(array_filter(array_keys($this->arguments), 'is_int')) - 1;

168

169 if ($index < 0 || $index > $lastIndex) {

192 public function replaceArgument($index, $value)

193 {

194 if (!is_int($index)) {

195 throw new \InvalidArgumentException('$index must be an integer.');

196 }

UploadedFile.php (https://github.com/WoltLab/WCF.git) PHP · 262 lines

1 <?php

2

3 declare(strict_types=1);

13 use function fwrite;

14 use function is_dir;

15 use function is_int;

16 use function is_resource;

17 use function is_string;

21 use function strpos;

22

23 use const PHP_SAPI;

24 use const UPLOAD_ERR_CANT_WRITE;

25 use const UPLOAD_ERR_EXTENSION;

213 * {@inheritdoc}

214 *

215 * @see http://php.net/manual/en/features.file-upload.errors.php

216 * @return int One of PHP's UPLOAD_ERR_XXX constants.

MethodScanner.php (https://github.com/brazza/zf2.git) PHP · 342 lines

1 <?php

2

3 namespace Zend\Code\Scanner;

137 $this->scan();

138

139 if (is_int($parameterNameOrInfoIndex)) {

140 $info = $this->infos[$parameterNameOrInfoIndex];

141 if ($info['type'] != 'parameter') {

DefinitionDecorator.php (https://gitlab.com/guillaumev/alkarama) PHP · 229 lines

1 <?php

2

3 /*

193 }

194

195 $lastIndex = count(array_filter(array_keys($this->arguments), 'is_int')) - 1;

196

197 if ($index < 0 || $index > $lastIndex) {

219 public function replaceArgument($index, $value)

220 {

221 if (!is_int($index)) {

222 throw new InvalidArgumentException('$index must be an integer.');

223 }

PdoProfilerStorage.php (https://github.com/proclamo/txinbometro.git) PHP · 230 lines

1 <?php

2

3 /*

143

144 foreach ($args as $arg => $val) {

145 $stmt->bindValue($arg, $val, is_int($val) ? \PDO::PARAM_INT : \PDO::PARAM_STR);

146 }

147 $success = $stmt->execute();

171

172 foreach ($args as $arg => $val) {

173 $stmt->bindValue($arg, $val, is_int($val) ? \PDO::PARAM_INT : \PDO::PARAM_STR);

174 }

175 $stmt->execute();

Map.php (https://github.com/asm89/IvoryGoogleMapBundle.git) PHP · 497 lines

1 <?php

2

3 namespace Ivory\GoogleMapBundle\Model;

164 $args = func_get_args();

165

166 if(isset($args[0]) && is_int($args[0]) && isset($args[1]) && is_int($args[1]))

167 {

168 $this->center->setLatitude($args[0]);

208 $this->bound->setNorthEast($args[1]);

209 }

210 else if(isset($args[0]) && is_int($args[0]) && isset($args[1]) && is_int($args[1]) && isset($args[2]) && is_int($args[2]) && isset($args[3]) && is_int($args[3]))

211 {

212 $this->bound->setSouthWest(new Coordinate($args[0], $args[1]));

Data.php (https://gitlab.com/nitm/yii2-module) PHP · 161 lines

1 <?php

2

3 namespace nitm\traits;

119

120 $fields = array_map(function ($k, $v) {

121 if (is_int($k)) {

122 return $v;

123 }

126 }, array_keys($modelClass::fields()), $modelClass::fields());

127 $extraFields = array_map(function ($k, $v) {

128 if (is_int($k)) {

129 return $v;

130 }

ArrayUtils.php (https://github.com/kiranatama/sagalaya.git) PHP · 248 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

14

15 /**

16 * Utility class for testing and manipulation of PHP arrays.

17 *

18 * Declared abstract, as we have no need for instantiation.

60 }

61

62 return count(array_filter(array_keys($value), 'is_int')) > 0;

63 }

64

138 * );

139 * $hash = array(

140 * 1995 => 'Birth of PHP',

141 * 2009 => 'PHP 5.3.0',

DebugHandlersListener.php (https://gitlab.com/nmhieucoder/laravel_tintuc) PHP · 188 lines

1 <?php

2

3 /*

62 $this->logger = $logger;

63 $this->levels = null === $levels ? \E_ALL : $levels;

64 $this->throwAt = \is_int($throwAt) ? $throwAt : (null === $throwAt ? null : ($throwAt ? \E_ALL : null));

65 $this->scream = $scream;

66 $this->fileLinkFormat = $fileLinkFormat;

74 public function configure(object $event = null)

75 {

76 if ($event instanceof ConsoleEvent && !\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) {

77 return;

78 }

ezpi18n.php (https://github.com/Yannix/ezpublish.git) PHP · 146 lines

1 <?php

2 /**

3 * File containing the ezpI18n class.

36 foreach ( $arguments as $argumentKey => $argumentItem )

37 {

38 if ( is_int( $argumentKey ) )

39 $replaceList['%' . ( ($argumentKey%9) + 1 )] = $argumentItem;

40 else

dumper.php (https://github.com/kugu/limb.git) PHP · 360 lines

1 <?php

2 /**

3 * base include file for SimpleTest

4 * @package SimpleTest

5 * @subpackage UnitTester

6 * @version $Id: dumper.php 7198 2008-11-01 11:57:17Z korchasa $

7 */

8 /**

58 } elseif (is_string($value)) {

59 return "String";

60 } elseif (is_integer($value)) {

61 return "Integer";

62 } elseif (is_float($value)) {

smarty_internal_compile_private_registered_block.php (https://github.com/hatone/revolution.git) PHP · 86 lines

1 <?php

2 /**

3 * Smarty Internal Plugin Compile Registered Block

40 $_paramsArray = array();

41 foreach ($_attr as $_key => $_value) {

42 if (is_int($_key)) {

43 $_paramsArray[] = "$_key=>$_value";

44 } else {

54 // compile code

55 if (!is_array($function)) {

56 $output = "<?php \$_smarty_tpl->smarty->_tag_stack[] = array('{$tag}', {$_params}); \$_block_repeat=true; {$function}({$_params}, null, \$_smarty_tpl, \$_block_repeat);while (\$_block_repeat) { ob_start();?>";

57 } else if (is_object($function[0])) {

58 $output = "<?php \$_smarty_tpl->smarty->_tag_stack[] = array('{$tag}', {$_params}); \$_block_repeat=true; \$_smarty_tpl->smarty->registered_plugins['block']['{$tag}'][0][0]->{$function[1]}({$_params}, null, \$_smarty_tpl, \$_block_repeat);while (\$_block_repeat) { ob_start();?>";

59 } else {

60 $output = "<?php \$_smarty_tpl->smarty->_tag_stack[] = array('{$tag}', {$_params}); \$_block_repeat=true; {$function[0]}::{$function[1]}({$_params}, null, \$_smarty_tpl, \$_block_repeat);while (\$_block_repeat) { ob_start();?>";

61 }

62 } else {

lmbMssqlStatement.class.php (https://github.com/kugu/limb.git) PHP · 204 lines

1 <?php

2 /*

3 * Limb PHP Framework

7 * @license LGPL http://www.gnu.org/copyleft/lesser.html

8 */

9 lmb_require('limb/dbal/src/drivers/lmbDbStatement.interface.php');

10

11 /**

13 *

14 * @package dbal

15 * @version $Id: lmbMssqlStatement.class.php,v 1.1.1.1 2009/06/08 11:57:21 mike Exp $

16 */

17 class lmbMssqlStatement implements lmbDbStatement

61 function setDouble($name, $value)

62 {

63 if(is_float($value) || is_integer($value))

64 {

65 $this->parameters[$name] = $value;

contenthistory.php (https://github.com/elinw/joomla-cms.git) PHP · 183 lines

1 <?php

2 /**

3 * @package Joomla.Libraries

95 foreach ($value as $subName => $subValue)

96 {

97 $object->$subName = (is_int($subValue) || is_bool($subValue)) ? (string) $subValue : $subValue;

98 }

99 }

100 else

101 {

102 $object->$name = (is_int($value) || is_bool($value)) ? (string) $value : $value;

103 }

104 }

watchlist.php (https://github.com/omigeot-ccpo/SemanticScuttle-SSO.git) PHP · 128 lines

1 <?php

2 /***************************************************************************

3 Copyright (C) 2004 - 2006 Scuttle project

19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

20 ***************************************************************************/

21 require_once 'www-header.php';

22

23 /* Service creation: only useful services are created */

53

54 if ($user) {

55 if (is_int($user)) {

56 $userid = intval($user);

57 } else {

sfWidgetFormSchemaFormatter.class.php (https://github.com/proyectoalba/alba.git) PHP · 346 lines

1 <?php

2

3 /*

15 * @subpackage widget

16 * @author Fabien Potencier <fabien.potencier@symfony-project.com>

17 * @version SVN: $Id: sfWidgetFormSchemaFormatter.class.php 20301 2009-07-19 10:57:32Z fabien $

18 */

19 abstract class sfWidgetFormSchemaFormatter

107 * @param mixed $callable

108 *

109 * @throws InvalidArgumentException if an invalid php callable or sfCallable has been provided

110 */

111 static public function setTranslationCallable($callable)

113 if (!$callable instanceof sfCallable && !is_callable($callable))

114 {

115 throw new InvalidArgumentException('Provided i18n callable should be either an instance of sfCallable or a valid PHP callable');

116 }

117

class.ls.sliders.php (https://gitlab.com/webkod3r/tripolis) PHP · 409 lines

1 <?php

2

3 class LS_Sliders {

244

245 // Check ID

246 if(!is_int($id)) { return false; }

247

248 // Remove

269

270 // Check ID

271 if(!is_int($id)) { return false; }

272

273 // Delete

291

292 // Check ID

293 if(!is_int($id)) { return false; }

294

295 // Remove

Boolean.php (https://bitbucket.org/acidel/buykoala.git) PHP · 375 lines

40 const EMPTY_ARRAY = 32;

41 const NULL = 64;

42 const PHP = 127;

43 const FALSE_STRING = 128;

44 const YES = 256;

53 self::EMPTY_ARRAY => 'array',

54 self::NULL => 'null',

55 self::PHP => 'php',

56 self::FALSE_STRING => 'false',

57 self::YES => 'yes',

142 $detected = 0;

143 foreach($type as $value) {

144 if (is_int($value)) {

145 $detected += $value;

146 } elseif (in_array($value, $this->_constants)) {

156 if (!is_int($type) || ($type < 0) || ($type > self::ALL)) {

157 #require_once 'Zend/Filter/Exception.php';

158 throw new Zend_Filter_Exception('Unknown type');

159 }

filter.php (https://github.com/vadimonus/moodle.git) PHP · 136 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

47 public static function get_enabled_plugins() {

48 global $DB, $CFG;

49 require_once("$CFG->libdir/filterlib.php");

50

51 $enabled = array();

63

64 public function load_settings(part_of_admin_tree $adminroot, $parentnodename, $hassiteconfig) {

65 global $CFG, $USER, $DB, $OUTPUT, $PAGE; // In case settings.php wants to refer to them.

66 $ADMIN = $adminroot; // May be used in settings.php.

67 $plugininfo = $this; // Also can be used inside settings.php.

68 $filter = $this; // Also can be used inside settings.php.

HttpResponse.php (https://github.com/kiranatama/sagalaya.git) PHP · 217 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

161 public function setStatusCode($code)

162 {

163 if (!is_int($code) || (100 > $code) || (599 < $code)) {

164 throw new Exception\InvalidArgumentException('Invalid HTTP response'

165 . ' code:' . $code);

Zoom.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 171 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Zoom.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $

21 */

22

23 /** Zend_Pdf_Destination_Explicit */

24 require_once 'Zend/Pdf/Destination/Explicit.php';

25

26

59 if ($page instanceof Zend_Pdf_Page) {

60 $destinationArray->items[] = $page->getPageDictionary();

61 } else if (is_integer($page)) {

62 $destinationArray->items[] = new Zend_Pdf_Element_Numeric($page);

63 } else {

RepositoryFactory.php (https://gitlab.com/imamul68e/137619_PHP31) PHP · 163 lines

1 <?php

2

3 /*

148 throw new \UnexpectedValueException('Repository "'.$index.'" ('.json_encode($repo).') must have a type defined');

149 }

150 $name = is_int($index) && isset($repo['url']) ? preg_replace('{^https?://}i', '', $repo['url']) : $index;

151 while (isset($repos[$name])) {

152 $name .= '2';

Application.php (https://github.com/mutru/growl.git) PHP · 173 lines

1 <?php

2 // +-----------------------------------------------------------------------+

3 // | Copyright (c) 2006, Bertrand Mansion |

48 * @author Bertrand Mansion <golgote@mamasam.com>

49 * @copyright 2006

50 * @license http://www.opensource.org/licenses/bsd-license.php BSD License

51 * @package Net_Growl

52 * @link http://growl.info Growl Homepage

113 $default = $this->_getGrowlNotificationDefaultOptions();

114 foreach ($notifications as $name => $options) {

115 if (is_int($name)) {

116 $name = $options;

117 $options = $default;

vars.php (http://goodgirl.googlecode.com/svn/) PHP · 302 lines

1 <?php /* `,

2 ,\, #

3 B E R R Y |/ ?

133 }

134

135 if (is_int($name)){

136 if (!isset($this->parallel[$name])){

137 if ($this->parent and !$this->where)

197 $class[$k] = $v;

198

199 if (!$this->id or !is_int($name))

200 return;

201

202 $value = $class;

203 }

204 } elseif (is_int($value) or is_float($value)){ self::$cache[$key.'[+-]'][$name][] = ($value - $this[$name]);

205 self::$cache[$key][$name] = $value;

206

Item.php (https://gitlab.com/efabian/maya) PHP · 190 lines

1 <?php

2 /*

3 * Copyright 2016 Google Inc.

126 public function expiresAfter($time)

127 {

128 if (is_int($time)) {

129 $this->expiration = $this->currentTime()->add(new \DateInterval("PT{$time}S"));

130 } elseif ($time instanceof \DateInterval) {

171

172 // We test for two types here due to the fact the DateTimeInterface

173 // was not introduced until PHP 5.5. Checking for the DateTime type as

174 // well allows us to support 5.4.

175 if ($expiration instanceof \DateTimeInterface) {

view.text.php (https://gitlab.com/ricardosanchez/prueba) PHP · 176 lines

1 <?php

2 /**

3 * @package Joomla.Administrator

78 'data' => $model->getSafeData('info')

79 ),

80 'phpSettings' => array(

81 'title' => JText::_('COM_ADMIN_PHP_SETTINGS', true),

82 'data' => $model->getSafeData('phpSettings')

83 ),

84 'config' => array(

90 'data' => $model->getSafeData('directory', true)

91 ),

92 'phpInfo' => array(

93 'title' => JText::_('COM_ADMIN_PHP_INFORMATION', true),

SetCookie.php (https://github.com/leerbag/zf2.git) PHP · 399 lines

1 <?php

2

3 namespace Zend\Http\Header;

241 if (is_string($expires)) {

242 $expires = strtotime($expires);

243 } elseif (!is_int($expires)) {

244 throw new Exception\InvalidArgumentException('Invalid expires time specified');

245 }

341 }

342

343 if (is_int($this->expires) && $this->expires < $now) {

344 return true;

345 } else {

Token.php (https://bitbucket.org/mrblackus/micro-muffin.git) PHP · 221 lines

1 <?php

2

3 /*

75 public function test($type, $values = null)

76 {

77 if (null === $values && !is_int($type))

78 {

79 $values = $type;

Generator.php (https://github.com/strangerstudios/paid-memberships-pro.git) PHP · 149 lines

1 <?php

2 namespace Braintree\Xml;

3

8

9 /**

10 * PHP version 5

11 */

12

13 /**

14 * Generates XML output from arrays using PHP's

15 * built-in XMLWriter

16 */

109 return ['type', 'datetime', self::_dateTimeToXmlTimestamp($value)];

110 }

111 if (is_int($value)) {

112 return ['type', 'integer', $value];

113 }

js_escape.lib.php (https://gitlab.com/luyxtran264/myproject) PHP · 175 lines

1 <?php

2 /* vim: set expandtab sw=4 ts=4 sts=4: */

3 /**

4 * Javascript escaping functions.

5 *

6 * @package PhpMyAdmin

7 *

8 */

83 }

84

85 if (is_int($value)) {

86 return (int)$value;

87 }

Log.php (https://github.com/durand54/sitellite.git) PHP · 211 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Log.php,v 1.1.1.1 2007/08/12 09:24:10 lux Exp $

20 */

21

22 /** Zend_Log_Filter_Priority */

23 require_once 'Zend/Log/Filter/Priority.php';

24

25 /**

28 * @copyright Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

29 * @license http://framework.zend.com/license/new-bsd New BSD License

30 * @version $Id: Log.php,v 1.1.1.1 2007/08/12 09:24:10 lux Exp $

31 */

32 class Zend_Log

Intervals.class.php (https://github.com/bgerp/bgerp.git) PHP · 318 lines

1 <?php

2

3 /**

124

125 // От къде можем да започнем да консумираме

126 $new[0] = max(isset($begin) ? $begin : PHP_INT_MIN, $int[0]);

127

128 // До къде можем да консумираме

129 $new[1] = min(isset($end) ? $end : PHP_INT_MAX, $int[1], $new[0] + $duration - 1);

130

131 $add = array_merge($add, self::getDiff($int, $new));

206

207 // Добавяме началните интервали, ако има

208 if(is_int($last)) {

209 $res = array_slice($this->data, 0, $last+1);

210 }

glsl.std450.comp (https://gitlab.com/JFT/Irrlicht_extended) GLSL · 282 lines

62

63 // Implementation of the GLSL sign() function for integer types

64 template<typename T, typename E = typename enable_if<is_integral<T>::value>::type>

65 T sign(T x)

66 {

mysql_utility.php (https://github.com/dchill42/CodeIgniter.git) PHP · 190 lines

1 <?php

2 /**

3 * CodeIgniter

4 *

5 * An open source application development framework for PHP 5.2.4 or newer

6 *

7 * NOTICE OF LICENSE

132 $i = 0;

133 $field_str = '';

134 $is_int = array();

135 while ($field = mysql_fetch_field($query->result_id))

136 {

137 // Most versions of MySQL store timestamp as a string

138 $is_int[$i] = in_array(strtolower(mysql_field_type($query->result_id, $i)),

139 array('tinyint', 'smallint', 'mediumint', 'int', 'bigint'), //, 'timestamp'),

140 TRUE);

module_domain.F (git://github.com/jbeezley/wrf-fire.git) FORTRAN Legacy · 2992 lines ✨ Summary

This code defines several subroutines for working with grids and indices in a weather forecasting model. It provides functions to find a grid by its ID, convert between different index systems, and modify input/output masks based on a given grid. The subroutines are designed to be used within the WRF (Weather Research and Forecasting) model’s configuration module.

706 ENDDO

707 new_grid%time_set = .FALSE.

708 new_grid%is_intermediate = .FALSE.

709 new_grid%have_displayed_alloc_stats = .FALSE.

710

statistic_tests.cpp (http://hadesmem.googlecode.com/svn/trunk/) C++ · 0 lines ✨ Summary

This C++ code runs a series of tests on various random number generators (RNGs) to verify their correctness and statistical properties. It uses a test framework to execute tests for different RNGs, including uniform distributions, normal distribution, triangular distribution, Cauchy distribution, gamma distribution, exponential distribution, and lognormal distribution. The results are printed to the console.

165 static_cast<double>((rng.min)()),

166 static_cast<double>((rng.max)()) +

167 (std::numeric_limits<typename RNG::result_type>::is_integer? 0.0 : 1.0));

168 run(rng, ud, n1, n2);

169 }

is_fundamental.html (http://hadesmem.googlecode.com/svn/trunk/) HTML · 0 lines ✨ Summary

This HTML code generates a documentation page for the is_fundamental function template in the Boost C++ Libraries. It displays the function’s syntax, inheritance information, and examples of its usage, along with copyright and licensing information. The page is structured to provide easy navigation between related functions and sections.

8 <link rel="up" href="../reference.html" title="Alphabetical Reference">

9 <link rel="prev" href="is_function.html" title="is_function">

10 <link rel="next" href="is_integral.html" title="is_integral">

11 </head>

12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">

21 <hr>

22 <div class="spirit-nav">

23 <a accesskey="p" href="is_function.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="is_integral.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>

24 </div>

25 <div class="section" lang="en">

35 otherwise inherits from <a class="link" href="integral_constant.html" title="integral_constant">false_type</a>.

36 Fundamental types include integral, floating point and void types (see also

37 <a class="link" href="is_integral.html" title="is_integral">is_integral</a>,

38 <a class="link" href="is_floating_point.html" title="is_floating_point">is_floating_point</a>

39 and <a class="link" href="is_void.html" title="is_void">is_void</a>)

powermate.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 465 lines ✨ Summary

This C code implements a USB driver for the Griffin Technology PowerMate device, a sound-activated jog wheel. It registers the device with the USB system, sets up interrupt handling and input events, and provides default pulse parameters for the device’s LED lights. The code also handles device removal and cleanup.

311 interface = intf->cur_altsetting;

312 endpoint = &interface->endpoint[0].desc;

313 if (!usb_endpoint_is_int_in(endpoint))

314 return -EIO;

315

is_interval_joiner.hpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines

6 http://www.boost.org/LICENSE_1_0.txt)

7 +-----------------------------------------------------------------------------*/

8 #ifndef BOOST_ICL_TYPE_TRAITS_IS_INTERVAL_JOINER_HPP_JOFA_100901

9 #define BOOST_ICL_TYPE_TRAITS_IS_INTERVAL_JOINER_HPP_JOFA_100901

13 namespace boost{ namespace icl

14 {

15 template <class Type> struct is_interval_joiner

16 {

17 typedef is_interval_joiner<Type> type;

int_float_mixture.hpp (http://hadesmem.googlecode.com/svn/trunk/) C++ Header · 0 lines ✨ Summary

This C++ header file provides a set of metafunctions for working with integer and floating-point types, specifically designed for use with Boost’s numeric conversion library. It defines various integral constants and metafunctions to select the appropriate type based on the combination of input types. The code is part of the Boost library and is used to perform conversions between integers and floats.

36 struct get_int_float_mixture

37 {

38 typedef mpl::bool_< ::std::numeric_limits<S>::is_integer > S_int ;

39 typedef mpl::bool_< ::std::numeric_limits<T>::is_integer > T_int ;

xml-sax-simple_readers-scanner.adb.in (git://github.com/landgraf/matreshka.git) Unknown · 994 lines

284 else

285 if Condition = DOCUMENT_11

286 and Is_Internal_General_Entity (Self.Entities, Entity)

287 then

288 -- Character references are resolved when replacement text of

news.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 240 lines

31 <title> Preface </title>

32

33 <para> jEdit is a very mature text editor, and has gone through a very interesting phase of development. Left in a "prerelease" stage for about two years, it's had a long time to solifidy. Many of the original developers, including Slava Pestov, have stopped working directly on jEdit. Fortunately, because of the wonderful nature of open source, there are more and more eyeballs on this code than ever! We have received contributions of plugins, bugfixes, refactoring, and enhancements from around the globe, and our host, sourceforge.net <ulink url = "http://sourceforge.net/project/stats/detail.php?group_id=588&amp;ugn=jedit&amp;type=prdownload&amp;mode=year&amp;package_id=0" >reports</ulink> that there are on average at least a half-million downloads per year, and this has been true for the entire millenium.

34 </para>

35

189

190 <bridgehead>SideKicks and Language Plugins </bridgehead>

191 <para> SideKick has been debugged and the documentation has been improved. Further, there is a new combobox that lets you choose your parser, and a new SplitPane to show you the contents of the hovered element. The combobox is especially important since there are multiple parsers that can be used on a given file, especially when you are working with Python, PHP, HTML, XML, or JavaScript files. </para>

192

193 <para> Many language-specific plugins have been redesigned to use the new and improved SideKick. In particular, JPyDebug, JythonInterpreter, RubyPlugin, PHPParser, JavaSideKick, XML, and PerlSideKick. Be sure to try them out.

kernel-docs.txt (http://photon-android.googlecode.com/svn/) Plain Text · 762 lines

115 * Title: "The Linux RAID-1, 4, 5 Code"

116 Author: Ingo Molnar, Gadi Oxman and Miguel de Icaza.

117 URL: http://www.linuxjournal.com/article.php?sid=2391

118 Keywords: RAID, MD driver.

119 Description: Linux Journal Kernel Korner article. Here is it's

125 * Title: "Dynamic Kernels: Modularized Device Drivers"

126 Author: Alessandro Rubini.

127 URL: http://www.linuxjournal.com/article.php?sid=1219

128 Keywords: device driver, module, loading/unloading modules,

129 allocating resources.

138 * Title: "Dynamic Kernels: Discovery"

139 Author: Alessandro Rubini.

140 URL: http://www.linuxjournal.com/article.php?sid=1220

141 Keywords: character driver, init_module, clean_up module,

142 autodetection, mayor number, minor number, file operations,

cdc_ether.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 594 lines ✨ Summary

This C code implements a USB driver for CDC (Communication Device Class) Ethernet devices, which are used to connect computers to the internet over USB. The driver provides support for various devices from different manufacturers, including Ericsson and Toshiba. It allows these devices to communicate with the host computer and establish network connections.

280 dev->status = &info->control->cur_altsetting->endpoint [0];

281 desc = &dev->status->desc;

282 if (!usb_endpoint_is_int_in(desc)

283 || (le16_to_cpu(desc->wMaxPacketSize)

284 < sizeof(struct usb_cdc_notification))