Commits

ad...@admin-PC.dic.md  committed cb81256

Cleanup

  • Participants
  • Parent commits 0bda687

Comments (0)

Files changed (3)

File library/ZendY/Registry/Tool.php

 <?php
-abstract class ZendY_Registry_Tool
+
+class ZendY_Registry_Tool
 {
     protected $_previous = null;
 

File library/ZendY/Registry/Toolkit.php

         if ($this->_tool) {
             $tool->setPrevious($this->_tool);
         }
-        $this->setTool($tool);
+        $this->_tool = $tool;
         return $this;
     }
 

File library/ZendY/View/Helper/Highlight.php

     public function inject()
     {
         $localPath = $this->getScriptPath();
-        if ('' !== $localPath) {
-	        $this->view->headScript()
-		        ->appendFile($localPath)
-		        ->appendScript($this->_getScript())
-		    ;
+        if (!empty($localPath)) {
+            $this->view->headScript()
+                    ->appendFile($localPath)
+                    ->appendScript($this->_getScript());
         } else {
             throw new Zend_View_Exception('Option "scriptPath" must be set');
         }
 
         $stylePath = $this->getStylePath();
-        if ('' !== $stylePath) {
-		    $this->view->headLink()
-		        ->appendStylesheet($stylePath)
-		    ;
+        if (!empty($stylePath)) {
+            $this->view->headLink()
+                    ->appendStylesheet($stylePath);
         }
     }