Changeset 695 for trunk/services


Ignore:
Timestamp:
Aug 8, 2019 10:01:13 PM (5 years ago)
Author:
anonymous
Message:

Change usage of is_a($x, 'X') to $x instance of X

Location:
trunk/services
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/services/css.php

    r469 r695  
    2828 * ever modify this file.
    2929 */
    30 if (is_a($css, 'CSS')) {
     30if ($css instanceof \CSS) {
    3131    $css->headers(getFormData('app'));
    3232    $css->output(getFormData('app'));
  • trunk/services/js.php

    r469 r695  
    2828 * ever modify this file.
    2929 */
    30 if (is_a($js, 'JS')) {
     30if ($js instanceof \JS) {
    3131    $js->headers(getFormData('app'));
    3232    $js->output(getFormData('app'));
  • trunk/services/lock.php

    r535 r695  
    4646}
    4747
    48 if (!isset($lock) || !is_a($lock, 'Lock')) {
     48if (!isset($lock) || !($lock instanceof \Lock)) {
    4949    $lock =& Lock::getInstance($auth);
    5050}
  • trunk/services/templates/lock.ihtml

    r592 r695  
    11<?php
    2 if (!is_a($lock, 'Lock')) {
     2if (!($lock instanceof \Lock)) {
    33    // If the Lock object hasn't been instantiated, don't execute this template.
    44    return null;
  • trunk/services/versions.php

    r535 r695  
    107107
    108108case 'restore' :
    109     if (!isset($lock) || !is_a($lock, 'Lock')) {
     109    if (!isset($lock) || !($lock instanceof \Lock)) {
    110110        $lock =& Lock::getInstance($auth);
    111111    }
Note: See TracChangeset for help on using the changeset viewer.