100+ results for 'php end'

Not the results you expected?

InstallSchema.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 407 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

18 /**

19 * {@inheritdoc}

20 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)

21 */

22 public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)

402 $installer->getConnection()->createTable($table);

403

404 $installer->endSetup();

405

406 }

Advertiser.php (https://bitbucket.org/blackriver/openx.git) PHP · 371 lines

1 <?php

2

3 /*

34

35 // Required classes

36 require_once MAX_PATH . '/lib/OA/Dal/Statistics.php';

37

38 /**

39 * The Data Abstraction Layer (DAL) class for statistics for Advertiser.

40 */

41 class OA_Dal_Statistics_Advertiser extends OA_Dal_Statistics

42 {

43 /**

48 * @param integer $advertiserId The ID of the advertiser to view statistics

49 * @param date $oStartDate The date from which to get statistics (inclusive)

50 * @param date $oEndDate The date to which to get statistics (inclusive)

51 * @param bool $localTZ Should stats be using the manager TZ or UTC?

52 *

Location.js (https://github.com/stephaneerard/qooxdoo.git) JavaScript · 406 lines

10 License:

11 LGPL: http://www.gnu.org/licenses/lgpl.html

12 EPL: http://www.eclipse.org/org/documents/epl-v10.php

13 See the LICENSE file in the project's top-level directory for details.

14

20 qx.Class.define("qx.test.bom.Location",

21 {

22 extend : qx.dev.unit.TestCase,

23

24 members :

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

1 <?php

2 /* This class is part of the XP framework

3 *

12 * @purpose Unit Test

13 */

14 class AssertionsTest extends TestCase {

15

16 /**

content_actionhandler.php (https://github.com/SylvainGuittard/ezlightbox.git) PHP · 364 lines

1 <?php

2 //

3 // Created on: <2007-11-21 13:01:28 ab>

135 }

136

137 if ( $http->hasPostVariable( 'SendLightboxAction' ) )

138 {

139 $module->redirectTo( '/lightbox/send/' . $lightboxID );

FormErrors.php (https://github.com/intellix/zf2.git) PHP · 466 lines

172 if (null === $this->_markupElementLabelEnd) {

173 if (null === ($markupElementLabelEnd = $this->getOption('markupElementLabelEnd'))) {

174 $this->setMarkupElementLabelEnd($this->_defaults['markupElementLabelEnd']);

314 public function setMarkupListItemEnd($markupListItemEnd)

315 {

316 $this->_markupListItemEnd = $markupListItemEnd;

317 return $this;

318 }

415 * @param \Zend\Form\Element $element

416 * @param \Zend\View\Renderer $view

417 * @return string

418 */

434 * @param \Zend\Form\Form $form

435 * @param \Zend\View\Renderer $view

436 * @return string

437 */

sitemailer_.php (https://gitlab.com/nvtdn2006/azora) PHP · 384 lines

1 <?php

2 class SiteMailer

3 {

51

52 $this->headers .= "MIME-Version: 1.0\r\n";

53 //$this->headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-" . $this->randomHash . "\"\r\n";

54 $this->headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

55 }

81 }

82

83 /*-End FX.1304.002 */

84

85 public function Send() {

89 /*if ($this->attachment != '')

90 {

91 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";

92 $this->msgBody .= $this->attachment;

93 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";

Editor.php (https://github.com/lazenge/zf2.git) PHP · 601 lines

12 * obtain it through the world-wide-web, please send an email

13 * to license@zend.com so we can send you a copy immediately.

14 *

15 * @category Zend

16 * @package Zend_Dojo

17 * @subpackage Form_Element

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

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

35 * @package Zend_Dojo

36 * @subpackage Form_Element

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

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

137 * Clear all capture events

138 *

139 * @return \Zend\Dojo\Form\Element\Editor

140 */

141 public function clearCaptureEvents()

length_class.php (https://bitbucket.org/elena_dyavolova/omf.git) PHP · 412 lines

1 <?php

2 class ControllerLocalisationLengthClass extends Controller {

251 $pagination->url = $this->url->link('localisation/length_class', 'token=' . $this->session->data['token'] . $url . '&page={page}', 'SSL');

252

253 $this->data['pagination'] = $pagination->render();

254

255 $this->data['sort'] = $sort;

262 );

263

264 $this->response->setOutput($this->render());

265 }

266

359 );

360

361 $this->response->setOutput($this->render());

362 }

363

Entry.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 630 lines

1 <?php

2

3 /**

13 * limitations under the License.

14 *

15 * PHP version 5

16 *

17 * @category Microsoft

18 * @package WindowsAzure\Common\Internal\Atom

19 * @author Azure PHP SDK <azurephpsdk@microsoft.com>

20 * @copyright 2012 Microsoft Corporation

21 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0

33 * @category Microsoft

34 * @package WindowsAzure\Common\Internal\Atom

35 * @author Azure PHP SDK <azurephpsdk@microsoft.com>

36 * @copyright 2012 Microsoft Corporation

37 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0

AclVoterTest.php (https://gitlab.com/TouirMohamedMarwen/Symfony2) PHP · 432 lines

1 <?php

2

3 /*

21 use Symfony\Component\Security\Acl\Voter\AclVoter;

22

23 class AclVoterTest extends \PHPUnit_Framework_TestCase

24 {

25 /**

AbstractStructureParser.php (https://github.com/RichardDownes/PHPCodeParser.git) PHP · 608 lines

1 <?php

2 namespace Parser;

3 /*

17 */

18

19 use Meta\AbstractPHPStructure;

20 use Meta\DocBlock;

21

32

33 /**

34 * Responsible for parsing a php class

35 *

36 * @author Richard Downes <richard@sculpt.ie>

37 */

38 abstract class AbstractStructureParser extends AbstractParser

39 {

40

zone.php (https://bitbucket.org/sandeepbhaskar/inspiredliving.git) PHP · 441 lines

1 <?php

2 class ControllerLocalisationZone extends Controller {

251 $pagination->url = $this->url->link('localisation/zone', 'token=' . $this->session->data['token'] . $url . '&page={page}', 'SSL');

252

253 $this->data['pagination'] = $pagination->render();

254

255 $this->data['sort'] = $sort;

262 );

263

264 $this->response->setOutput($this->render());

265 }

266

373 );

374

375 $this->response->setOutput($this->render());

376 }

377

migration_tables_core_538.php (https://bitbucket.org/blackriver/openx.git) PHP · 318 lines

1 <?php

2

3 /*

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

24 +---------------------------------------------------------------------------+

25 $Id: migration_tables_core_538.php 81772 2012-09-11 00:07:29Z chris.nutting $

26 */

27

28 require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php');

29

30 class Migration_538 extends Migration

migration_tables_core_538.php (https://github.com/skynet/OpenX-2.8.7.git) PHP · 318 lines

1 <?php

2

3 /*

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

24 +---------------------------------------------------------------------------+

25 $Id: migration_tables_core_538.php 62345 2010-09-14 21:16:38Z chris.nutting $

26 */

27

28 require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php');

29

30 class Migration_538 extends Migration

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

1 <?php

2 /**

3 * SemanticScuttle - your social bookmark manager.

4 *

5 * PHP version 5.

6 *

7 * @category Bookmarking

21 * @link http://sourceforge.net/projects/semanticscuttle

22 */

23 class VoteTest extends TestBase

24 {

25 /**

533 }

534

535 }//class VoteTest extends TestBase

536 ?>

Editor.php (https://github.com/Shreef/zf2.git) PHP · 601 lines

12 * obtain it through the world-wide-web, please send an email

13 * to license@zend.com so we can send you a copy immediately.

14 *

15 * @category Zend

16 * @package Zend_Dojo

17 * @subpackage Form_Element

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

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

35 * @package Zend_Dojo

36 * @subpackage Form_Element

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

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

137 * Clear all capture events

138 *

139 * @return \Zend\Dojo\Form\Element\Editor

140 */

141 public function clearCaptureEvents()

FileValidatorTest.php (https://github.com/Exercise/symfony.git) PHP · 324 lines

1 <?php

2

3 /*

17 use Symfony\Component\HttpFoundation\File\UploadedFile;

18

19 abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase

20 {

21 protected $context;

DefaultOptions.php (https://github.com/Exercise/symfony.git) PHP · 320 lines

1 <?php

2

3 /*

16

17 /**

18 * Helper for specifying and resolving inter-dependent options.

19 *

20 * Options are a common pattern for initializing classes in PHP. Avoiding the

23 * These default options should be overridden by the options passed to the

24 * constructor. Last but not least, the (default) values of some options may

25 * depend on the values of other options, which themselves may depend on other

26 * options and so on.

27 *

30 * - Define default option values

31 * - Define options in layers that correspond to your class hierarchy. Each

32 * layer may depend on the default value set in the higher layers.

33 * - Define default values for options that depend on the <em>concrete</em>

TargetCpaSimulationPoint.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 488 lines

1 <?php

2 # Generated by the protocol buffer compiler. DO NOT EDIT!

3 # source: google/ads/googleads/v9/common/simulation.proto

14 * Generated from protobuf message <code>google.ads.googleads.v9.common.TargetCpaSimulationPoint</code>

15 */

16 class TargetCpaSimulationPoint extends \Google\Protobuf\Internal\Message

17 {

18 /**

orderdocument.php (https://gitlab.com/neuser/bitrix-core) PHP · 621 lines

1 <?php

2 namespace Bitrix\Sale\Exchange\OneC;

3

4 class OrderDocument extends DocumentBase

5 {

6 protected static $FIELD_INFOS = null;

61 )

62 ),

63 //endregion

64 'ID' => array(

65 'TYPE' => 'string'

376 )

377 ),

378 //endregion

379 ),

380

sfValidatorBaseTest.php (https://github.com/bheneka/gitta.git) PHP · 246 lines

1 <?php

2

3 /*

9 */

10

11 require_once(dirname(__FILE__).'/../../bootstrap/unit.php');

12

13 $t = new lime_test(47);

14

15 class ValidatorIdentity extends sfValidatorBase

16 {

17 protected function configure($options = array(), $messages = array())

32 }

33

34 class ValidatorIdentityWithRequired extends sfValidatorBase

35 {

36 protected function configure($options = array(), $messages = array())

FormErrors.php (https://github.com/adaykin/zf2.git) PHP · 466 lines

12 * obtain it through the world-wide-web, please send an email

13 * to license@zend.com so we can send you a copy immediately.

14 *

15 * @category Zend

172 if (null === $this->_markupElementLabelEnd) {

173 if (null === ($markupElementLabelEnd = $this->getOption('markupElementLabelEnd'))) {

174 $this->setMarkupElementLabelEnd($this->_defaults['markupElementLabelEnd']);

298 $this->setMarkupListItemEnd($this->_defaults['markupListItemEnd']);

299 } else {

300 $this->setMarkupListItemEnd($markupListItemEnd);

301 $this->removeOption('markupListItemEnd');

314 public function setMarkupListItemEnd($markupListItemEnd)

315 {

316 $this->_markupListItemEnd = $markupListItemEnd;

317 return $this;

318 }

NullTest.php (https://github.com/intellix/zf2.git) PHP · 329 lines

12 * obtain it through the world-wide-web, please send an email

13 * to license@zend.com so we can send you a copy immediately.

14 *

15 * @category Zend

16 * @package Zend_Filter

17 * @subpackage UnitTests

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

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

28 * @package Zend_Filter

29 * @subpackage UnitTests

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

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

32 * @group Zend_Filter

33 */

34 class NullTest extends \PHPUnit_Framework_TestCase

35 {

36 /**

Alignment.php (https://gitlab.com/ptisky/API_prestashop) PHP · 409 lines

22 * @package PHPExcel_Style

23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.7.9, 2013-06-02

34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable

37 {

38 /* Horizontal alignment styles */

142 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(

143 * array(

144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,

145 * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,

153 * @throws PHPExcel_Exception

154 * @return PHPExcel_Style_Alignment

155 */

156 public function applyFromArray($pStyles = NULL) {

CakeValidationSetTest.php (https://bitbucket.org/00firestar00/ejfirestar.com.git) PHP · 337 lines

1 <?php

2 /**

3 * CakeValidationSetTest file

4 *

5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>

6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)

7 *

11 *

12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)

13 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests

14 * @package Cake.Test.Case.Model.Validator

15 * @since CakePHP(tm) v 2.2.0

16 * @license http://www.opensource.org/licenses/mit-license.php MIT License

17 */

18

4_wicked_single_revisions.php (https://github.com/ewandor/horde.git) PHP · 211 lines

1 <?php

2 /**

3 * Changes major.minor revisions to single revision numbers.

13 * @package Wicked

14 */

15 class WickedSingleRevisions extends Horde_Db_Migration_Base

16 {

17 private $_vfs;

20 {

21 parent::__construct($connection, $version);

22 require_once $GLOBALS['registry']->get('fileroot', 'wicked') . '/lib/Wicked.php';

23 $this->_vfs = $GLOBALS['injector']

24 ->getInstance('Horde_Core_Factory_Vfs')

date.html (https://bitbucket.org/ferOnti/processmaker.git) HTML · 149 lines

50 </tr>

51 <tr>

52 <td class="FormLabel" width="{$form_labelWidth}">{$PME_ENDDATE}</td>

53 <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_ENDDATE} </td> //-->

54 <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_ENDDATE}</td>

55 </tr>

56 <tr>

140 </tr>

141 </tbody></table>

142 <div class="FormRequiredTextMessage"><font color="red">* </font>{php}echo (G::LoadTranslation('ID_REQUIRED_FIELD'));{/php}</div> </div>

143 <div class="boxBottom"><div class="a"></div><div class="b"></div><div class="c"></div></div>

144 </div>

FinderTest.php (https://github.com/Exercise/symfony.git) PHP · 333 lines

135 $finder = new Finder();

136 $this->assertSame($finder, $finder->ignoreVCS(true));

137 $this->assertIterator($this->toAbsolute(array('foo', 'foo/bar.tmp', 'test.php', 'test.py', 'toto')), $finder->in(self::$tmpDir)->getIterator());

138 }

139

146 $finder = new Finder();

147 $this->assertSame($finder, $finder->ignoreDotFiles(true));

148 $this->assertIterator($this->toAbsolute(array('foo', 'foo/bar.tmp', 'test.php', 'test.py', 'toto')), $finder->in(self::$tmpDir)->getIterator());

149 }

150

223 $iterator = $finder->files()->name('*.php')->depth('< 1')->in(array(self::$tmpDir, __DIR__))->getIterator();

224

225 $this->assertIterator(array(self::$tmpDir.DIRECTORY_SEPARATOR.'test.php', __DIR__.DIRECTORY_SEPARATOR.'FinderTest.php', __DIR__.DIRECTORY_SEPARATOR.'bootstrap.php', __DIR__.DIRECTORY_SEPARATOR.'GlobTest.php'), $iterator);

226 }

227

voucher.php (https://bitbucket.org/elena_dyavolova/omf.git) PHP · 263 lines

1 <?php

2 class ControllerAccountVoucher extends Controller {

177 );

178

179 $this->response->setOutput($this->render());

180 }

181

222 );

223

224 $this->response->setOutput($this->render());

225 }

226

PU_test_dcp_role.php (https://github.com/CircleCode/dynacase-core.git) PHP · 432 lines

1 <?php

2 /*

3 * @author Anakeen

13 */

14

15 require_once 'PU_testcase_dcp_commonfamily.php';

16

17 class TestRole extends TestCaseDcpCommonFamily

filing_costs.php (https://bitbucket.org/amitholkar/zenfile-18-05.git) PHP · 198 lines

38

39 ?>

40 <div class="finance_country <?php echo $status ?> custom_accordion" ref="filing_cost_country_<?php echo $invoice->id ?>"><?php echo $invoice->country ?></div>

41

42

73 }

74 ?>

75 <?php echo $currency_sign ?><input name="fa_corrected_invoice_official_fee" value="<?php echo $fa_invoice_official_fee ?>" type="text"/>

76 <?php $summ = $invoice->fa_invoice_professional_fee + $fa_invoice_official_fee; ?>

96 <input type="hidden" name="additional_fee_id[]" value="<?php echo $additional_fee->additional_fee_id ?>">

97 <?php echo $currency_sign ?><input title="<?php echo $additional_fee->additional_fee_description_by_fa ?>" name="additional_fee_corrected_by_pm[]" value="<?php echo $additional_fee_value ?>" type="text"/>

98 </div>

99 <!-- <div class="finance_input float_left" style="width: 170px;">-->

116 <?php foreach($invoice->invoices as $file) { ?>

117 <a href="<?php echo base_url() ?>cases/download_file/<?php echo $file->file_id ?>"><?php echo $file->filename ?></a>

118 <?php } ?>

Tag.php (https://github.com/michaelmcandrew/vaw.git) PHP · 215 lines

1 <?php

2

3 /*

106 if ( $entityId ) {

107 $tagset[$tagsetItem]['entityId'] = $entityId;

108 require_once 'CRM/Core/BAO/EntityTag.php';

109 $entityTags = CRM_Core_BAO_EntityTag::getChildEntityTags( $parentId, $entityId, $entityTable );

110 } else {

147 default:

148 if ( !empty($form->_formValues['contact_tags']) ) {

149 require_once 'CRM/Core/BAO/Tag.php';

150 $contactTags = CRM_Core_BAO_Tag::getTagsUsedFor( 'civicrm_contact', true, false, $parentId );

151

WufooApiWrapper.php (https://github.com/Fourshift/Wufoo-API-Wrappers.git) PHP · 270 lines

1 <?php

2

3 require_once('WufooApiWrapperBase.php');

4 require_once('WufooValueObjects.php');

5

6 /**

8 * @author Timothy S Sabat

9 */

10 class WufooApiWrapper extends WufooApiWrapperBase {

11

12 protected $apiKey;

show2.php (https://gitlab.com/redwan4re/web-apps-php-26) PHP · 182 lines

1 <?php

2 include_once "../../vendor/autoload.php";

3

4 use App\assign\Assign;

13 <!-- /theme JS files -->

14

15 <?php include_once 'header.php'; ?>

16 <!-- Page container -->

17 <div class="page-container">

103 <th class = "col-md-3"><b>Ending Date</b></th>

104 <td class = "col-md-9"><?php echo $oneData['ending_date']; ?></td>

105 </tr>

106 <tr class="warning">

180 </script>

181

182 <?php include_once 'footer.php'; ?>

183

AbstractPaginator.php (https://gitlab.com/zan_zan/laravel_sample) PHP · 487 lines

1 <?php

2

3 namespace Illuminate\Pagination;

93 *

94 * @param int $start

95 * @param int $end

96 * @return string

97 */

98 public function getUrlRange($start, $end)

99 {

100 $urls = [];

101

102 for ($page = $start; $page <= $end; $page++) {

103 $urls[$page] = $this->url($page);

104 }

PlatformJobQueueTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 329 lines

16 * @package Zend_Queue

17 * @subpackage UnitTests

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

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

23 /** Zend_Queue */

24 require_once 'Zend/Queue.php';

25

26 /** Zend_Queue */

27 require_once 'Zend/Queue/Message.php';

28

29 /** Zend_Queue_Message_Test */

41 * @group Zend_Queue

42 */

43 class Zend_Queue_Adapter_PlatformJobQueueTest extends Zend_Queue_Adapter_AdapterTest

44 {

45 public function setUp()

SortedSet.php (https://github.com/netweaver/Rediska.git) PHP · 335 lines

127 * @param boolean $withScores Get with scores

128 * @param integer $start Start index

129 * @param integer $end End index

130 * @param boolean $revert Revert elements (not used in sorting)

131 * @param boolean $responseIterator[optional] If true - command return iterator which read from socket buffer.

143 *

144 * @param numeric $start Start position

145 * @param numeric $end End position

146 * @return integer

147 */

213 * @param integer $withScores Return values with scores

214 * @param integer $start Start index

215 * @param integer $end End index

216 * @param boolean $revert Revert elements (not used in sorting)

217 * @param boolean $responseIterator[optional] If true - command return iterator which read from socket buffer.

EntityTypeBundleInfoTest.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 314 lines

1 <?php

2

3 namespace Drupal\Tests\Core\Entity;

5 use Drupal\Component\Plugin\Exception\PluginNotFoundException;

6 use Drupal\Core\Cache\Cache;

7 use Drupal\Core\Cache\CacheBackendInterface;

8 use Drupal\Core\Cache\CacheTagsInvalidatorInterface;

9 use Drupal\Core\Entity\EntityInterface;

84 $this->moduleHandler->alter('entity_type', Argument::type('array'))->willReturn(NULL);

85

86 $this->cacheBackend = $this->prophesize(CacheBackendInterface::class);

87

88 $this->entityTypeManager = $this->prophesize(EntityTypeManagerInterface::class);

97 $this->typedDataManager = $this->prophesize(TypedDataManagerInterface::class);

98

99 $this->cacheBackend = $this->prophesize(CacheBackendInterface::class);

100

101 $container = $this->prophesize(ContainerInterface::class);

States.php (https://github.com/shafiqissani/ASTRA-College-Website.git) PHP · 287 lines

1 <?php

2 /* vim: set expandtab tabstop=4 shiftwidth=4: */

3 //

4 // +----------------------------------------------------------------------+

5 // | PHP Version 4 |

6 // +----------------------------------------------------------------------+

7 // | Copyright (c) 1997-2002 The PHP Group |

20 // +----------------------------------------------------------------------+

21 //

22 // $Id: States.php,v 1.1 2006/08/14 01:42:55 glendavies Exp $

23 //

24 /**

25 * Parsing states.

26 * @package XML_HTMLSax3

27 * @version $Id: States.php,v 1.1 2006/08/14 01:42:55 glendavies Exp $

28 */

29 /**

UpdateQueryBuilderTest.php (https://github.com/csanquer/QueryBuilder.git) PHP · 326 lines

1 <?php

2 namespace SQL\Test;

3

6 use SQL\SelectQueryBuilder;

7

8 class UpdateQueryBuilderTest extends PDOTestCase

9 {

10

Object.js (https://github.com/Seldaiendil/meyeOS.git) JavaScript · 429 lines

10 License:

11 LGPL: http://www.gnu.org/licenses/lgpl.html

12 EPL: http://www.eclipse.org/org/documents/epl-v10.php

13 See the LICENSE file in the project's top-level directory for details.

14

19 qx.Class.define("qx.test.data.controller.Object",

20 {

21 extend : qx.dev.unit.TestCase,

22

23 members :

style.php (https://github.com/shafiqissani/Jewelery-Ecommerce-.git) PHP · 262 lines

47 float: right;

48 position: relative;

49 <?php if($_GET['wrapper_border'] > 0) : ?>border: <?php echo $_GET['wrapper_border']; ?>px solid #e6e6e6;<?php endif; ?>

50 }

51

83 <?php endif; ?>

84 <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width; ?>px;<?php else : ?>width: <?php echo $_GET['slide_width'];?>px;<?php endif; ?>

85 <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $_GET['slide_height']; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>

88 <?php if($_GET['text_block_position'] == 0) : ?>bottom: <?php echo $_GET['module_height']-$_GET['slide_height']-$_GET['image_y'];?>px;<?php endif; ?>

89 <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php else : ?>left: <?php echo $_GET['image_x']; ?>px;<?php endif; ?>

90 background-color: <?php echo $text_overlay_bgcolor;?>;

97 <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width-10; ?>px;<?php else : ?>width: 90%;margin: 0 5%;<?php endif; ?>

98 <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $text_block_height-10; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>

99 <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php endif; ?>

100 position: absolute;

101 <?php if($_GET['text_block_position'] == 1) : ?>top: <?php echo $text_block_top; ?>px;<?php else : ?>bottom: 0;<?php endif; ?>

102 }

103

provider_test.php (https://github.com/sbourget/moodle.git) PHP · 240 lines

1 <?php

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

3 //

31 * @coversDefaultClass \auth_lti\privacy\provider

32 */

33 class provider_test extends provider_testcase {

34 /**

35 * Set up method.

registry.php (https://github.com/Paladin/joomla-platform.git) PHP · 472 lines

1 <?php

2 /**

3 * @package Joomla.Platform

71

72 /**

73 * Magic function to render this object as a string using default args of toString method.

74 *

75 * @return string

89 *

90 * @since 12.2

91 * @note The interface is only present in PHP 5.4 and up.

92 */

93 public function jsonSerialize()

class-wp-customize-setting.php (https://gitlab.com/Gashler/dp) PHP · 439 lines

1 <?php

2 /**

3 * Customize Setting Class.

380 * @since 3.4.0

381 */

382 class WP_Customize_Filter_Setting extends WP_Customize_Setting {

383

384 /**

397 * @since 3.4.0

398 */

399 final class WP_Customize_Header_Image_Setting extends WP_Customize_Setting {

400 public $id = 'header_image_data';

401

425 * @since 3.4.0

426 */

427 final class WP_Customize_Background_Image_Setting extends WP_Customize_Setting {

428 public $id = 'background_image_thumb';

429

PublisherTest.php (https://github.com/intellix/zf2.git) PHP · 329 lines

12 * obtain it through the world-wide-web, please send an email

13 * to license@zend.com so we can send you a copy immediately.

14 *

15 * @category Zend

16 * @package UnitTests

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

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

33 * @group Zend_Feed_Subsubhubbub

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

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

36 */

37 class PublisherTest extends \PHPUnit_Framework_TestCase

38 {

39

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

1 <?php

2

3 /**

4 * Test class for Core_Model_User_Service.

5 * Generated by PHPUnit on 2011-06-22 at 18:34:04.

6 */

7

8 require_once '../Installer.php';

9

10 class Core_Model_Installer {

64 $group_acls[] = array('group' => $result->id, 'module' => 'core', 'controller' => 'user', 'action' => 'new', 'permission' => 1);

65 $group_acls[] = array('group' => $result->id, 'module' => 'core', 'controller' => 'user', 'action' => 'next-steps', 'permission' => 1);

66 $group_acls[] = array('group' => $result->id, 'module' => 'core', 'controller' => 'user', 'action' => 'send-activation', 'permission' => 1);

67 $group_acls[] = array('group' => $result->id, 'module' => 'core', 'controller' => 'user', 'action' => 'activate', 'permission' => 1);

68

sale.php (https://github.com/sansanwawa/e-commerse.git) PHP · 307 lines

14 }

15

16 if (isset($data['filter_date_end']) && $data['filter_date_end']) {

17 $sql .= " AND DATE(o.date_added) <= '" . $this->db->escape($data['filter_date_end']) . "'";

114 }

115

116 if (isset($data['filter_date_end']) && $data['filter_date_end']) {

117 $sql .= " AND DATE(o.date_added) <= '" . $this->db->escape($data['filter_date_end']) . "'";

216 }

217

218 if (isset($data['filter_date_end']) && $data['filter_date_end']) {

219 $sql .= " AND DATE(date_added) <= '" . $this->db->escape($data['filter_date_end']) . "'";

272 }

273

274 if (isset($data['filter_date_end']) && $data['filter_date_end']) {

275 $sql .= " AND DATE(date_added) <= '" . $this->db->escape($data['filter_date_end']) . "'";

shipping.php (https://gitlab.com/reclamare/mao) PHP · 268 lines

1 <?php

2 class ControllerApiShipping extends Controller {

PluginInfo.php (https://gitlab.com/fabiorf/chat) PHP · 383 lines

161 * the array structure.

162 */

163 public function getDependencies()

164 {

165 return call_user_func(array($this->getClass(), 'getDependencies'));

190 if (array_key_exists($this->getName(), $plugin->getDependencies())) {

191 $dependent_plugins[] = $plugin_name;

192 }

193 }

194

195 return $dependent_plugins;

196 }

197

358 }

359

360 foreach (array_keys($this->getDependencies()) as $dependency_name) {

361 $dependency = new PluginInfo($dependency_name);

errors.php (https://github.com/libersoft/fengoffice-ls.git) PHP · 194 lines

1 <?php

2

3 /**

135 'mail account server required' => 'Server required',

136 'mail account password required' => 'Password required',

137 'send mail error' => 'Error while sending mail. Possibly wrong SMTP settings.',

138 'email address already exists' => 'That email address is already in use.',

139

144 'workspace own parent error' => 'A workspace can\'t be its own parent',

145 'task own parent error' => 'A task can\'t be its own parent',

146 'task child of child error' => 'A task can\'t be child of one of its descendants',

147

148 'chart title required' => 'Chart title is required.',

NullTest.php (https://github.com/mrbanzai/zf2.git) PHP · 329 lines

12 * obtain it through the world-wide-web, please send an email

13 * to license@zend.com so we can send you a copy immediately.

14 *

15 * @category Zend

16 * @package Zend_Filter

17 * @subpackage UnitTests

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

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

28 * @package Zend_Filter

29 * @subpackage UnitTests

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

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

32 * @group Zend_Filter

33 */

34 class NullTest extends \PHPUnit_Framework_TestCase

35 {

36 /**

PaymentMethodManagementTest.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 332 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

6 namespace Magento\Quote\Api;

7

8 class PaymentMethodManagementTest extends \Magento\TestFramework\TestCase\WebapiAbstract

9 {

10 const SERVICE_VERSION = 'V1';

23

24 /**

25 * @magentoApiDataFixture Magento/Checkout/_files/quote_with_payment_saved.php

26 */

27 public function testReSetPayment()

56

57 /**

58 * @magentoApiDataFixture Magento/Checkout/_files/quote_with_virtual_product_and_address.php

59 */

60 public function testSetPaymentWithVirtualProduct()

Alignment.php (https://gitlab.com/dmsapiens/physicians) PHP · 409 lines

22 * @package PHPExcel_Style

23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version ##VERSION##, ##DATE##

34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable

37 {

38 /* Horizontal alignment styles */

142 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(

143 * array(

144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,

145 * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,

153 * @throws PHPExcel_Exception

154 * @return PHPExcel_Style_Alignment

155 */

156 public function applyFromArray($pStyles = NULL) {

Clients.php (https://gitlab.com/my-application.bjoernbartels.earth/my-application) PHP · 322 lines

1 <?php

2 /**

3 * BB's Zend Framework 2 Components

6 *

7 * @package [MyApplication]

8 * @package BB's Zend Framework 2 Components

9 * @package AdminModule

10 * @author Björn Bartels <coding@bjoernbartels.earth>

16 namespace Admin\Model;

17

18 use Zend\Crypt\Password\Bcrypt;

19 use Zend\InputFilter\InputFilter;

20 use Zend\InputFilter\Factory as InputFactory;

21 use Zend\InputFilter\InputFilterAwareInterface;

BannerServiceImpl.php (https://bitbucket.org/blackriver/openx.git) PHP · 344 lines

1 <?php

2

3 /*

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

24 +---------------------------------------------------------------------------+

25 $Id: BannerServiceImpl.php 81772 2012-09-11 00:07:29Z chris.nutting $

26 */

27

33

34 // Base class BaseLogonService

35 require_once MAX_PATH . '/www/api/v1/common/BaseServiceImpl.php';

36

37 // Banner Dll class

38 require_once MAX_PATH . '/lib/OA/Dll/Banner.php';

39

40 /**

FingersCrossedHandlerTest.php (https://gitlab.com/techniconline/kmc) PHP · 255 lines

1 <?php

2

3 /*

18 use Psr\Log\LogLevel;

19

20 class FingersCrossedHandlerTest extends TestCase

21 {

22 /**

favorite-articles.php (https://gitlab.com/fcupen/PHP) PHP · 479 lines

4 <meta charset="utf-8">

5 <title><?=$pages->title?></title>

6 <?php include('style.php');?>

7 <style type="text/css">

8

412 </head>

413 <body>

414 <?php include('menu.php');?>

415

416 <!-- MENU -->

451 </div>

452

453 </div><?php endforeach; ?>

454 </div>

455 <!-- FAVORITE AUTHOR-->

array_init.h (https://bitbucket.org/gnanakeethan/hiphop-php.git) C Header · 320 lines

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 |

17 #define incl_HPHP_ARRAY_INIT_H_

18

19 #include "hphp/runtime/base/array/array_data.h"

20 #include "hphp/runtime/base/complex_types.h"

81 *

82 * For arrays that need to have C++ references/pointers to their elements for

83 * an extended period of time, set keepRef to true, so that there will not

84 * be reference-breaking escalation.

85 */

318 }

319

320 #endif /* incl_HPHP_ARRAY_INIT_H_ */

321

entry.php (https://bitbucket.org/crevillo/enetcall.git) PHP · 375 lines

1 <?php

2 /**

3 * File containing the ezcFeedEntryElement class.

17 * ATOM-author (required, multiple),

18 * RSS1-none,

19 * RSS2-author (optional, recommended, single).

20 * @property array(ezcFeedCategoryElement) $category

21 * The categories of the entry. Equivalents:

35 * @property array(ezcFeedPersonElement) $contributor

36 * The contributors of the entry. Equivalents:

37 * ATOM-contributor (optional, not recommended, multiple),

38 * RSS1-none,

39 * RSS2-none.

80 * @property ezcFeedSourceElement $source

81 * The source of the entry. Equivalents:

82 * ATOM-source (optional, not recommended, single),

83 * RSS1-none,

84 * RSS2-source (optional, not recommended, single).

classtrees_OpenID.html (https://github.com/yupe/xomaprojects.git) HTML · 208 lines

176 <h2>Root class Auth_Yadis_PHPSession</h2>

177 <ul>

178 <li><a href="OpenID/Auth_Yadis_PHPSession.html">Auth_Yadis_PHPSession</a></li></ul>

179

180 <h2>Root class Auth_Yadis_Service</h2>

185 <ul>

186 <li><a href="OpenID/Auth_Yadis_SessionLoader.html">Auth_Yadis_SessionLoader</a><ul>

187 <li><a href="OpenID/Auth_OpenID_ServiceEndpointLoader.html">Auth_OpenID_ServiceEndpointLoader</a></li><li><a href="OpenID/Auth_Yadis_ManagerLoader.html">Auth_Yadis_ManagerLoader</a></li></ul></li>

188 </ul>

189

203

204 <p class="notes" id="credit">

205 Documentation generated on Tue, 21 Apr 2009 11:31:28 -0700 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.2</a>

206 </p>

207 </body>

ipn.php (https://github.com/steebo/CakePHP-Paypal-IPN-Plugin.git) PHP · 120 lines

1 <?php

2 class ipnSchema extends CakeSchema {

54 'payment_status' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 20),

55 'payment_type' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 10),

56 'pending_reason' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 20),

57 'reason_code' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 20),

58 'remaining_settle' => array('type' => 'integer', 'null' => true, 'default' => NULL),

EntityRevisionsTest.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 264 lines

1 <?php

2

3 namespace Drupal\KernelTests\Core\Entity;

13 * @group entity

14 */

15 class EntityRevisionsTest extends EntityKernelTestBase {

16

17 /**

180 $this->assertTrue($entity->isLatestRevision());

181

182 // Load the created entity and create a new pending revision.

183 $pending_revision = EntityTestMulRev::load($entity->id());

184 $pending_revision->setNewRevision(TRUE);

185 $pending_revision->isDefaultRevision(FALSE);

ext_zlib.php (https://github.com/tstarling/hiphop-php.git) PHP · 376 lines

1 <?hh

2 // @generated by docskel.php

3

4 /**

61 * library.

62 * @param int $encoding_mode - The encoding mode. Can be FORCE_GZIP (the

63 * default) or FORCE_DEFLATE. Prior to PHP 5.4.0, using FORCE_DEFLATE

64 * results in a standard zlib deflated string (inclusive zlib headers)

65 * after a gzip file header but without the trailing crc32 checksum. In

66 * PHP 5.4.0 and later, FORCE_DEFLATE generates RFC 1950 compliant

67 * output, consisting of a zlib header, the deflated data, and an Adler

68 * checksum.

275 * @param int $length - The number of uncompressed bytes to write. If

276 * supplied, writing will stop after length (uncompressed) bytes have

277 * been written or the end of string is reached, whichever comes first.

278 * Note that if the length argument is given, then the

279 * magic_quotes_runtime configuration option will be ignored and no

class.splqueue.html (https://bitbucket.org/thncr/manuals.git) HTML · 216 lines

10 <div class="next" style="text-align: right; float: right;"><a href="splqueue.construct.html">SplQueue::__construct</a></div>

11 <div class="up"><a href="spl.datastructures.html">数据结构</a></div>

12 <div class="home"><a href="index.html">PHP Manual</a></div>

13 </div><hr /><div id="class.splqueue" class="reference">

14 <h1 class="title">The SplQueue class</h1>

15

16

17 <div class="partintro"><p class="verinfo">(PHP 5 &gt;= 5.3.0)</p>

18

19

41

42 <span class="ooclass">

43 <span class="modifier">extends</span>

44 <a href="class.spldoublylinkedlist.html" class="classname">SplDoublyLinkedList</a>

45 </span>

rr-090923-header.php (https://bitbucket.org/shuangxinyu/emacspack.git) PHP · 102 lines

1 <?php

2 require_once("utils.php");

21 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

22

23 <?php

24 if (AUTO_REFRESH_DELAY>0 && !adminMode())

25 echo '<meta http-equiv="refresh" content="'.AUTO_REFRESH_DELAY.'"/>';

27

28

29 <link type="text/css" href="jscalendar-1.0/calendar-win2k-1.css" rel="stylesheet" title="Style Sheet"/> <!-- indicate local copy -->

30 <script type="text/javascript" src="jscalendar-1.0/calendar.js"></script>

31 <script type="text/javascript" src="jscalendar-1.0/lang/calendar-en.js"></script>

32 <script type="text/javascript" src="jscalendar-1.0/calendar-setup.js"></script>

33

34

ZipArchive.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 34 lines

2 // Distributed under the New BSD License.

3 // (See accompanying file notice.txt or at

4 // http://www.opensource.org/licenses/bsd-license.php)

5

6 using CleanZip.Compression;

_dynamic.js (http://enginey.googlecode.com/svn/trunk/) JavaScript · 19 lines ✨ Summary

This JavaScript code checks if a specific resource is loaded and provides the Dojo toolkit with a reference to it. If not, it sets the resource as loaded and defines a new module named “dojox.highlight.languages._dynamic”. It then requires other languages (Python, Perl, PHP, Ruby) from the same module, making them available for use in the application.

13 dojo.require("dojox.highlight.languages.python");

14 // dojo.require("dojox.highlight.languages.perl");

15 // dojo.require("dojox.highlight.languages.php");

16 // dojo.require("dojox.highlight.languages.ruby");

17

MajoritySelector.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines

1 <?php

2

3 /*

4 * $Id: MajoritySelector.php 123 2006-09-14 20:19:08Z mrook $

5 *

6 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS

35 * @package phing.types.selectors

36 */

37 class MajoritySelector extends BaseSelectorContainer {

38

39 private $allowtie = true;

UnaryExpression.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 73 lines ✨ Summary

This Java class represents a unary expression in an abstract syntax tree (AST) for PHP programming language. It extends another class OperatorExpression and contains an instance of Expression. The class provides methods to get variables used, modified, and outside the expression, as well as analyze code with a given parser.

1 package net.sourceforge.phpdt.internal.compiler.ast;

2

3 import gatchan.phpparser.parser.PHPParser;

4 import net.sourceforge.phpdt.internal.compiler.ast.declarations.VariableUsage;

9 * @author Matthieu Casanova

10 */

11 public abstract class UnaryExpression extends OperatorExpression

12 {

13

17 int operator,

18 int sourceStart,

19 int sourceEnd,

20 int beginLine,

21 int endLine,

23 int endColumn)

24 {

25 super(expression.getType(), operator, sourceStart, sourceEnd, beginLine, endLine, beginColumn, endColumn);

26 this.expression = expression;

27 }

Preview_Javadoc_of_Buffer.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 609 lines

9 * - Includes the ability to use the Bouvard Doclet.

10 * Visit

11 * http://community.jedit.org/modules.php?

12 * op=modload&name=web_links&file=index&req=viewlink&cid=6

13 * for the Bouvard link

33 * Switch them on/off as you like.

34 *

35 * - can be easily extended for other doclets

36 *

37 * - easy selection of output dir

427 if (java_home.toLowerCase().endsWith("jre"))

428 command.append(File.separator).append("..");

429 command.append(File.separator).append("bin");

430 command.append(File.separator).append("javadoc ");

431

432 if (!((String)proceed).equals((String)options[0]))

AndCondition.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines

1 <?php

2 /*

3 * $Id: AndCondition.php 43 2006-03-10 14:31:51Z mrook $

20 */

21

22 require_once 'phing/tasks/system/condition/ConditionBase.php';

23

24 /**

34 * @package phing.tasks.system.condition

35 */

36 class AndCondition extends ConditionBase implements Condition {

37

38 public function evaluate() {

yaml.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 84 lines

28 <SEQ_REGEXP TYPE="KEYWORD1" DELEGATE="VALUES">[^:\[\]{},'"#]+:( |$)</SEQ_REGEXP>

29 <!-- Useful for Symfony configuration files -->

30 <SPAN TYPE="MARKUP" DELEGATE="php::PHP">

31 <BEGIN>&lt;?php</BEGIN>

32 <END>?&gt;</END>

33 </SPAN>

34 </RULES>

37 <SPAN NO_LINE_BREAK="FALSE" TYPE="OPERATOR" DELEGATE="ARRAY">

38 <BEGIN>{</BEGIN>

39 <END>}</END>

40 </SPAN>

41 <SPAN NO_LINE_BREAK="FALSE" TYPE="OPERATOR" DELEGATE="ARRAY">

42 <BEGIN>[</BEGIN>

43 <END>]</END>

44 </SPAN>

45 </RULES>

frame_9.svg (https://bitbucket.org/atchariya/nokia.git) SVG · 3078 lines

105 cd7plK/3PXdF+HEX/lky5nnif+4DX+sDazEOvCqdHJitNqFrnCMxLgR+t+/Z9co1L7ySCp9x45mS

106 Ghyceb0EXo0Lvh6cb6mywREpiMEfdJHjnPhicQwjuIMpOSZyXCAC62nHy75i1y3AnHU7gy9VSOog

107 9d+LVSXtwgrBUv2eR0wqpyMuCEpSp58mohQj6Yx7qEoqNcgFD5GxGFsH7wLPhp5rrqQ8MZeCSGDd

108 r1mlpspSw01AAyaKiSGe+bIbbxfhonOGUsfIYxKvEVnlwkeufHeh3BVl17D0ocFJjkMOTRUizEq9

109 MUV4EDp+RZVRhS9NueK/JaEaySaIGtGVqcxYKKzCkpwzOzNcCrigqrVj9qqeQpUsRpR6LCRrr0GE

262 T4tSOxOpqqOnevsAvJwjn8M4TjOf4Pwfg3A/RNScTirEIW607T6IOE4ieGxB3okR4Q808uYy8nfn

263 zGsl4V55gG+IsLMdX7FAXq745jzxgRiHKG+Kcm0p/MhYc3M6d6JncuNk+uwQ4qebDlOpLs6o7QFR

264 Z2EjV2dlNay5rxOTJwarphpXIZvSDT1y+ybTlUOOvv09oDq283CALdYV700TW9vxSdkxW2alwtaF

265 Dc5PhTX/2Aa2+ZTvCdCtebVbsO+ZL6RMCZF/s+i4s+j5QYQuFWLJf6PJWRlnwvkW3VuxXHbkxRrW

266 E2F7Ua9jCOTYkYe6C0JjoFusWHRdk2smbmYDCSxjxZ77YuzMWMTInb7nqlQMus/VEPoaMKtyzYRy

403 OrDwQq7KgYsYuEiJbXAOzDmWwktJ0ZyYqJvBXpSea3mHS893beR/GTe8k42FVJx8acpC6mGjGolm

404 9JoZXFkBL3c9L6QEaSRJ4YnAuxp4M3ScRidLR1eqIsgJfGiFd2PH38mB/3I658qwB/PMEAOHOrBw

405 47AY72tmbcZpqERVVrgwYZDIIIkk8J72POkLLxXl/ejcTiNXx4DHjjD07KaZrHV3hEnddBe9owNs

406 nBhWS3ROSNlVoyGhRnmL0bvSe+VCLlQ4b5NJWzrOWgJ7CN/FeE57bueRjW1IseN8ck4ssbfcRxYL

407 1qbEyw2LMTP8LSZnfbUgHxzCeh9Tx842pF36/yoeuYWBPi0gSSuGvW2rdi+Kc46xxRjdmcyYvXbv

RoleVoter.php (git://github.com/symfony/symfony.git) PHP · 62 lines ✨ Summary

This PHP class, RoleVoter, implements a voter for Symfony’s security system. It checks if any attribute of an object starts with a given prefix (‘ROLE_’) and grants access if the role is present in the token’s roles. If the attribute is ‘ROLE_PREVIOUS_ADMIN’, it triggers deprecation warnings. The voter returns ACCESS_ABSTAIN by default, unless the attribute matches one of the token’s roles, in which case it returns ACCESS_GRANTED.

1 <?php

2

3 /*

SimpleListModel.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 106 lines ✨ Summary

This Java class, SimpleListModel, extends AbstractListModel and provides a custom list model for displaying PHP items. It filters items based on a search string and mode settings, allowing users to narrow down results by type and name. The class uses a TreeSet to store the filtered items and updates the list when the filter or mode changes.

37 this.list.clear();

38 for (int i = 0; i < list.size(); i++) {

39 PHPItem phpItem = (PHPItem) list.get(i);

40 if (accept(phpItem, searchString)) {

53 Iterator iterator = list.iterator();

54 while (iterator.hasNext()) {

55 PHPItem phpItem = (PHPItem) iterator.next();

56 if (!accept(phpItem, searchString)) {

74 private boolean accept(PHPItem phpItem, String searchText) {

75 return (mode & phpItem.getItemType()) == phpItem.getItemType() && phpItem.getNameLowerCase().indexOf(searchText) != -1;

76 }

77

88 private static class SimpleComparator implements Comparator {

89 public int compare(Object o1, Object o2) {

90 PHPItem item1 = (PHPItem) o1;

91 PHPItem item2 = (PHPItem) o2;

IfStatement.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 184 lines ✨ Summary

This Java class represents an if statement in a PHP program, including its condition, statements to execute, and optional elseifs and else clauses. It provides methods for converting the if statement to a string, getting variables used by the statement, analyzing code, and retrieving expressions at specific locations. The class extends another Statement class and uses other classes like Expression, ElseIf, and VariableUsage.

1 package net.sourceforge.phpdt.internal.compiler.ast;

2

3 import gatchan.phpparser.parser.PHPParser;

4 import net.sourceforge.phpdt.internal.compiler.ast.declarations.VariableUsage;

31 * @param els the else (or null)

32 * @param sourceStart the starting position

33 * @param sourceEnd the ending offset

34 */

35 public IfStatement(Expression condition,

44 int endColumn)

45 {

46 super(sourceStart, sourceEnd, beginLine, endLine, beginColumn, endColumn);

47 this.condition = condition;

48 this.statement = statement;

63 buff.append("if (");

64 buff.append(condition.toStringExpression()).append(") ");

65 if (statement != null)

66 {

el-070604.php (https://bitbucket.org/shuangxinyu/emacspack.git) PHP · 12 lines

5 <head>

6 <title>Dummy</title>

7 <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet();?>"/>

8 </head>

9 <body>

question44504-folding.html (https://bitbucket.org/shuangxinyu/emacspack.git) HTML · 29 lines

6 <tr>

7 <td width='50' colspan='1' class='men-met'>

8 <input type='button' value=' < ' onClick='goLastMonth(<?php echo date("t", strtotime("$year1-$month1-$day1")).", ".$month . ", " . $year.", ".date("w", strtotime("$year-$month-$day1")); ?>)' />

9 </td>

10 <td width='250' colspan='5' class='men-met'>

11 <span class='title'><?php echo $men . " " . $year; ?></span><br />

12 </td>

13 <td width='50' colspan='1' align='right' class='men-met'>

14 <input type='button' value=' > ' onClick='goNextMonth(1, <?php echo $month . ", " . $year.", ".date("w", strtotime("$year2-$month2-$day1")); ?>)' />

15 </td>

16 </tr>

CHANGES.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 2185 lines

31 - Updated BibTeX and LaTeX syntax highlighting (Thomas Alspaugh).

32

33 - PHP mode now recognizes <script language="PHP">...</script>.

34

35 - Updated Omnimark syntax highlighting (Lionel Fiol).

232 {{{ API Changes

233

234 - Added "optional dependencies". An optional dependency looks like this:

235

236 plugin.MyPlugin.depend.0=optional plugin AnotherPlugin 1.3.1

286 more accurate; for example, with rectangular selections is only

287 registers a drag if the mouse is actually within the rectangular

288 region, not just between the start and end locations in the buffer.

289

290 - jEdit did not compile with Java 1.3.

WInZipAesKeyStrength.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 14 lines

2 // Distributed under the New BSD License.

3 // (See accompanying file notice.txt or at

4 // http://www.opensource.org/licenses/bsd-license.php)

5 // Source: https://bitbucket.org/jens13/cleanzip

6

README (http://enginey.googlecode.com/svn/trunk/) Unknown · 42 lines

1 Using Amazon S3 with Dojo has the following prerequisites:

2 * You must be signed up to use Amazon S3. You can sign up for Amazon S3 at http://aws.amazon.com/s3.

3 * Use the provided proxy (/dojox/rpc/s3/proxy.php) with PHP 5.

4 * proxy.php requires the following modules:

8

9 To use S3 from Dojo, you need a proxy. You can use the provided proxy example file by renaming

10 proxy.example-php to proxy.php and then you must enter your Amazon access key and secret access key

11 into the proxy.php file on line 3 and 4:

20 var s3Buckets = new dojox.rpc.Service({

21 target:"http://s3.amazonaws.com/",

22 proxyUrl:"../s3/proxy.php", // the path to the proxy

23 transport:"REST",

24 envelope:"PROXIED-PATH",

jedit.1 (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 163 lines

63 .TP

64 \fB\--\fR

65 Specifies the end of command-line processing. Further parameters are treated

66 as file names, even if they begin with a dash.

67

157

158 .SH BUGS

159 See http://www.jEdit.org/index.php?page=feedback for bug reporting information.

160

161 .SH WEB

sidebar.php (https://bitbucket.org/jesseterry/myclientbase/) PHP · 14 lines ✨ Summary

This PHP code outputs a section of HTML content that displays a title and a list of links. The title is “system” in black, and the links are to various settings pages within an application, including system settings, user accounts, tax rates, invoice statuses, and modules. Each link is generated using the anchor function and includes a translated label from a language file.

1 <div class="section_wrapper">

2

3 <h3 class="title_black"><?php echo $this->lang->line('system'); ?></h3>

4

5 <ul class="quicklinks content toggle">

6 <li><?php echo anchor('settings', $this->lang->line('system_settings')); ?></li>

7 <li><?php echo anchor('users', $this->lang->line('user_accounts')); ?></li>

8 <li><?php echo anchor('tax_rates', $this->lang->line('tax_rates')); ?></li>

9 <li><?php echo anchor('invoice_statuses', $this->lang->line('invoice_statuses')); ?></li>

10 <li><?php echo anchor('invoices/invoice_groups', $this->lang->line('invoice_groups')); ?></li>

11 <li class="last"><?php echo anchor('mcb_modules', $this->lang->line('modules')); ?></li>

categories.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 86 lines

1 <?php

2 /**

3 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.

16 * @since 1.6

17 */

18 class CategoriesControllerCategories extends JControllerAdmin

19 {

20 /**

44

45 $extension = JRequest::getCmd('extension');

46 $this->setRedirect(JRoute::_('index.php?option=com_categories&view=categories&extension='.$extension, false));

47

48 // Initialise variables.

79 } else {

80 // Nothing to reorder

81 $this->setRedirect(JRoute::_('index.php?option='.$this->option.'&view='.$this->view_list, false));

82 return true;

83 }

catalog (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 546 lines

195 FILE_NAME_GLOB="*.4gl" />

196

197 <MODE NAME="icalendar" FILE="ical.xml"

198 FILE_NAME_GLOB="*.ics" />

199

327 <MODE NAME="php" FILE="php.xml"

328 FILE_NAME_GLOB="*.{php3,php4,php,phtml,inc}"

329 FIRST_LINE_GLOB="{&lt;?php*,#!/*php*}" />

390 FILE_NAME_GLOB="*.rnc" />

391

392 <MODE NAME="renderman-rib" FILE="rib.xml"

393 FILE_NAME_GLOB="*.rib" />

394

default.po (https://bitbucket.org/floresj/notetime.git) Portable Object · 26 lines

1 msgid ""

2 msgstr ""

3 "Project-Id-Version: CakePHP Testsuite\n"

4 "POT-Creation-Date: 2008-05-15 02:51-0700\n"

5 "PO-Revision-Date: \n"

6 "Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"

7 "Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"

XmlReader.java (http://btalk.googlecode.com/svn/) Java · 240 lines ✨ Summary

This Java code implements an XML reader that parses and interprets XML documents. It reads input from an InputStream, identifies XML tags, attributes, and text content, and returns information about each element in a stack-based data structure. The reader can be used to parse and process XML files, and provides methods for accessing the parsed elements’ names, attributes, and text content.

31 public final static int START_DOCUMENT = 0;

32

33 public final static int END_DOCUMENT = 1;

34

35 public final static int START_TAG = 2;

36

37 public final static int END_TAG = 3;

38

39 public final static int TEXT = 4;

61 }

62

63 //http://discussion.forum.nokia.com/forum/showthread.php?t=76814

64 //by abirr

65 private int getNextCharacter() throws IOException {

gfortran.vim (https://bitbucket.org/ultra_iter/vim-qt.git) Vim Script · 27 lines

3 " Version: 0.1.3

4 " Last Change: 2012 Apr 30

5 " Homepage: http://www.vim.org/scripts/script.php?script_id=3496

6 " https://bitbucket.org/xuhdev/compiler-gfortran.vim

7 " License: Same as Vim

9 if exists('current_compiler')

10 finish

11 endif

12 let current_compiler = 'gfortran'

13 let s:keepcpo= &cpo

16 if exists(":CompilerSet") != 2 " older Vim always used :setlocal

17 command -nargs=* CompilerSet setlocal <args>

18 endif

19

20 CompilerSet errorformat=

bannerclient.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 41 lines

1 <?php

2 /**

3 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.

9 JFormHelper::loadFieldClass('list');

10

11 require_once dirname(__FILE__) . '/../../helpers/banners.php';

12

13 /**

18 * @since 1.6

19 */

20 class JFormFieldBannerClient extends JFormFieldList

21 {

22 /**

en-GB.plg_finder_weblinks.ini (https://bitbucket.org/kraymitchell/fcd.git) Unknown · 11 lines

1 ; Joomla! Project

2 ; Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.

3 ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php

4 ; Note : All ini files need to be saved as UTF-8

5

director_string_runme.php (https://swig.svn.sourceforge.net/svnroot/swig) PHP · 35 lines ✨ Summary

This PHP code tests a set of functions, classes, and global variables to ensure they are working as expected. It creates an instance of class B, which extends class A, and calls various methods on it to verify their behavior. The test checks for equality with expected results, indicating that the code passes the tests successfully.

1 <?php

2

3 require "tests.php";

4 require "director_string.php";

5

6 // No new functions

11 check::globals(array(a,a_call,a_m_strings,stringvector));

12

13 class B extends A {

14 function get_first() {

15 return parent::get_first() . " world!";

_normal.user.js (http://game-golem.googlecode.com/svn/trunk/) JavaScript · 33 lines ✨ Summary

This UserScript for Facebook’s Castle Age game automatically logs in and plays on behalf of the user, using a pre-existing script called GameGolem.js. It retrieves the necessary data from local storage and appends the script to the page’s head section, allowing it to automate gameplay without requiring manual input.

7 // @include http://apps.facebook.com/castle_age/*

8 // @include https://apps.facebook.com/castle_age/*

9 // @include http://web3.castleagegame.com/castle_ws/index.php

10 // @resource golem http://game-golem.googlecode.com/svn/trunk/GameGolem.js

11 // @resource stylesheet http://game-golem.googlecode.com/svn/trunk/golem.css

12 // ==/UserScript==

13 // @disabled-include http://apps.facebook.com/reqs.php

14 // @disabled-include https://apps.facebook.com/reqs.php

29 a['type'] = 'text/javascript';

30 a['text'] = GM_getResourceText('golem');

31 (document.getElementsByTagName('head')[0]||document.documentElement).appendChild(a);

32 }());

33

os2.javainstall.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 31 lines ✨ Summary

This HTML code outputs a text explaining how to install and run jEdit on OS/2, including installation commands and instructions for starting the application. It also provides information about running the installer in text-only mode. The output is formatted with paragraphs and pre tags to display code snippets and file paths.

1 <!-- begin os2.javainstall.text -->

2

3 <!-- for jEdit: :mode=php:indentSize=2:tabSize=2:noTabs=true: -->

4

5 <p>To find out which Java virtual machine is best for running jEdit on OS/2,

6 see the <a href="index.php?page=compatibility">compatibility</a> page.</p>

7

8 <p>To install jEdit, open a command prompt and

28 installed in the same directory as jEdit.</p>

29

30 <!-- end os2.javainstall.text -->

31

Makefile.old (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 16 lines

2 SWIG = $(TOP)/../swig

3 SRCS = example.c

4 TARGET = php_example

5 INTERFACE = example.i

6 SWIGOPT = -noproxy

8 all::

9 $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \

10 SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' php4

11

12 clean::

13 rm -f *_wrap* *.o core *~ *.so *.php php_example.h

14

15 check: all

WinZipAesExtra.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 46 lines

2 // Distributed under the New BSD License.

3 // (See accompanying file notice.txt or at

4 // http://www.opensource.org/licenses/bsd-license.php)

5 // Source: https://bitbucket.org/jens13/cleanzip

6

34

35 public CompressionType CompressionMethod { get { return (CompressionType)_buffer[9]; } set { _buffer[9] = (byte)value; } }

36 public WinZipAesType Vendor { get { return (WinZipAesType)_buffer[4]; } set { _buffer[4] = (byte)value; } }

37 public WinZipAesKeyStrength KeyStrength { get { return (WinZipAesKeyStrength)_buffer[8]; } set { _buffer[8] = (byte)value; } }

38

contentlanguages.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 72 lines

1 <?php

2 /**

3 * @package Joomla.Platform

10 defined('JPATH_PLATFORM') or die;

11

12 require_once dirname(__FILE__) . '/list.php';

13

14 /**

15 * Renders a select list of Asset Groups

16 *

17 * @package Joomla.Platform

19 * @since 11.1

20 * @deprecated Use JFormFieldContentLanguage instead.

21 * @note Be careful in replacing to note that JFormFieldConentLanguage does not end in s.

22 */

23 class JElementContentLanguages extends JElementList

exploretags.js (https://code.google.com/p/ontowiki/) JavaScript · 249 lines ✨ Summary

This JavaScript code is part of a tagging extension for OntoWiki, a semantic web platform. It enables users to add, remove, and manage tags on resources in the platform. The code handles user interactions such as clicking cloud values, deleting properties, and sorting tag clouds, while also refreshing the page with updated tag lists.

5 * @author Sebastian Dietzold <dietzold@informatik.uni-leipzig.de>

6 * @copyright Copyright (c) 2009, {@link http://aksw.org AKSW}

7 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)

8 * @version $Id: $

9 *

150 function (data) {

151 taglistContainer.empty();

152 taglistContainer.append(data);

153 // remove the processing status

154 taggingInput.removeClass('is-processing');

201 function (data) {

202 taglistContainer.empty();

203 taglistContainer.append(data);

204 // remove the processing status

205 taggingInput.removeClass('is-processing');

i2c-ali1535 (http://photon-android.googlecode.com/svn/) Unknown · 43 lines

4 * Acer Labs, Inc. ALI 1535 (south bridge)

5 Datasheet: Now under NDA

6 http://www.ali.com.tw/eng/support/datasheet_request.php

7

8 Authors:

23 within the part have moved and some have been redefined slightly.

24 Additionally, the sequencing of the SMBus transactions has been modified to

25 be more consistent with the sequencing recommended by the manufacturer and

26 observed through testing. These changes are reflected in this driver and

27 can be identified by comparing this driver to the i2c-ali15x3 driver. For

cap_inline.h (http://photon-android.googlecode.com/svn/) C++ Header · 410 lines ✨ Summary

This C++ header file defines a set of functions for interacting with various components of a system, such as the ARM CPU, VPM, LCD, and others. It provides functions to check if certain features are present, retrieve maximum clock speeds, and determine LCD resolutions. The code is likely used in a low-level system or embedded device application.

5 * agreement governing use of this software, this software is licensed to you

6 * under the terms of the GNU General Public License version 2, available at

7 * http://www.broadcom.com/licenses/GPLv2.php (the "GPL").

8 *

9 * Notwithstanding the above, under no circumstances may you combine this

92 #else

93 #error CFG_GLOBAL_CHIP type capabilities not defined

94 #endif

95

96 #if ((CFG_GLOBAL_CHIP == BCM11107) || (CFG_GLOBAL_CHIP == FPGA11107))

102 #else

103 #error CFG_GLOBAL_CHIP type capabilities not defined

104 #endif

105

106 #if ((CFG_GLOBAL_CHIP == BCM11107) || (CFG_GLOBAL_CHIP == BCM11211) || (CFG_GLOBAL_CHIP == FPGA11107))

PostfixedUnaryExpression.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 21 lines ✨ Summary

This Java class represents a postfix unary expression in an abstract syntax tree (AST). It extends the UnaryExpression class and adds a specific implementation for postfix unary expressions. The class has a constructor that initializes its fields, including the operator, source end position, line number, and column number. The toStringExpression() method returns a string representation of the expression by concatenating the original expression’s string with the operator’s string.

1 package net.sourceforge.phpdt.internal.compiler.ast;

2

3 /**

4 * @author Matthieu Casanova

5 */

6 public final class PostfixedUnaryExpression extends UnaryExpression {

7

8

9 public PostfixedUnaryExpression(Expression expression,

10 int operator,

11 int sourceEnd,

12 int endLine,

13 int endColumn) {

14 super(expression, operator, expression.getSourceStart(), sourceEnd,expression.getBeginLine(),endLine,expression.getBeginColumn(),endColumn);

15 }

16