Exemple #1
0
 /**
  * @return DotWriter
  */
 public function writeStatementTerminator()
 {
     $this->dotFile->add(';');
     $lineTerminator = $this->dotFile->getLineTerminator();
     $this->dotFile->add($lineTerminator);
     return $this;
 }
Exemple #2
0
 public static function get($parameters, $dir = '', $default = null)
 {
     if (is_null(self::$dir)) {
         $dir = resources_path('lang') . DIRECTORY_SEPARATOR . $dir;
         self::$dir = is_dir($dir) ? $dir : resources_path('lang');
     }
     $value = parent::_get(self::$dir, $parameters);
     return !is_null($value) ? $value : parent::_value($default);
 }
Exemple #3
0
 public static function get($parameters, $default = null)
 {
     if (is_null(self::$dir)) {
         $dir = config_path(env("ENV", "production"));
         self::$dir = is_dir($dir) ? $dir : config_path();
     }
     $value = parent::_get(self::$dir, $parameters);
     return !is_null($value) ? $value : parent::_value($default);
 }