Subversion Repositories oidplus

Rev

Rev 1118 | Rev 1124 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1118 Rev 1121
Line 233... Line 233...
233
         * @param $to
233
         * @param $to
234
         * @return int|null
234
         * @return int|null
235
         */
235
         */
236
        public function distance($to) {
236
        public function distance($to) {
237
                if (!is_object($to)) $to = OIDplusObject::parse($to);
237
                if (!is_object($to)) $to = OIDplusObject::parse($to);
-
 
238
                if (!$to) return null;
238
                if (!($to instanceof $this)) return null;
239
                if (!($to instanceof $this)) return null;
239
 
240
 
240
                $a = $to->php;
241
                $a = $to->php;
241
                $b = $this->php;
242
                $b = $this->php;
242
 
243