Ignore:
Timestamp:
Apr 6, 2020, 11:56:19 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Do not use parenthesis around returned value.
Location:
trunk/Modules/NetworkTopology
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkTopology/NetworkTopology.php

    r873 r874  
    1212    if (count($this->System->PathItems) > 1)
    1313    {
    14       if ($this->System->PathItems[1] == 'topologie.png') return ($this->ShowImage());
    15         else return (PAGE_NOT_FOUND);
     14      if ($this->System->PathItems[1] == 'topologie.png') return $this->ShowImage();
     15        else return PAGE_NOT_FOUND;
    1616
    17     } else return ($this->ShowOverview());
     17    } else return $this->ShowOverview();
    1818  }
    1919
     
    109109      imagedestroy($im_dev);
    110110    }
    111     return ('');
     111    return '';
    112112  }
    113113
     
    126126zařízení, které jsou přes něj připojeny. U zařízení, kde není stav možné
    127127zjišťovat je použita <span style="color:gray">šedá barvou</span>.</p>';
    128     return ($Output);
     128    return $Output;
    129129  }
    130130}
  • trunk/Modules/NetworkTopology/topologie-img.php

    r873 r874  
    156156  } while ($level >= 0);
    157157  $data = compact('tbound', 'count', 'tbound', 'vfirst', 'vlast', 'vtop', 'vleft', 'height', 'width', 'index', 'maxindex');
    158   return ($data);
     158  return $data;
    159159};
    160160
     
    194194{
    195195  global $vleft, $spacex;
    196   return ($vleft[$id] * $spacex);
     196  return $vleft[$id] * $spacex;
    197197}
    198198
  • trunk/Modules/NetworkTopology/topologie2.php

    r873 r874  
    5050      $Result['max'] = max($SubitemResult['max'], $Result['max']);
    5151    }
    52     return ($Result);
     52    return $Result;
    5353  }
    5454
Note: See TracChangeset for help on using the changeset viewer.