- Timestamp:
- Aug 8, 2019 10:01:13 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/user.cli.php
r686 r695 61 61 } 62 62 63 if (!isset($db) || ! is_a($db, 'DB')) {63 if (!isset($db) || !($db instanceof \DB)) { 64 64 echo "This project doesn't have a \$db object.\n"; 65 65 exit(1); 66 66 } 67 67 68 if (!isset($auth) || ! is_a($auth, 'Auth_SQL')) {68 if (!isset($auth) || !($auth instanceof \Auth_SQL)) { 69 69 echo "This project doesn't have an \$auth object.\n"; 70 70 exit(1); -
trunk/services/css.php
r469 r695 28 28 * ever modify this file. 29 29 */ 30 if ( is_a($css, 'CSS')) {30 if ($css instanceof \CSS) { 31 31 $css->headers(getFormData('app')); 32 32 $css->output(getFormData('app')); -
trunk/services/js.php
r469 r695 28 28 * ever modify this file. 29 29 */ 30 if ( is_a($js, 'JS')) {30 if ($js instanceof \JS) { 31 31 $js->headers(getFormData('app')); 32 32 $js->output(getFormData('app')); -
trunk/services/lock.php
r535 r695 46 46 } 47 47 48 if (!isset($lock) || ! is_a($lock, 'Lock')) {48 if (!isset($lock) || !($lock instanceof \Lock)) { 49 49 $lock =& Lock::getInstance($auth); 50 50 } -
trunk/services/templates/lock.ihtml
r592 r695 1 1 <?php 2 if (! is_a($lock, 'Lock')) {2 if (!($lock instanceof \Lock)) { 3 3 // If the Lock object hasn't been instantiated, don't execute this template. 4 4 return null; -
trunk/services/versions.php
r535 r695 107 107 108 108 case 'restore' : 109 if (!isset($lock) || ! is_a($lock, 'Lock')) {109 if (!isset($lock) || !($lock instanceof \Lock)) { 110 110 $lock =& Lock::getInstance($auth); 111 111 } -
trunk/tests/LockTest.php
r541 r695 102 102 { 103 103 $result = Lock::getinstance($this->Auth_SQL); 104 $this->assertTrue($result && is_a($result, 'Lock'));104 $this->assertTrue($result && $result instanceof \Lock); 105 105 } 106 106 -
trunk/tests/VersionTest.php
r479 r695 4 4 * For details visit the project site: <http://trac.strangecode.com/codebase/> 5 5 * Copyright 2001-2012 Strangecode, LLC 6 * 6 * 7 7 * This file is part of The Strangecode Codebase. 8 8 * … … 11 11 * Free Software Foundation, either version 3 of the License, or (at your option) 12 12 * any later version. 13 * 13 * 14 14 * The Strangecode Codebase is distributed in the hope that it will be useful, but 15 15 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 17 17 * details. 18 * 18 * 19 19 * You should have received a copy of the GNU General Public License along with 20 20 * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>. … … 37 37 38 38 function setUp() 39 { 39 { 40 40 require dirname(__FILE__) . '/_config.inc.php'; 41 41 require_once '../lib/Version.inc.php'; … … 84 84 { 85 85 $db =& DB::getInstance(); 86 86 87 87 unset($this->Version); 88 88 unset($this->Auth_SQL); … … 95 95 { 96 96 $result = Version::getinstance($this->Auth_SQL); 97 $this->assertTrue($result && is_a($result, 'Version'));97 $this->assertTrue($result && $result instanceof Version); 98 98 } 99 99
Note: See TracChangeset
for help on using the changeset viewer.