original_string: public function checkPhpDependencies()
      {
          $errors = array();
          foreach($this->getDependencyPhpExtensions() as $dep)
          {
              if(!extension_loaded($dep['name'])) {
                  $errors[] = $dep;
              }
          }
          if(count($errors)) {
              return $errors;
          }
          return true;
      }
code: public function checkPhpDependencies()
      {
          $errors = array();
          foreach($this->getDependencyPhpExtensions() as $dep)
          {
              if(!extension_loaded($dep['name'])) {
                  $errors[] = $dep;
              }
          }
          if(count($errors)) {
              return $errors;
          }
          return true;
      }
code_tokens: public function checkPhpDependencies ( ) { $ errors = array ( ) ; foreach ( $ this -> getDependencyPhpExtensions ( ) as $ dep ) { if ( ! extension_loaded ( $ dep [ 'name' ] ) ) { $ errors [ ] = $ dep ; } } if ( count ( $ errors ) ) { return $ errors ; } return true ; }
docstring: Check PHP extensions availability
  @throws Exceptiom on failure
  @return true | array
docstring_tokens: Check PHP extensions availability