original_string: protected function checkPermissions($file, $permissions = '0444')
      {
          if (substr(sprintf('%o', fileperms($file)), -4) === $permissions) {
              return true;
          }
  
          $vars = array('%name' => $file, '%perm' => $permissions);
          return $this->translation->text('File %name is not secure. The file permissions must be %perm', $vars);
      }
code: protected function checkPermissions($file, $permissions = '0444')
      {
          if (substr(sprintf('%o', fileperms($file)), -4) === $permissions) {
              return true;
          }
  
          $vars = array('%name' => $file, '%perm' => $permissions);
          return $this->translation->text('File %name is not secure. The file permissions must be %perm', $vars);
      }
code_tokens: protected function checkPermissions ( $ file , $ permissions = '0444' ) { if ( substr ( sprintf ( '%o' , fileperms ( $ file ) ) , - 4 ) === $ permissions ) { return true ; } $ vars = array ( '%name' => $ file , '%perm' => $ permissions ) ; return $ this -> translation -> text ( 'File %name is not secure. The file permissions must be %perm' , $ vars ) ; }
docstring: Checks file permissions
  @param string $file
  @param string $permissions
  @return boolean|array
docstring_tokens: Checks file permissions